Skip to content

Commit

Permalink
bye BorrowckMode
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Jun 8, 2022
1 parent 64a7aa7 commit 6ee7e35
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions compiler/rustc_session/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 6ee7e35

Please sign in to comment.