]> git.lizzy.rs Git - rust.git/commitdiff
bye `BorrowckMode`
authorlcnr <rust@lcnr.de>
Wed, 8 Jun 2022 08:46:52 +0000 (10:46 +0200)
committerlcnr <rust@lcnr.de>
Wed, 8 Jun 2022 08:46:52 +0000 (10:46 +0200)
compiler/rustc_session/src/config.rs

index 5190cd4493661b523c77d3f68e44dfdda4b07355..cabaf321f80c302194b3209d200de650a2be5bcb 100644 (file)
@@ -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),