@@ -338,8 +338,6 @@ pub struct TypeckTables<'tcx> {
338338 /// typeck::check::fn_ctxt for details.
339339 node_types : ItemLocalMap < Ty < ' tcx > > ,
340340
341- node_method_def_id : ItemLocalMap < DefId > ,
342-
343341 /// Stores the type parameters which were substituted to obtain the type
344342 /// of this node. This only applies to nodes that refer to entities
345343 /// parameterized by type parameters, such as generic fns, types, or
@@ -444,7 +442,6 @@ impl<'tcx> TypeckTables<'tcx> {
444442 user_provided_types : Default :: default ( ) ,
445443 user_provided_sigs : Default :: default ( ) ,
446444 node_types : Default :: default ( ) ,
447- node_method_def_id : Default :: default ( ) ,
448445 node_substs : Default :: default ( ) ,
449446 adjustments : Default :: default ( ) ,
450447 pat_binding_modes : Default :: default ( ) ,
@@ -545,20 +542,6 @@ impl<'tcx> TypeckTables<'tcx> {
545542 }
546543 }
547544
548- pub fn node_method_def_id ( & self ) -> LocalTableInContext < ' _ , DefId > {
549- LocalTableInContext {
550- local_id_root : self . local_id_root ,
551- data : & self . node_method_def_id
552- }
553- }
554-
555- pub fn node_method_def_id_mut ( & mut self ) -> LocalTableInContextMut < ' _ , DefId > {
556- LocalTableInContextMut {
557- local_id_root : self . local_id_root ,
558- data : & mut self . node_method_def_id
559- }
560- }
561-
562545 pub fn node_type ( & self , id : hir:: HirId ) -> Ty < ' tcx > {
563546 self . node_type_opt ( id) . unwrap_or_else ( ||
564547 bug ! ( "node_type: no type for node `{}`" ,
@@ -765,7 +748,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
765748 ref user_provided_types,
766749 ref user_provided_sigs,
767750 ref node_types,
768- ref node_method_def_id,
769751 ref node_substs,
770752 ref adjustments,
771753 ref pat_binding_modes,
@@ -792,7 +774,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
792774 user_provided_types. hash_stable ( hcx, hasher) ;
793775 user_provided_sigs. hash_stable ( hcx, hasher) ;
794776 node_types. hash_stable ( hcx, hasher) ;
795- node_method_def_id. hash_stable ( hcx, hasher) ;
796777 node_substs. hash_stable ( hcx, hasher) ;
797778 adjustments. hash_stable ( hcx, hasher) ;
798779 pat_binding_modes. hash_stable ( hcx, hasher) ;
0 commit comments