about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-06-08 10:46:52 +0200
committerlcnr <rust@lcnr.de>2022-06-08 10:46:52 +0200
commit6ee7e35287e106b1ee9d276111692ebfc050ca81 (patch)
tree4cbc8c50885f2f5a603825d1129256a4968d68a0
parent64a7aa7016de32f4d991c30bfa40d3911e18a213 (diff)
bye `BorrowckMode`
-rw-r--r--compiler/rustc_session/src/config.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
index 5190cd44936..cabaf321f80 100644
--- a/compiler/rustc_session/src/config.rs
+++ b/compiler/rustc_session/src/config.rs
@@ -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),