From 16857317a6fb5bc966a0840c21d8000c2cd052ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Wed, 13 Jan 2021 00:00:00 +0000 Subject: [PATCH] Skip promoted mir of struct constructors & enum constructors --- compiler/rustc_metadata/src/rmeta/encoder.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs index f71233c9472..6bf3336bd2f 100644 --- a/compiler/rustc_metadata/src/rmeta/encoder.rs +++ b/compiler/rustc_metadata/src/rmeta/encoder.rs @@ -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) {