1
Fork 0

Rollup merge of #122373 - surechen:fix_121331, r=petrochenkov

Fix the conflict problem between the diagnostics fixes of lint `unnecessary_qualification`  and  `unused_imports`

fixes #121331

For an `item` that triggers lint unnecessary_qualification, if the `use item` which imports this item is also trigger unused import, fixing the two lints at the same time may lead to the problem that the `item` cannot be found.
This PR will avoid reporting lint unnecessary_qualification when conflict occurs.

r? ``@petrochenkov``
This commit is contained in:
Matthias Krüger 2024-03-14 20:00:20 +01:00 committed by GitHub
commit b200108bc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 269 additions and 42 deletions

View file

@ -557,6 +557,7 @@ declare_lint! {
/// fn main() {
/// use foo::bar;
/// foo::bar();
/// bar();
/// }
/// ```
///