Remove mir::LocalDecl::internal.
This commit is contained in:
parent
65519f5fc0
commit
e63d19c4dd
38 changed files with 106 additions and 57 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue