File tree 3 files changed +3
-3
lines changed
src/librustc_metadata/rmeta
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1392,7 +1392,7 @@ impl<'a, 'tcx> CrateMetadata {
1392
1392
1393
1393
fn generator_kind ( & self , id : DefIndex ) -> Option < hir:: GeneratorKind > {
1394
1394
match self . kind ( id) {
1395
- EntryKind :: Generator ( data) => Some ( data. decode ( self ) ) ,
1395
+ EntryKind :: Generator ( data) => Some ( data) ,
1396
1396
_ => None ,
1397
1397
}
1398
1398
}
Original file line number Diff line number Diff line change @@ -1268,7 +1268,7 @@ impl EncodeContext<'tcx> {
1268
1268
record ! ( self . per_def. kind[ def_id] <- match ty. kind {
1269
1269
ty:: Generator ( ..) => {
1270
1270
let data = self . tcx. generator_kind( def_id) . unwrap( ) ;
1271
- EntryKind :: Generator ( self . lazy ( data) )
1271
+ EntryKind :: Generator ( data)
1272
1272
}
1273
1273
1274
1274
ty:: Closure ( ..) => EntryKind :: Closure ,
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ enum EntryKind {
302
302
Mod ( Lazy < ModData > ) ,
303
303
MacroDef ( Lazy < MacroDef > ) ,
304
304
Closure ,
305
- Generator ( Lazy < hir:: GeneratorKind > ) ,
305
+ Generator ( hir:: GeneratorKind ) ,
306
306
Trait ( Lazy < TraitData > ) ,
307
307
Impl ( Lazy < ImplData > ) ,
308
308
Method ( Lazy < MethodData > ) ,
You can’t perform that action at this time.
0 commit comments