@@ -503,10 +503,6 @@ impl MethodCall {
503
503
// of the method to be invoked
504
504
pub type MethodMap < ' tcx > = RefCell < FnvHashMap < MethodCall , MethodCallee < ' tcx > > > ;
505
505
506
- // For every explicit cast into an object type, maps from the cast
507
- // expr to the associated trait ref.
508
- pub type ObjectCastMap < ' tcx > = RefCell < NodeMap < ty:: PolyTraitRef < ' tcx > > > ;
509
-
510
506
// Contains information needed to resolve types and (in the future) look up
511
507
// the types of AST nodes.
512
508
#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -557,8 +553,7 @@ pub struct CtxtArenas<'tcx> {
557
553
stability : TypedArena < attr:: Stability > ,
558
554
559
555
// references
560
- trait_defs : TypedArena < TraitDef < ' tcx > >
561
-
556
+ trait_defs : TypedArena < TraitDef < ' tcx > > ,
562
557
}
563
558
564
559
impl < ' tcx > CtxtArenas < ' tcx > {
@@ -612,7 +607,6 @@ pub struct ctxt<'tcx> {
612
607
region_interner : RefCell < FnvHashMap < & ' tcx Region , & ' tcx Region > > ,
613
608
stability_interner : RefCell < FnvHashMap < & ' tcx attr:: Stability , & ' tcx attr:: Stability > > ,
614
609
615
-
616
610
/// Common types, pre-interned for your convenience.
617
611
pub types : CommonTypes < ' tcx > ,
618
612
@@ -665,10 +659,6 @@ pub struct ctxt<'tcx> {
665
659
/// additional acyclicity requirements).
666
660
pub super_predicates : RefCell < DefIdMap < GenericPredicates < ' tcx > > > ,
667
661
668
- /// Maps from node-id of a trait object cast (like `foo as
669
- /// Box<Trait>`) to the trait reference.
670
- pub object_cast_map : ObjectCastMap < ' tcx > ,
671
-
672
662
pub map : ast_map:: Map < ' tcx > ,
673
663
pub freevars : RefCell < FreevarMap > ,
674
664
pub tcache : RefCell < DefIdMap < TypeScheme < ' tcx > > > ,
@@ -2742,7 +2732,6 @@ pub fn mk_ctxt<'tcx>(s: Session,
2742
2732
trait_defs : RefCell :: new ( DefIdMap ( ) ) ,
2743
2733
predicates : RefCell :: new ( DefIdMap ( ) ) ,
2744
2734
super_predicates : RefCell :: new ( DefIdMap ( ) ) ,
2745
- object_cast_map : RefCell :: new ( NodeMap ( ) ) ,
2746
2735
map : map,
2747
2736
freevars : freevars,
2748
2737
tcache : RefCell :: new ( DefIdMap ( ) ) ,
0 commit comments