diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-03-31 19:21:14 -0600 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-04-03 11:43:14 -0600 |
| commit | 0ce5cf06973aa75bc1729e5bc1aa0a611537014c (patch) | |
| tree | ed503f822750a7426ea8151b68896985f46b467d /src/bootstrap/lib.rs | |
| parent | 545b92f46d98bf5c812343315025bfb92f37837f (diff) | |
| download | rust-0ce5cf06973aa75bc1729e5bc1aa0a611537014c.tar.gz rust-0ce5cf06973aa75bc1729e5bc1aa0a611537014c.zip | |
Fix a few accidental expectations
Diffstat (limited to 'src/bootstrap/lib.rs')
| -rw-r--r-- | src/bootstrap/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index c677d78d07b..c76b6180749 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -1178,6 +1178,11 @@ impl Build { }; iter.map(|e| t!(e)).collect::<Vec<_>>().into_iter() } + + fn remove(&self, f: &Path) { + if self.config.dry_run { return; } + fs::remove_file(f).unwrap_or_else(|_| panic!("failed to remove {:?}", f)); + } } #[cfg(unix)] |
