Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Skip promoted mir of struct constructors & enum constructors
  • Loading branch information
tmiasko committed Jan 12, 2021
commit 16857317a6fb5bc966a0840c21d8000c2cd052ca
2 changes: 0 additions & 2 deletions compiler/rustc_metadata/src/rmeta/encoder.rs
Original file line number Diff line number Diff line change
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