about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-10-04 17:50:03 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-04 17:55:15 +0000
commite63d19c4ddae8f7ce51e1953bfc4a61235f528f7 (patch)
tree69bfc5da20e1ec541c5316ab991af7b4fa922bbf /compiler/rustc_const_eval/src
parent65519f5fc0bcd8a47e547226bbc7498a2b9a59fb (diff)
downloadrust-e63d19c4ddae8f7ce51e1953bfc4a61235f528f7.tar.gz
rust-e63d19c4ddae8f7ce51e1953bfc4a61235f528f7.zip
Remove mir::LocalDecl::internal.
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/check.rs2
1 files changed, 1 insertions, 1 deletions
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;
                 }