From e63d19c4ddae8f7ce51e1953bfc4a61235f528f7 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Wed, 4 Oct 2023 17:50:03 +0000 Subject: Remove mir::LocalDecl::internal. --- compiler/rustc_const_eval/src/transform/check_consts/check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_const_eval/src') diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs index d380849fefe..c4d806c5161 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs @@ -237,7 +237,7 @@ impl<'mir, 'tcx> Checker<'mir, 'tcx> { if self.const_kind() == hir::ConstContext::ConstFn { for (idx, local) in body.local_decls.iter_enumerated() { // Handle the return place below. - if idx == RETURN_PLACE || local.internal { + if idx == RETURN_PLACE { continue; } -- cgit 1.4.1-3-g733a5