]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/util.rs
Auto merge of #104902 - matthiaskrgr:rollup-oo27a4u, r=matthiaskrgr
[rust.git] / src / bootstrap / util.rs
index 73cea126e395c03589358e9e70c9a54f4b5a4ebb..58220783228b2883fae9ba5ca03d646048e41964 100644 (file)
@@ -111,7 +111,7 @@ fn link_lib_path() -> Vec<PathBuf> {
 
 /// Returns an RAII structure that prints out how long it took to drop.
 pub fn timeit(builder: &Builder<'_>) -> TimeIt {
-    TimeIt(builder.config.dry_run, Instant::now())
+    TimeIt(builder.config.dry_run(), Instant::now())
 }
 
 impl Drop for TimeIt {
@@ -134,7 +134,7 @@ pub(crate) fn program_out_of_date(stamp: &Path, key: &str) -> bool {
 /// Symlinks two directories, using junctions on Windows and normal symlinks on
 /// Unix.
 pub fn symlink_dir(config: &Config, src: &Path, dest: &Path) -> io::Result<()> {
-    if config.dry_run {
+    if config.dry_run() {
         return Ok(());
     }
     let _ = fs::remove_dir(dest);