bye BorrowckMode
This commit is contained in:
parent
64a7aa7016
commit
6ee7e35287
1 changed files with 0 additions and 17 deletions
|
@ -547,23 +547,6 @@ pub enum PrintRequest {
|
||||||
LinkArgs,
|
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 {
|
pub enum Input {
|
||||||
/// Load source code from a file.
|
/// Load source code from a file.
|
||||||
File(PathBuf),
|
File(PathBuf),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue