mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +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
|
@ -78,7 +78,9 @@ fn method_fix(
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{
|
||||
tests::{check_diagnostics, check_diagnostics_with_config},
|
||||
tests::{
|
||||
check_diagnostics, check_diagnostics_with_config, check_diagnostics_with_disabled,
|
||||
},
|
||||
DiagnosticsConfig,
|
||||
};
|
||||
|
||||
|
@ -148,7 +150,7 @@ fn foo() {
|
|||
|
||||
#[test]
|
||||
fn no_diagnostic_on_unknown() {
|
||||
check_diagnostics(
|
||||
check_diagnostics_with_disabled(
|
||||
r#"
|
||||
fn foo() {
|
||||
x.foo;
|
||||
|
@ -156,6 +158,7 @@ fn foo() {
|
|||
(&((x,),),).foo;
|
||||
}
|
||||
"#,
|
||||
&["E0425"],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue