Skip to content

Commit 4183c08

Browse files
committed
Fix some use items that import more than necessary.
1 parent 1eddb15 commit 4183c08

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_middle/src/mir/terminator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_hir::LangItem;
88
use rustc_macros::{HashStable, TyDecodable, TyEncodable, TypeFoldable, TypeVisitable};
99
use smallvec::{SmallVec, smallvec};
1010

11-
use super::{TerminatorKind, *};
11+
use super::*;
1212

1313
impl SwitchTargets {
1414
/// Creates switch targets from an iterator of values and target blocks.

compiler/rustc_middle/src/ty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub use rustc_session::lint::RegisteredTools;
4747
use rustc_span::hygiene::MacroKind;
4848
use rustc_span::{ExpnId, ExpnKind, Ident, Span, Symbol, kw, sym};
4949
pub use rustc_type_ir::relate::VarianceDiagInfo;
50-
pub use rustc_type_ir::{Movability, Mutability, *};
50+
pub use rustc_type_ir::*;
5151
use tracing::{debug, instrument};
5252
pub use vtable::*;
5353
use {rustc_ast as ast, rustc_attr_parsing as attr, rustc_hir as hir};

compiler/rustc_mir_build/src/builder/matches/match_pair.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::sync::Arc;
22

33
use rustc_middle::mir::*;
4-
use rustc_middle::thir::{self, *};
4+
use rustc_middle::thir::*;
55
use rustc_middle::ty::{self, Ty, TypeVisitableExt};
66

77
use crate::builder::Builder;
@@ -134,7 +134,7 @@ impl<'tcx> MatchPairTree<'tcx> {
134134
PatKind::Constant { value } => TestCase::Constant { value },
135135

136136
PatKind::AscribeUserType {
137-
ascription: thir::Ascription { ref annotation, variance },
137+
ascription: Ascription { ref annotation, variance },
138138
ref subpattern,
139139
..
140140
} => {

0 commit comments

Comments
 (0)