mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Merge #6085
6085: Mark unresolved imports diagnostic as experimental r=jonas-schievink a=jonas-schievink It causes a lot of false positives for people. We collected all of the known ones during the last week. Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
This commit is contained in:
commit
000046cfa0
1 changed files with 7 additions and 0 deletions
|
@ -69,4 +69,11 @@ impl Diagnostic for UnresolvedImport {
|
|||
fn as_any(&self) -> &(dyn Any + Send + 'static) {
|
||||
self
|
||||
}
|
||||
fn is_experimental(&self) -> bool {
|
||||
// This currently results in false positives in the following cases:
|
||||
// - `cfg_if!`-generated code in libstd (we don't load the sysroot correctly)
|
||||
// - `core::arch` (we don't handle `#[path = "../<path>"]` correctly)
|
||||
// - proc macros and/or proc macro generated code
|
||||
true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue