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_middle/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_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/mir/syntax.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs index 40af453f6ce..5c9857b9c53 100644 --- a/compiler/rustc_middle/src/mir/syntax.rs +++ b/compiler/rustc_middle/src/mir/syntax.rs @@ -15,7 +15,7 @@ use crate::ty::{Region, UserTypeAnnotationIndex}; use rustc_ast::{InlineAsmOptions, InlineAsmTemplatePiece}; use rustc_data_structures::packed::Pu128; use rustc_hir::def_id::DefId; -use rustc_hir::{self, CoroutineKind}; +use rustc_hir::CoroutineKind; use rustc_index::IndexVec; use rustc_span::source_map::Spanned; use rustc_target::abi::{FieldIdx, VariantIdx}; |
