diff --git a/crates/hir_def/src/diagnostics.rs b/crates/hir_def/src/diagnostics.rs index 90d9cdcbaaf..b221b290c56 100644 --- a/crates/hir_def/src/diagnostics.rs +++ b/crates/hir_def/src/diagnostics.rs @@ -95,7 +95,7 @@ impl Diagnostic for UnresolvedImport { } } -// Diagnostic: unconfigured-code +// Diagnostic: inactive-code // // This diagnostic is shown for code with inactive `#[cfg]` attributes. #[derive(Debug, Clone, Eq, PartialEq)] diff --git a/docs/user/generated_diagnostic.adoc b/docs/user/generated_diagnostic.adoc index 0b3cbcdde1b..34c4f98a3fc 100644 --- a/docs/user/generated_diagnostic.adoc +++ b/docs/user/generated_diagnostic.adoc @@ -5,6 +5,12 @@ This diagnostic is triggered if `break` keyword is used outside of a loop. +=== inactive-code +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L98[diagnostics.rs] + +This diagnostic is shown for code with inactive `#[cfg]` attributes. + + === incorrect-ident-case **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L319[diagnostics.rs] @@ -81,12 +87,6 @@ This diagnostic is triggered if operation marked as `unsafe` is used outside of This diagnostic is triggered if created structure does not have field provided in record. -=== unconfigured-code -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L98[diagnostics.rs] - -This diagnostic is shown for code with inactive `#[cfg]` attributes. - - === unresolved-extern-crate **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L43[diagnostics.rs]