1
Fork 0

Remove mir::LocalDecl::internal.

This commit is contained in:
Camille GILLOT 2023-10-04 17:50:03 +00:00
parent 65519f5fc0
commit e63d19c4dd
38 changed files with 106 additions and 57 deletions

View file

@ -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;
}