Skip to content

Commit 9207a13

Browse files
committed
get rid of lazy
1 parent 7436057 commit 9207a13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc_metadata/rmeta/decoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ impl<'a, 'tcx> CrateMetadata {
13921392

13931393
fn generator_kind(&self, id: DefIndex) -> Option<hir::GeneratorKind> {
13941394
match self.kind(id) {
1395-
EntryKind::Generator(data) => Some(data.decode(self)),
1395+
EntryKind::Generator(data) => Some(data),
13961396
_ => None,
13971397
}
13981398
}

src/librustc_metadata/rmeta/encoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ impl EncodeContext<'tcx> {
12681268
record!(self.per_def.kind[def_id] <- match ty.kind {
12691269
ty::Generator(..) => {
12701270
let data = self.tcx.generator_kind(def_id).unwrap();
1271-
EntryKind::Generator(self.lazy(data))
1271+
EntryKind::Generator(data)
12721272
}
12731273

12741274
ty::Closure(..) => EntryKind::Closure,

src/librustc_metadata/rmeta/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ enum EntryKind {
302302
Mod(Lazy<ModData>),
303303
MacroDef(Lazy<MacroDef>),
304304
Closure,
305-
Generator(Lazy<hir::GeneratorKind>),
305+
Generator(hir::GeneratorKind),
306306
Trait(Lazy<TraitData>),
307307
Impl(Lazy<ImplData>),
308308
Method(Lazy<MethodData>),

0 commit comments

Comments
 (0)