rust/tests/ui/lint/use-redundant
surechen a61126cef6 By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking.
fixes #117448

For example unnecessary imports in std::prelude that can be eliminated:

```rust
use std::option::Option::Some;//~ WARNING the item `Some` is imported redundantly
use std::option::Option::None; //~ WARNING the item `None` is imported redundantly
```
2024-02-18 16:38:11 +08:00
..
issue-92904.rs
use-redundant-glob-parent.rs
use-redundant-glob-parent.stderr
use-redundant-glob.rs
use-redundant-glob.stderr
use-redundant-multiple-namespaces.rs
use-redundant-not-parent.rs
use-redundant-prelude-rust-2015.rs
use-redundant-prelude-rust-2015.stderr
use-redundant-prelude-rust-2021.rs
use-redundant-prelude-rust-2021.stderr
use-redundant.rs
use-redundant.stderr