about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2019-11-23 02:08:10 +0000
committerOliver Middleton <olliemail27@gmail.com>2019-11-23 02:08:10 +0000
commit05ef20f92203b273d5019cce5ed7907a87420c6a (patch)
tree62609c6d3145b3f77b44ccd1a8c61944ea80831c /src/librustc_data_structures
parentf1b882b55805c342e46ee4ca3beeef1d1fa2044b (diff)
downloadrust-05ef20f92203b273d5019cce5ed7907a87420c6a.tar.gz
rust-05ef20f92203b273d5019cce5ed7907a87420c6a.zip
rustdoc: Don't panic when failing to write .lock file
It can be treated like any other unexpected IO error.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/flock.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/librustc_data_structures/flock.rs b/src/librustc_data_structures/flock.rs
index b0bd137f2cc..01f25a054f0 100644
--- a/src/librustc_data_structures/flock.rs
+++ b/src/librustc_data_structures/flock.rs
@@ -298,15 +298,3 @@ cfg_if! {
         }
     }
 }
-
-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);
-        })
-    }
-}