Skip to content

Commit 1685731

Browse files
committed
Skip promoted mir of struct constructors & enum constructors
1 parent a6dd7b5 commit 1685731

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/rustc_metadata/src/rmeta/encoder.rs

-2
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ impl EncodeContext<'a, 'tcx> {
796796
if opt_mir {
797797
self.encode_optimized_mir(def_id.expect_local());
798798
}
799-
self.encode_promoted_mir(def_id.expect_local());
800799
self.encode_mir_for_ctfe(def_id.expect_local());
801800
}
802801

@@ -908,7 +907,6 @@ impl EncodeContext<'a, 'tcx> {
908907
self.encode_optimized_mir(def_id.expect_local());
909908
}
910909
self.encode_mir_for_ctfe(def_id.expect_local());
911-
self.encode_promoted_mir(def_id.expect_local());
912910
}
913911

914912
fn encode_generics(&mut self, def_id: DefId) {

0 commit comments

Comments
 (0)