mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add unused_variables
native diagnostic
This commit is contained in:
parent
e5e937ae5e
commit
7834b8fadb
12 changed files with 282 additions and 38 deletions
|
@ -66,6 +66,7 @@ diagnostics![
|
|||
UnresolvedModule,
|
||||
UnresolvedProcMacro,
|
||||
UnusedMut,
|
||||
UnusedVariable,
|
||||
];
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -270,6 +271,11 @@ pub struct UnusedMut {
|
|||
pub local: Local,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct UnusedVariable {
|
||||
pub local: Local,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct MovedOutOfRef {
|
||||
pub ty: Type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue