Add machine-applicable suggestion for unused_qualifications lint

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2023-06-17 15:06:48 +08:00
parent 33a2c2487a
commit 0b5c683b06
No known key found for this signature in database
GPG key ID: 94F68FD0E4899BB0
7 changed files with 98 additions and 1 deletions

View file

@ -550,6 +550,12 @@ pub enum BuiltinLintDiagnostics {
/// The local binding that shadows the glob reexport.
private_item_span: Span,
},
UnusedQualifications {
/// The span of the unnecessarily-qualified path.
path_span: Span,
/// The replacement unqualified path.
unqualified_path: Ident,
},
}
/// Lints that are buffered up early on in the `Session` before the