Skip to content

Commit

Permalink
Rollup merge of rust-lang#97865 - lcnr:bb-BorrowckMode, r=Dylan-DPC
Browse files Browse the repository at this point in the history
remove `BorrowckMode`

dead code after rust-lang#95565
  • Loading branch information
Dylan-DPC authored Jun 8, 2022
2 parents 770583c + 6ee7e35 commit 5d1a366
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 5d1a366

Please sign in to comment.