Sync from rust 044a28a4091f2e1a5883f7fa990223f8b200a2cd
This commit is contained in:
commit
6dfa3c9513
@ -806,6 +806,7 @@ fn codegen_stmt<'tcx>(
|
|||||||
StatementKind::StorageLive(_)
|
StatementKind::StorageLive(_)
|
||||||
| StatementKind::StorageDead(_)
|
| StatementKind::StorageDead(_)
|
||||||
| StatementKind::Deinit(_)
|
| StatementKind::Deinit(_)
|
||||||
|
| StatementKind::ConstEvalCounter
|
||||||
| StatementKind::Nop
|
| StatementKind::Nop
|
||||||
| StatementKind::FakeRead(..)
|
| StatementKind::FakeRead(..)
|
||||||
| StatementKind::Retag { .. }
|
| StatementKind::Retag { .. }
|
||||||
|
@ -530,6 +530,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>(
|
|||||||
| StatementKind::Retag(_, _)
|
| StatementKind::Retag(_, _)
|
||||||
| StatementKind::AscribeUserType(_, _)
|
| StatementKind::AscribeUserType(_, _)
|
||||||
| StatementKind::Coverage(_)
|
| StatementKind::Coverage(_)
|
||||||
|
| StatementKind::ConstEvalCounter
|
||||||
| StatementKind::Nop => {}
|
| StatementKind::Nop => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ pub(crate) fn maybe_create_entry_wrapper(
|
|||||||
is_main_fn: bool,
|
is_main_fn: bool,
|
||||||
sigpipe: u8,
|
sigpipe: u8,
|
||||||
) {
|
) {
|
||||||
let main_ret_ty = tcx.fn_sig(rust_main_def_id).output();
|
let main_ret_ty = tcx.fn_sig(rust_main_def_id).no_bound_vars().unwrap().output();
|
||||||
// Given that `main()` has no arguments,
|
// Given that `main()` has no arguments,
|
||||||
// then its return type cannot have
|
// then its return type cannot have
|
||||||
// late-bound regions, since late-bound
|
// late-bound regions, since late-bound
|
||||||
|
Loading…
x
Reference in New Issue
Block a user