Skip to content

Commit

Permalink
By tracking import use types to check whether it is scope uses or the…
Browse files Browse the repository at this point in the history
… other situations like module-relative uses, we can do more accurate redundant import checking.

fixes rust-lang#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
```
  • Loading branch information
surechen committed Feb 18, 2024
1 parent 1ac4d93 commit d88ad9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use std::fs::read_to_string;
use std::ops::Deref;
use std::path::Path;
use std::process::exit;
use std::string::ToString;

use anstream::println;

Expand Down

0 comments on commit d88ad9e

Please sign in to comment.