avoid return in tail position

Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
This commit is contained in:
Ralf Jung 2023-08-20 08:43:32 +02:00
parent ac3bca24b7
commit 807e5b8022

View File

@ -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(