We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b52d31 commit f0b5832Copy full SHA for f0b5832
crates/hir_def/src/diagnostics.rs
@@ -69,4 +69,11 @@ impl Diagnostic for UnresolvedImport {
69
fn as_any(&self) -> &(dyn Any + Send + 'static) {
70
self
71
}
72
+ fn is_experimental(&self) -> bool {
73
+ // This currently results in false positives in the following cases:
74
+ // - `cfg_if!`-generated code in libstd (we don't load the sysroot correctly)
75
+ // - `core::arch` (we don't handle `#[path = "../<path>"]` correctly)
76
+ // - proc macros and/or proc macro generated code
77
+ true
78
+ }
79
0 commit comments