diff options
| author | bors <bors@rust-lang.org> | 2024-02-18 13:56:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-18 13:56:07 +0000 |
| commit | 8b21296b5db6d5724d6b8440dcf459fa82fd88b5 (patch) | |
| tree | 65acaf8e7a0d42e30db5834ab49841ffe6ce1eb3 /compiler/rustc_session/src | |
| parent | 6f726205a1b7992537ddec96c83f2b054b03e04f (diff) | |
| parent | a61126cef6c4083d57e22835033eb2eefdd31bac (diff) | |
| download | rust-8b21296b5db6d5724d6b8440dcf459fa82fd88b5.tar.gz rust-8b21296b5db6d5724d6b8440dcf459fa82fd88b5.zip | |
Auto merge of #117772 - surechen:for_117448, r=petrochenkov
Tracking import use types for more accurate redundant import checking fixes #117448 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. 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 ```
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index 25c20be8e62..9d1133c487f 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -22,7 +22,7 @@ use rustc_errors::emitter::{DynEmitter, HumanEmitter, HumanReadableErrorType}; use rustc_errors::json::JsonEmitter; use rustc_errors::registry::Registry; use rustc_errors::{ - codes::*, fallback_fluent_bundle, DiagCtxt, DiagnosticBuilder, DiagnosticMessage, ErrCode, + codes::*, fallback_fluent_bundle, DiagCtxt, DiagnosticBuilder, DiagnosticMessage, ErrorGuaranteed, FatalAbort, FluentBundle, IntoDiagnostic, LazyFallbackBundle, TerminalUrl, }; use rustc_macros::HashStable_Generic; |
