Fix some use
items that import more than necessary.
This commit is contained in:
parent
1eddb158f9
commit
4183c08511
3 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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,
|
||||
..
|
||||
} => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue