Fix a few accidental expectations

This commit is contained in:
Mark Simulacrum
2018-03-31 19:21:14 -06:00
parent 545b92f46d
commit 0ce5cf0697
4 changed files with 32 additions and 12 deletions

View File

@@ -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)]