Fix name of InactiveCode diagnostic

This commit is contained in:
Jonas Schievink 2020-10-23 19:31:11 +02:00
parent 93dc6f511b
commit 5350c15e27
2 changed files with 7 additions and 7 deletions

View file

@ -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)]

View file

@ -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]