Rollup merge of #97865 - lcnr:bb-BorrowckMode, r=Dylan-DPC

remove `BorrowckMode`

dead code after #95565
This commit is contained in:
Dylan DPC 2022-06-08 13:43:21 +02:00 committed by GitHub
commit 5d1a3669ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -547,23 +547,6 @@ pub enum PrintRequest {
LinkArgs,
}
#[derive(Copy, Clone)]
pub enum BorrowckMode {
Mir,
Migrate,
}
impl BorrowckMode {
/// Returns whether we should run the MIR-based borrow check, but also fall back
/// on the AST borrow check if the MIR-based one errors.
pub fn migrate(self) -> bool {
match self {
BorrowckMode::Mir => false,
BorrowckMode::Migrate => true,
}
}
}
pub enum Input {
/// Load source code from a file.
File(PathBuf),