Skip to content

Commit 5d1a366

Browse files
authored
Rollup merge of rust-lang#97865 - lcnr:bb-BorrowckMode, r=Dylan-DPC
remove `BorrowckMode` dead code after rust-lang#95565
2 parents 770583c + 6ee7e35 commit 5d1a366

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

compiler/rustc_session/src/config.rs

-17
Original file line numberDiff line numberDiff line change
@@ -547,23 +547,6 @@ pub enum PrintRequest {
547547
LinkArgs,
548548
}
549549

550-
#[derive(Copy, Clone)]
551-
pub enum BorrowckMode {
552-
Mir,
553-
Migrate,
554-
}
555-
556-
impl BorrowckMode {
557-
/// Returns whether we should run the MIR-based borrow check, but also fall back
558-
/// on the AST borrow check if the MIR-based one errors.
559-
pub fn migrate(self) -> bool {
560-
match self {
561-
BorrowckMode::Mir => false,
562-
BorrowckMode::Migrate => true,
563-
}
564-
}
565-
}
566-
567550
pub enum Input {
568551
/// Load source code from a file.
569552
File(PathBuf),

0 commit comments

Comments
 (0)