From 807e5b8022923ce4c569c65bf79796cfa3939d6a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 20 Aug 2023 08:43:32 +0200 Subject: avoid return in tail position Co-authored-by: fee1-dead --- compiler/rustc_const_eval/src/const_eval/machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_const_eval/src') diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs index cf010864018..f16aea6f34b 100644 --- a/compiler/rustc_const_eval/src/const_eval/machine.rs +++ b/compiler/rustc_const_eval/src/const_eval/machine.rs @@ -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( -- cgit 1.4.1-3-g733a5