File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -806,6 +806,7 @@ fn codegen_stmt<'tcx>(
806
806
StatementKind :: StorageLive ( _)
807
807
| StatementKind :: StorageDead ( _)
808
808
| StatementKind :: Deinit ( _)
809
+ | StatementKind :: ConstEvalCounter
809
810
| StatementKind :: Nop
810
811
| StatementKind :: FakeRead ( ..)
811
812
| StatementKind :: Retag { .. }
Original file line number Diff line number Diff line change @@ -530,6 +530,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>(
530
530
| StatementKind :: Retag ( _, _)
531
531
| StatementKind :: AscribeUserType ( _, _)
532
532
| StatementKind :: Coverage ( _)
533
+ | StatementKind :: ConstEvalCounter
533
534
| StatementKind :: Nop => { }
534
535
}
535
536
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub(crate) fn maybe_create_entry_wrapper(
46
46
is_main_fn : bool ,
47
47
sigpipe : u8 ,
48
48
) {
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 ( ) ;
50
50
// Given that `main()` has no arguments,
51
51
// then its return type cannot have
52
52
// late-bound regions, since late-bound
You can’t perform that action at this time.
0 commit comments