1
Fork 0

Fix some use items that import more than necessary.

This commit is contained in:
Nicholas Nethercote 2025-02-24 09:30:42 +11:00
parent 1eddb158f9
commit 4183c08511
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ use rustc_hir::LangItem;
use rustc_macros::{HashStable, TyDecodable, TyEncodable, TypeFoldable, TypeVisitable};
use smallvec::{SmallVec, smallvec};
use super::{TerminatorKind, *};
use super::*;
impl SwitchTargets {
/// Creates switch targets from an iterator of values and target blocks.

View file

@ -47,7 +47,7 @@ pub use rustc_session::lint::RegisteredTools;
use rustc_span::hygiene::MacroKind;
use rustc_span::{ExpnId, ExpnKind, Ident, Span, Symbol, kw, sym};
pub use rustc_type_ir::relate::VarianceDiagInfo;
pub use rustc_type_ir::{Movability, Mutability, *};
pub use rustc_type_ir::*;
use tracing::{debug, instrument};
pub use vtable::*;
use {rustc_ast as ast, rustc_attr_parsing as attr, rustc_hir as hir};

View file

@ -1,7 +1,7 @@
use std::sync::Arc;
use rustc_middle::mir::*;
use rustc_middle::thir::{self, *};
use rustc_middle::thir::*;
use rustc_middle::ty::{self, Ty, TypeVisitableExt};
use crate::builder::Builder;
@ -134,7 +134,7 @@ impl<'tcx> MatchPairTree<'tcx> {
PatKind::Constant { value } => TestCase::Constant { value },
PatKind::AscribeUserType {
ascription: thir::Ascription { ref annotation, variance },
ascription: Ascription { ref annotation, variance },
ref subpattern,
..
} => {