diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 9d8dbfc7a48c..3dc4379258fa 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -582,7 +582,7 @@ config_data! { cargo_buildScripts_useRustcWrapper: bool = true, /// List of cfg options to enable with the given values. cargo_cfgs: Vec = { - vec!["debug_assertion".into(), "miri".into()] + vec!["debug_assertions".into(), "miri".into()] }, /// Extra arguments that are passed to every cargo invocation. cargo_extraArgs: Vec = vec![], diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index 2b518e060988..bd091db58d3f 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -95,7 +95,7 @@ avoid checking unnecessary things. Default: ---- [ - "debug_assertion", + "debug_assertions", "miri" ] ---- diff --git a/editors/code/package.json b/editors/code/package.json index 48e29a7fe289..8b066377f2b2 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -816,7 +816,7 @@ "rust-analyzer.cargo.cfgs": { "markdownDescription": "List of cfg options to enable with the given values.", "default": [ - "debug_assertion", + "debug_assertions", "miri" ], "type": "array",