bye BorrowckMode

This commit is contained in:
lcnr 2022-06-08 10:46:52 +02:00
parent 64a7aa7016
commit 6ee7e35287

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),