1
Fork 0

cleanup dead ast-borrowck / migrate-mode code.

This commit is contained in:
Mazdak Farrokhzad 2019-09-26 01:22:16 +02:00
parent defd5088d6
commit dfd365f3e4
11 changed files with 20 additions and 106 deletions

View file

@ -93,6 +93,8 @@ impl SuppressRegionErrors {
/// checks, so we should ignore errors if NLL is (unconditionally)
/// enabled.
pub fn when_nll_is_enabled(tcx: TyCtxt<'_>) -> Self {
// FIXME(Centril): Once we actually remove `::Migrate` also make
// this always `true` and then proceed to eliminate the dead code.
match tcx.borrowck_mode() {
// If we're on Migrate mode, report AST region errors
BorrowckMode::Migrate => SuppressRegionErrors { suppressed: false },