diff options
| author | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2020-10-23 19:27:04 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2020-10-23 19:27:04 +0200 |
| commit | 93dc6f511bedb7c18319bbf3efe47a7db4b2aa53 (patch) | |
| tree | c12c45372521a19b24c749e41f7472906afff037 /docs/user | |
| parent | dd8a75b2cf46a967b3449652fe17c19a8fcc4e41 (diff) | |
| download | rust-93dc6f511bedb7c18319bbf3efe47a7db4b2aa53.tar.gz rust-93dc6f511bedb7c18319bbf3efe47a7db4b2aa53.zip | |
Diagnose #[cfg]s in bodies
Diffstat (limited to 'docs/user')
| -rw-r--r-- | docs/user/generated_diagnostic.adoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/user/generated_diagnostic.adoc b/docs/user/generated_diagnostic.adoc index ec45d0c2b8f..0b3cbcdde1b 100644 --- a/docs/user/generated_diagnostic.adoc +++ b/docs/user/generated_diagnostic.adoc @@ -82,24 +82,24 @@ This diagnostic is triggered if created structure does not have field provided i === unconfigured-code -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L90[diagnostics.rs] +**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#L35[diagnostics.rs] +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L43[diagnostics.rs] This diagnostic is triggered if rust-analyzer is unable to discover referred extern crate. === unresolved-import -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L59[diagnostics.rs] +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L67[diagnostics.rs] This diagnostic is triggered if rust-analyzer is unable to discover imported module. === unresolved-module -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L10[diagnostics.rs] +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L18[diagnostics.rs] This diagnostic is triggered if rust-analyzer is unable to discover referred module. |
