Skip to content

Commit 903d3bc

Browse files
bors[bot]Jonas Schievink
and
Jonas Schievink
authored
11809: feat: disable experimental diagnostics by default r=jonas-schievink a=jonas-schievink Now that we diagnose type mismatches, we have another diagnostic that can potentially produce false positives, so let's disable experimental diagnostics by default. Co-authored-by: Jonas Schievink <[email protected]>
2 parents d64f455 + 44a99d6 commit 903d3bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ config_data! {
176176
diagnostics_enable: bool = "true",
177177
/// Whether to show experimental rust-analyzer diagnostics that might
178178
/// have more false positives than usual.
179-
diagnostics_enableExperimental: bool = "true",
179+
diagnostics_enableExperimental: bool = "false",
180180
/// List of rust-analyzer diagnostics to disable.
181181
diagnostics_disabled: FxHashSet<String> = "[]",
182182
/// Map of prefixes to be substituted when parsing diagnostic file paths.

docs/user/generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Enables completions of private items and fields that are defined in the current
223223
--
224224
Whether to show native rust-analyzer diagnostics.
225225
--
226-
[[rust-analyzer.diagnostics.enableExperimental]]rust-analyzer.diagnostics.enableExperimental (default: `true`)::
226+
[[rust-analyzer.diagnostics.enableExperimental]]rust-analyzer.diagnostics.enableExperimental (default: `false`)::
227227
+
228228
--
229229
Whether to show experimental rust-analyzer diagnostics that might

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@
645645
},
646646
"rust-analyzer.diagnostics.enableExperimental": {
647647
"markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
648-
"default": true,
648+
"default": false,
649649
"type": "boolean"
650650
},
651651
"rust-analyzer.diagnostics.disabled": {

0 commit comments

Comments
 (0)