From d71015d90dbb154b508f8c0496fc64825a9b86e5 Mon Sep 17 00:00:00 2001 From: VinTarZ Date: Thu, 16 Jan 2025 14:19:16 +0300 Subject: [PATCH] Fix `debug_assertions` broken in 1c5a125beb35725ccc2ade005db9870db734bf23 --- crates/rust-analyzer/src/config.rs | 2 +- docs/user/generated_config.adoc | 2 +- editors/code/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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",