Skip to content

Commit 6dfa3c9

Browse files
committed
Sync from rust 044a28a4091f2e1a5883f7fa990223f8b200a2cd
2 parents 5ab690d + ba7bb62 commit 6dfa3c9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/base.rs

+1
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ fn codegen_stmt<'tcx>(
806806
StatementKind::StorageLive(_)
807807
| StatementKind::StorageDead(_)
808808
| StatementKind::Deinit(_)
809+
| StatementKind::ConstEvalCounter
809810
| StatementKind::Nop
810811
| StatementKind::FakeRead(..)
811812
| StatementKind::Retag { .. }

src/constant.rs

+1
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>(
530530
| StatementKind::Retag(_, _)
531531
| StatementKind::AscribeUserType(_, _)
532532
| StatementKind::Coverage(_)
533+
| StatementKind::ConstEvalCounter
533534
| StatementKind::Nop => {}
534535
}
535536
}

src/main_shim.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub(crate) fn maybe_create_entry_wrapper(
4646
is_main_fn: bool,
4747
sigpipe: u8,
4848
) {
49-
let main_ret_ty = tcx.fn_sig(rust_main_def_id).output();
49+
let main_ret_ty = tcx.fn_sig(rust_main_def_id).no_bound_vars().unwrap().output();
5050
// Given that `main()` has no arguments,
5151
// then its return type cannot have
5252
// late-bound regions, since late-bound

0 commit comments

Comments
 (0)