@@ -338,8 +338,6 @@ pub struct TypeckTables<'tcx> {
338
338
/// typeck::check::fn_ctxt for details.
339
339
node_types : ItemLocalMap < Ty < ' tcx > > ,
340
340
341
- node_method_def_id : ItemLocalMap < DefId > ,
342
-
343
341
/// Stores the type parameters which were substituted to obtain the type
344
342
/// of this node. This only applies to nodes that refer to entities
345
343
/// parameterized by type parameters, such as generic fns, types, or
@@ -444,7 +442,6 @@ impl<'tcx> TypeckTables<'tcx> {
444
442
user_provided_types : Default :: default ( ) ,
445
443
user_provided_sigs : Default :: default ( ) ,
446
444
node_types : Default :: default ( ) ,
447
- node_method_def_id : Default :: default ( ) ,
448
445
node_substs : Default :: default ( ) ,
449
446
adjustments : Default :: default ( ) ,
450
447
pat_binding_modes : Default :: default ( ) ,
@@ -545,20 +542,6 @@ impl<'tcx> TypeckTables<'tcx> {
545
542
}
546
543
}
547
544
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
-
562
545
pub fn node_type ( & self , id : hir:: HirId ) -> Ty < ' tcx > {
563
546
self . node_type_opt ( id) . unwrap_or_else ( ||
564
547
bug ! ( "node_type: no type for node `{}`" ,
@@ -765,7 +748,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
765
748
ref user_provided_types,
766
749
ref user_provided_sigs,
767
750
ref node_types,
768
- ref node_method_def_id,
769
751
ref node_substs,
770
752
ref adjustments,
771
753
ref pat_binding_modes,
@@ -792,7 +774,6 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
792
774
user_provided_types. hash_stable ( hcx, hasher) ;
793
775
user_provided_sigs. hash_stable ( hcx, hasher) ;
794
776
node_types. hash_stable ( hcx, hasher) ;
795
- node_method_def_id. hash_stable ( hcx, hasher) ;
796
777
node_substs. hash_stable ( hcx, hasher) ;
797
778
adjustments. hash_stable ( hcx, hasher) ;
798
779
pat_binding_modes. hash_stable ( hcx, hasher) ;
0 commit comments