Skip to content

Commit

Permalink
Skip promoted mir of struct constructors & enum constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Jan 12, 2021
1 parent a6dd7b5 commit 1685731
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_metadata/src/rmeta/encoder.rs
Expand Up @@ -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());
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1685731

Please sign in to comment.