]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/flock.rs
Rollup merge of #66789 - eddyb:mir-source-scope-local-data, r=oli-obk
[rust.git] / src / librustc_data_structures / flock.rs
index b0bd137f2cc4a0d4c41714fc7a0164f3fa911489..01f25a054f0a7949635a74a703080f0528c7a287 100644 (file)
@@ -298,15 +298,3 @@ pub fn new(_p: &Path, _wait: bool, _create: bool, _exclusive: bool)
         }
     }
 }
-
-impl Lock {
-    pub fn panicking_new(p: &Path,
-                         wait: bool,
-                         create: bool,
-                         exclusive: bool)
-                         -> Lock {
-        Lock::new(p, wait, create, exclusive).unwrap_or_else(|err| {
-            panic!("could not lock `{}`: {}", p.display(), err);
-        })
-    }
-}