Skip to content

Commit 5350c15

Browse files
author
Jonas Schievink
committed
Fix name of InactiveCode diagnostic
1 parent 93dc6f5 commit 5350c15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crates/hir_def/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Diagnostic for UnresolvedImport {
9595
}
9696
}
9797

98-
// Diagnostic: unconfigured-code
98+
// Diagnostic: inactive-code
9999
//
100100
// This diagnostic is shown for code with inactive `#[cfg]` attributes.
101101
#[derive(Debug, Clone, Eq, PartialEq)]

docs/user/generated_diagnostic.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
This diagnostic is triggered if `break` keyword is used outside of a loop.
66

77

8+
=== inactive-code
9+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L98[diagnostics.rs]
10+
11+
This diagnostic is shown for code with inactive `#[cfg]` attributes.
12+
13+
814
=== incorrect-ident-case
915
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L319[diagnostics.rs]
1016

@@ -81,12 +87,6 @@ This diagnostic is triggered if operation marked as `unsafe` is used outside of
8187
This diagnostic is triggered if created structure does not have field provided in record.
8288

8389

84-
=== unconfigured-code
85-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L98[diagnostics.rs]
86-
87-
This diagnostic is shown for code with inactive `#[cfg]` attributes.
88-
89-
9090
=== unresolved-extern-crate
9191
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L43[diagnostics.rs]
9292

0 commit comments

Comments
 (0)