1
Fork 0

Remove BorrowckMode::Compare

This commit is contained in:
Christopher Vittal 2019-03-25 04:09:52 -04:00
parent d15fc17381
commit 7da9eeeaa7
2 changed files with 2 additions and 7 deletions

View file

@ -97,9 +97,8 @@ impl SuppressRegionErrors {
// If we're on Migrate mode, report AST region errors
BorrowckMode::Migrate => SuppressRegionErrors { suppressed: false },
// If we're on MIR or Compare mode, don't report AST region errors as they should
// be reported by NLL
BorrowckMode::Compare | BorrowckMode::Mir => SuppressRegionErrors { suppressed: true },
// If we're on MIR don't report AST region errors as they should be reported by NLL
BorrowckMode::Mir => SuppressRegionErrors { suppressed: true },
}
}
}