aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-10-23 18:31:11 +0100
committerJonas Schievink <[email protected]>2020-10-23 18:31:11 +0100
commit5350c15e27bfb85d2e7ae3eae0e624197f2b9a70 (patch)
tree7c74f86f04fb9cc68ea69fb2f9ec0b4057f0c3a0
parent93dc6f511bedb7c18319bbf3efe47a7db4b2aa53 (diff)
Fix name of InactiveCode diagnostic
-rw-r--r--crates/hir_def/src/diagnostics.rs2
-rw-r--r--docs/user/generated_diagnostic.adoc12
2 files changed, 7 insertions, 7 deletions
diff --git a/crates/hir_def/src/diagnostics.rs b/crates/hir_def/src/diagnostics.rs
index 90d9cdcba..b221b290c 100644
--- a/crates/hir_def/src/diagnostics.rs
+++ b/crates/hir_def/src/diagnostics.rs
@@ -95,7 +95,7 @@ impl Diagnostic for UnresolvedImport {
95 } 95 }
96} 96}
97 97
98// Diagnostic: unconfigured-code 98// Diagnostic: inactive-code
99// 99//
100// This diagnostic is shown for code with inactive `#[cfg]` attributes. 100// This diagnostic is shown for code with inactive `#[cfg]` attributes.
101#[derive(Debug, Clone, Eq, PartialEq)] 101#[derive(Debug, Clone, Eq, PartialEq)]
diff --git a/docs/user/generated_diagnostic.adoc b/docs/user/generated_diagnostic.adoc
index 0b3cbcdde..34c4f98a3 100644
--- a/docs/user/generated_diagnostic.adoc
+++ b/docs/user/generated_diagnostic.adoc
@@ -5,6 +5,12 @@
5This diagnostic is triggered if `break` keyword is used outside of a loop. 5This diagnostic is triggered if `break` keyword is used outside of a loop.
6 6
7 7
8=== inactive-code
9**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L98[diagnostics.rs]
10
11This diagnostic is shown for code with inactive `#[cfg]` attributes.
12
13
8=== incorrect-ident-case 14=== incorrect-ident-case
9**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L319[diagnostics.rs] 15**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L319[diagnostics.rs]
10 16
@@ -81,12 +87,6 @@ This diagnostic is triggered if operation marked as `unsafe` is used outside of
81This diagnostic is triggered if created structure does not have field provided in record. 87This diagnostic is triggered if created structure does not have field provided in record.
82 88
83 89
84=== unconfigured-code
85**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L98[diagnostics.rs]
86
87This diagnostic is shown for code with inactive `#[cfg]` attributes.
88
89
90=== unresolved-extern-crate 90=== unresolved-extern-crate
91**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L43[diagnostics.rs] 91**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L43[diagnostics.rs]
92 92