diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-29 08:30:28 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-29 08:30:28 +0100 |
commit | ae7de296ae476708781ac367e0406454c8e6c335 (patch) | |
tree | b58d72b8f54843f3bebae6ab7447adc5deaec17c /crates | |
parent | bb1d925dab36372c6bd1fb5671bb68ce938ff009 (diff) | |
parent | bd18e5fa87f6fb0904b0cc439e254667c92bd30e (diff) |
Merge #8222
8222: Don't mark unlinked file diagnostic as unused r=lnicola a=jonas-schievink
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8215, at least on VS Code
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide/src/diagnostics.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ide/src/diagnostics.rs b/crates/ide/src/diagnostics.rs index 22697a537..dd42116a7 100644 --- a/crates/ide/src/diagnostics.rs +++ b/crates/ide/src/diagnostics.rs | |||
@@ -165,7 +165,6 @@ pub(crate) fn diagnostics( | |||
165 | sema.diagnostics_display_range(d.display_source()).range, | 165 | sema.diagnostics_display_range(d.display_source()).range, |
166 | d.message(), | 166 | d.message(), |
167 | ) | 167 | ) |
168 | .with_unused(true) | ||
169 | .with_fix(d.fix(&sema)) | 168 | .with_fix(d.fix(&sema)) |
170 | .with_code(Some(d.code())), | 169 | .with_code(Some(d.code())), |
171 | ); | 170 | ); |