From 5350c15e27bfb85d2e7ae3eae0e624197f2b9a70 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 23 Oct 2020 19:31:11 +0200 Subject: [PATCH] Fix name of InactiveCode diagnostic --- crates/hir_def/src/diagnostics.rs | 2 +- docs/user/generated_diagnostic.adoc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/hir_def/src/diagnostics.rs b/crates/hir_def/src/diagnostics.rs index 90d9cdcbaafdb..b221b290c5664 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 0b3cbcdde1b4f..34c4f98a3fcd5 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]