aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/diagnostics/unlinked_file.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-24 21:18:59 +0000
committerGitHub <[email protected]>2021-03-24 21:18:59 +0000
commitaac6285f0bfe60e20e042963fdda9e454e08a7ad (patch)
treed3c56f022b9a6d05f4d6f5d7588e072d2437687f /crates/ide/src/diagnostics/unlinked_file.rs
parent4a1f5d367db3b5c6ec27d96c96c98b89988c0b3a (diff)
parent37c6ce34a91b74255f10bccccaabcd2cf7aa3abd (diff)
Merge #8189
8189: Document unlinked-file diagnostic r=jonas-schievink a=jonas-schievink fixes https://github.com/rust-analyzer/rust-analyzer/issues/8188 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/ide/src/diagnostics/unlinked_file.rs')
-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,