Logo
Explore Help
Sign In
itsscb/rust
1
0
Fork 0
You've already forked rust
mirror of https://github.com/rust-lang/rust.git synced 2025-12-02 13:18:32 +00:00
Code Issues Packages Projects Releases Wiki Activity
rust/tests/ui/lint/use-redundant
History
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
…
Powered by Gitea Version: 1.23.6 Page: 1125ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API