Skip promoted mir of struct constructors & enum constructors

This commit is contained in:
Tomasz Miąsko 2021-01-13 00:00:00 +00:00
parent a6dd7b5056
commit 16857317a6

View File

@ -796,7 +796,6 @@ impl EncodeContext<'a, 'tcx> {
if opt_mir {
self.encode_optimized_mir(def_id.expect_local());
}
self.encode_promoted_mir(def_id.expect_local());
self.encode_mir_for_ctfe(def_id.expect_local());
}
@ -908,7 +907,6 @@ impl EncodeContext<'a, 'tcx> {
self.encode_optimized_mir(def_id.expect_local());
}
self.encode_mir_for_ctfe(def_id.expect_local());
self.encode_promoted_mir(def_id.expect_local());
}
fn encode_generics(&mut self, def_id: DefId) {