@@ -503,10 +503,6 @@ impl MethodCall {
503503// of the method to be invoked
504504pub type MethodMap < ' tcx > = RefCell < FnvHashMap < MethodCall , MethodCallee < ' tcx > > > ;
505505
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-
510506// Contains information needed to resolve types and (in the future) look up
511507// the types of AST nodes.
512508#[ derive( Copy , Clone , PartialEq , Eq , Hash ) ]
@@ -557,8 +553,7 @@ pub struct CtxtArenas<'tcx> {
557553 stability : TypedArena < attr:: Stability > ,
558554
559555 // references
560- trait_defs : TypedArena < TraitDef < ' tcx > >
561-
556+ trait_defs : TypedArena < TraitDef < ' tcx > > ,
562557}
563558
564559impl < ' tcx > CtxtArenas < ' tcx > {
@@ -612,7 +607,6 @@ pub struct ctxt<'tcx> {
612607 region_interner : RefCell < FnvHashMap < & ' tcx Region , & ' tcx Region > > ,
613608 stability_interner : RefCell < FnvHashMap < & ' tcx attr:: Stability , & ' tcx attr:: Stability > > ,
614609
615-
616610 /// Common types, pre-interned for your convenience.
617611 pub types : CommonTypes < ' tcx > ,
618612
@@ -665,10 +659,6 @@ pub struct ctxt<'tcx> {
665659 /// additional acyclicity requirements).
666660 pub super_predicates : RefCell < DefIdMap < GenericPredicates < ' tcx > > > ,
667661
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-
672662 pub map : ast_map:: Map < ' tcx > ,
673663 pub freevars : RefCell < FreevarMap > ,
674664 pub tcache : RefCell < DefIdMap < TypeScheme < ' tcx > > > ,
@@ -2742,7 +2732,6 @@ pub fn mk_ctxt<'tcx>(s: Session,
27422732 trait_defs : RefCell :: new ( DefIdMap ( ) ) ,
27432733 predicates : RefCell :: new ( DefIdMap ( ) ) ,
27442734 super_predicates : RefCell :: new ( DefIdMap ( ) ) ,
2745- object_cast_map : RefCell :: new ( NodeMap ( ) ) ,
27462735 map : map,
27472736 freevars : freevars,
27482737 tcache : RefCell :: new ( DefIdMap ( ) ) ,
0 commit comments