File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 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>(
806806 StatementKind :: StorageLive ( _)
807807 | StatementKind :: StorageDead ( _)
808808 | StatementKind :: Deinit ( _)
809+ | StatementKind :: ConstEvalCounter
809810 | StatementKind :: Nop
810811 | StatementKind :: FakeRead ( ..)
811812 | 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>(
530530 | StatementKind :: Retag ( _, _)
531531 | StatementKind :: AscribeUserType ( _, _)
532532 | StatementKind :: Coverage ( _)
533+ | StatementKind :: ConstEvalCounter
533534 | StatementKind :: Nop => { }
534535 }
535536 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments