Skip to content

Commit 52e9a23

Browse files
committed
Remove extern crate smallvec from a couple of crates.
1 parent 1ab34f0 commit 52e9a23

File tree

8 files changed

+6
-10
lines changed

8 files changed

+6
-10
lines changed

compiler/rustc_middle/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@
6767

6868
#[macro_use]
6969
extern crate tracing;
70-
#[macro_use]
71-
extern crate smallvec;
7270

7371
#[cfg(test)]
7472
mod tests;

compiler/rustc_middle/src/mir/terminator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Functionality for terminators and helper types that appear in terminators.
22
use rustc_hir::LangItem;
3-
use smallvec::SmallVec;
3+
use smallvec::{smallvec, SmallVec};
44

55
use super::TerminatorKind;
66
use rustc_data_structures::packed::Pu128;

compiler/rustc_middle/src/traits/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use rustc_macros::{
2626
use rustc_span::def_id::{LocalDefId, CRATE_DEF_ID};
2727
use rustc_span::symbol::Symbol;
2828
use rustc_span::{Span, DUMMY_SP};
29-
use smallvec::SmallVec;
29+
use smallvec::{smallvec, SmallVec};
3030

3131
use std::borrow::Cow;
3232
use std::hash::{Hash, Hasher};

compiler/rustc_middle/src/ty/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use rustc_session::Limit;
2222
use rustc_span::sym;
2323
use rustc_target::abi::{Integer, IntegerType, Primitive, Size};
2424
use rustc_target::spec::abi::Abi;
25-
use smallvec::SmallVec;
25+
use smallvec::{smallvec, SmallVec};
2626
use std::{fmt, iter};
2727

2828
#[derive(Copy, Clone, Debug)]

compiler/rustc_middle/src/ty/walk.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use crate::ty::{self, Ty};
55
use crate::ty::{GenericArg, GenericArgKind};
66
use rustc_data_structures::sso::SsoHashSet;
7-
use smallvec::SmallVec;
7+
use smallvec::{smallvec, SmallVec};
88

99
// The TypeWalker's stack is hot enough that it's worth going to some effort to
1010
// avoid heap allocations.

compiler/rustc_trait_selection/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
extern crate tracing;
3434
#[macro_use]
3535
extern crate rustc_middle;
36-
#[macro_use]
37-
extern crate smallvec;
3836

3937
pub mod errors;
4038
pub mod infer;

compiler/rustc_trait_selection/src/traits/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_middle::ty::GenericArgsRef;
1010
use rustc_middle::ty::{self, ImplSubject, ToPredicate, Ty, TyCtxt, TypeVisitableExt};
1111
use rustc_middle::ty::{TypeFoldable, TypeFolder, TypeSuperFoldable};
1212
use rustc_span::Span;
13-
use smallvec::SmallVec;
13+
use smallvec::{smallvec, SmallVec};
1414

1515
pub use rustc_infer::traits::util::*;
1616

compiler/rustc_trait_selection/src/traits/vtable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_middle::ty::visit::TypeVisitableExt;
1010
use rustc_middle::ty::GenericArgs;
1111
use rustc_middle::ty::{self, GenericParamDefKind, ToPredicate, Ty, TyCtxt, VtblEntry};
1212
use rustc_span::{sym, Span};
13-
use smallvec::SmallVec;
13+
use smallvec::{smallvec, SmallVec};
1414

1515
use std::fmt::Debug;
1616
use std::ops::ControlFlow;

0 commit comments

Comments
 (0)