Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking import use types for more accurate redundant import checking #117772

Merged
merged 1 commit into from
Feb 18, 2024

Commits on Feb 18, 2024

  1. 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 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
    ```
    surechen committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    a61126c View commit details
    Browse the repository at this point in the history