aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-03-24 21:18:17 +0000
committerJonas Schievink <[email protected]>2021-03-24 21:18:17 +0000
commit37c6ce34a91b74255f10bccccaabcd2cf7aa3abd (patch)
treed3c56f022b9a6d05f4d6f5d7588e072d2437687f /crates/ide/src
parent4a1f5d367db3b5c6ec27d96c96c98b89988c0b3a (diff)
Document unlinked-file diagnostic
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/diagnostics/unlinked_file.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide/src/diagnostics/unlinked_file.rs b/crates/ide/src/diagnostics/unlinked_file.rs
index c5741bf6b..019b0b440 100644
--- a/crates/ide/src/diagnostics/unlinked_file.rs
+++ b/crates/ide/src/diagnostics/unlinked_file.rs
@@ -20,6 +20,10 @@ use crate::Fix;
20 20
21use super::fixes::DiagnosticWithFix; 21use super::fixes::DiagnosticWithFix;
22 22
23// Diagnostic: unlinked-file
24//
25// This diagnostic is shown for files that are not included in any crate, or files that are part of
26// crates rust-analyzer failed to discover. The file will not have IDE features available.
23#[derive(Debug)] 27#[derive(Debug)]
24pub(crate) struct UnlinkedFile { 28pub(crate) struct UnlinkedFile {
25 pub(crate) file_id: FileId, 29 pub(crate) file_id: FileId,