Skip to content

Commit 807e5b8

Browse files
RalfJungfee1-dead
andcommitted
avoid return in tail position
Co-authored-by: fee1-dead <[email protected]>
1 parent ac3bca2 commit 807e5b8

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_const_eval/src/const_eval

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/const_eval/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
468468
let msg = Symbol::intern(msg);
469469
let span = ecx.find_closest_untracked_caller_location();
470470
let (file, line, col) = ecx.location_triple_for_span(span);
471-
return Err(ConstEvalErrKind::Panic { msg, file, line, col }.into());
471+
Err(ConstEvalErrKind::Panic { msg, file, line, col }.into())
472472
}
473473

474474
fn call_intrinsic(

0 commit comments

Comments
 (0)