mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
avoid return in tail position
Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
This commit is contained in:
parent
ac3bca24b7
commit
807e5b8022
@ -468,7 +468,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
|
||||
let msg = Symbol::intern(msg);
|
||||
let span = ecx.find_closest_untracked_caller_location();
|
||||
let (file, line, col) = ecx.location_triple_for_span(span);
|
||||
return Err(ConstEvalErrKind::Panic { msg, file, line, col }.into());
|
||||
Err(ConstEvalErrKind::Panic { msg, file, line, col }.into())
|
||||
}
|
||||
|
||||
fn call_intrinsic(
|
||||
|
Loading…
Reference in New Issue
Block a user