diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-10-04 17:50:03 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-10-04 17:55:15 +0000 |
| commit | e63d19c4ddae8f7ce51e1953bfc4a61235f528f7 (patch) | |
| tree | 69bfc5da20e1ec541c5316ab991af7b4fa922bbf /compiler/rustc_const_eval/src | |
| parent | 65519f5fc0bcd8a47e547226bbc7498a2b9a59fb (diff) | |
| download | rust-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.rs | 2 |
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; } |
