Remove extern crate smallvec
from a couple of crates.
This commit is contained in:
parent
1ab34f063b
commit
52e9a23bdc
8 changed files with 6 additions and 10 deletions
|
@ -67,8 +67,6 @@
|
|||
|
||||
#[macro_use]
|
||||
extern crate tracing;
|
||||
#[macro_use]
|
||||
extern crate smallvec;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/// Functionality for terminators and helper types that appear in terminators.
|
||||
use rustc_hir::LangItem;
|
||||
use smallvec::SmallVec;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
|
||||
use super::TerminatorKind;
|
||||
use rustc_data_structures::packed::Pu128;
|
||||
|
|
|
@ -26,7 +26,7 @@ use rustc_macros::{
|
|||
use rustc_span::def_id::{LocalDefId, CRATE_DEF_ID};
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use smallvec::SmallVec;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::hash::{Hash, Hasher};
|
||||
|
|
|
@ -22,7 +22,7 @@ use rustc_session::Limit;
|
|||
use rustc_span::sym;
|
||||
use rustc_target::abi::{Integer, IntegerType, Primitive, Size};
|
||||
use rustc_target::spec::abi::Abi;
|
||||
use smallvec::SmallVec;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use std::{fmt, iter};
|
||||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
use crate::ty::{self, Ty};
|
||||
use crate::ty::{GenericArg, GenericArgKind};
|
||||
use rustc_data_structures::sso::SsoHashSet;
|
||||
use smallvec::SmallVec;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
|
||||
// The TypeWalker's stack is hot enough that it's worth going to some effort to
|
||||
// avoid heap allocations.
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
extern crate tracing;
|
||||
#[macro_use]
|
||||
extern crate rustc_middle;
|
||||
#[macro_use]
|
||||
extern crate smallvec;
|
||||
|
||||
pub mod errors;
|
||||
pub mod infer;
|
||||
|
|
|
@ -10,7 +10,7 @@ use rustc_middle::ty::GenericArgsRef;
|
|||
use rustc_middle::ty::{self, ImplSubject, ToPredicate, Ty, TyCtxt, TypeVisitableExt};
|
||||
use rustc_middle::ty::{TypeFoldable, TypeFolder, TypeSuperFoldable};
|
||||
use rustc_span::Span;
|
||||
use smallvec::SmallVec;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
|
||||
pub use rustc_infer::traits::util::*;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use rustc_middle::ty::visit::TypeVisitableExt;
|
|||
use rustc_middle::ty::GenericArgs;
|
||||
use rustc_middle::ty::{self, GenericParamDefKind, ToPredicate, Ty, TyCtxt, VtblEntry};
|
||||
use rustc_span::{sym, Span};
|
||||
use smallvec::SmallVec;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
|
||||
use std::fmt::Debug;
|
||||
use std::ops::ControlFlow;
|
||||
|
|
Loading…
Add table
Reference in a new issue