Skip to content

Commit 73c9543

Browse files
committed
removed unused import
1 parent d870a96 commit 73c9543

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

src/librustc/traits/trans/mod.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
// seems likely that they should eventually be merged into more
1414
// general routines.
1515

16-
use dep_graph::{DepGraph, DepKind, DepTrackingMap, DepTrackingMapConfig};
16+
use dep_graph::{DepKind, DepTrackingMapConfig};
1717
use infer::TransNormalize;
18-
use std::cell::RefCell;
1918
use std::marker::PhantomData;
2019
use syntax_pos::DUMMY_SP;
2120
use traits::{FulfillmentContext, Obligation, ObligationCause, SelectionContext, Vtable};
2221
use ty::{self, Ty, TyCtxt};
2322
use ty::subst::{Subst, Substs};
2423
use ty::fold::{TypeFoldable, TypeFolder};
25-
use util::common::MemoizationMap;
2624

2725
/// Attempts to resolve an obligation to a vtable.. The result is
2826
/// a shallow vtable resolution -- meaning that we do not
@@ -136,20 +134,6 @@ impl<'a, 'gcx> TypeFolder<'gcx, 'gcx> for AssociatedTypeNormalizer<'a, 'gcx> {
136134
}
137135
}
138136

139-
/// Specializes caches used in trans -- in particular, they assume all
140-
/// types are fully monomorphized and that free regions can be erased.
141-
pub struct TransTraitCaches<'tcx> {
142-
project_cache: RefCell<DepTrackingMap<ProjectionCache<'tcx>>>,
143-
}
144-
145-
impl<'tcx> TransTraitCaches<'tcx> {
146-
pub fn new(graph: DepGraph) -> Self {
147-
TransTraitCaches {
148-
project_cache: RefCell::new(DepTrackingMap::new(graph)),
149-
}
150-
}
151-
}
152-
153137
// Implement DepTrackingMapConfig for `trait_cache`
154138
pub struct TraitSelectionCache<'tcx> {
155139
data: PhantomData<&'tcx ()>

src/librustc/ty/context.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,9 +851,6 @@ pub struct GlobalCtxt<'tcx> {
851851

852852
pub sess: &'tcx Session,
853853

854-
855-
pub trans_trait_caches: traits::trans::TransTraitCaches<'tcx>,
856-
857854
pub dep_graph: DepGraph,
858855

859856
/// Common types, pre-interned for your convenience.
@@ -1137,7 +1134,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
11371134
tls::enter_global(GlobalCtxt {
11381135
sess: s,
11391136
cstore,
1140-
trans_trait_caches: traits::trans::TransTraitCaches::new(dep_graph.clone()),
11411137
global_arenas: arenas,
11421138
global_interners: interners,
11431139
dep_graph: dep_graph.clone(),

0 commit comments

Comments
 (0)