Skip to content
Merged
Changes from all commits
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
2 changes: 2 additions & 0 deletions compiler/rustc_mir_transform/src/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,8 @@ pub(super) fn build_adt_ctor(tcx: TyCtxt<'_>, ctor_id: DefId) -> Body<'_> {
// so this would otherwise not get filled).
body.set_mentioned_items(Vec::new());

// We don't pass any passes here, we just force a phase change to `Optimized`.
// Otherwise this bit of MIR will trigger assertions trying to detect MIR with an invalid phase.
pm::run_passes_no_validate(
tcx,
&mut body,
Expand Down
Loading