mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
feat: add unresolved-ident diagnostic
This commit is contained in:
parent
d818b531c9
commit
a492d9d164
12 changed files with 113 additions and 26 deletions
|
@ -60,6 +60,7 @@ fn f() {
|
|||
#[cfg(a)] let x = 0; // let statement
|
||||
//^^^^^^^^^^^^^^^^^^^^ weak: code is inactive due to #[cfg] directives: a is disabled
|
||||
|
||||
fn abc() {}
|
||||
abc(#[cfg(a)] 0);
|
||||
//^^^^^^^^^^^ weak: code is inactive due to #[cfg] directives: a is disabled
|
||||
let x = Struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue