@@ -360,8 +360,6 @@ pub struct TypeckTables<'tcx> {
360
360
/// not all closures are present in the map.
361
361
closure_kind_origins : ItemLocalMap < ( Span , ast:: Name ) > ,
362
362
363
- generator_sigs : ItemLocalMap < Option < ty:: GenSig < ' tcx > > > ,
364
-
365
363
generator_interiors : ItemLocalMap < ty:: GeneratorInterior < ' tcx > > ,
366
364
367
365
/// For each fn, records the "liberated" types of its arguments
@@ -408,7 +406,6 @@ impl<'tcx> TypeckTables<'tcx> {
408
406
pat_binding_modes : ItemLocalMap ( ) ,
409
407
pat_adjustments : ItemLocalMap ( ) ,
410
408
upvar_capture_map : FxHashMap ( ) ,
411
- generator_sigs : ItemLocalMap ( ) ,
412
409
generator_interiors : ItemLocalMap ( ) ,
413
410
closure_kind_origins : ItemLocalMap ( ) ,
414
411
liberated_fn_sigs : ItemLocalMap ( ) ,
@@ -661,24 +658,6 @@ impl<'tcx> TypeckTables<'tcx> {
661
658
}
662
659
}
663
660
664
- pub fn generator_sigs ( & self )
665
- -> LocalTableInContext < Option < ty:: GenSig < ' tcx > > >
666
- {
667
- LocalTableInContext {
668
- local_id_root : self . local_id_root ,
669
- data : & self . generator_sigs ,
670
- }
671
- }
672
-
673
- pub fn generator_sigs_mut ( & mut self )
674
- -> LocalTableInContextMut < Option < ty:: GenSig < ' tcx > > >
675
- {
676
- LocalTableInContextMut {
677
- local_id_root : self . local_id_root ,
678
- data : & mut self . generator_sigs ,
679
- }
680
- }
681
-
682
661
pub fn generator_interiors ( & self )
683
662
-> LocalTableInContext < ty:: GeneratorInterior < ' tcx > >
684
663
{
@@ -720,7 +699,6 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for TypeckTables<'gcx> {
720
699
ref used_trait_imports,
721
700
tainted_by_errors,
722
701
ref free_region_map,
723
- ref generator_sigs,
724
702
ref generator_interiors,
725
703
} = * self ;
726
704
@@ -757,7 +735,6 @@ impl<'gcx> HashStable<StableHashingContext<'gcx>> for TypeckTables<'gcx> {
757
735
liberated_fn_sigs. hash_stable ( hcx, hasher) ;
758
736
fru_field_types. hash_stable ( hcx, hasher) ;
759
737
cast_kinds. hash_stable ( hcx, hasher) ;
760
- generator_sigs. hash_stable ( hcx, hasher) ;
761
738
generator_interiors. hash_stable ( hcx, hasher) ;
762
739
used_trait_imports. hash_stable ( hcx, hasher) ;
763
740
tainted_by_errors. hash_stable ( hcx, hasher) ;
0 commit comments