Skip to content

Commit e2983d8

Browse files
Rollup merge of rust-lang#135094 - joshtriplett:bootstrap-show-nonexistent-dir, r=jieyouxu
bootstrap: If dir_is_empty fails, show the non-existent directory path This should help when trying to debug issues.
2 parents 1318a39 + 2cefd30 commit e2983d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/src/utils/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ fn lld_flag_no_threads(builder: &Builder<'_>, lld_mode: LldMode, is_windows: boo
438438
}
439439

440440
pub fn dir_is_empty(dir: &Path) -> bool {
441-
t!(std::fs::read_dir(dir)).next().is_none()
441+
t!(std::fs::read_dir(dir), dir).next().is_none()
442442
}
443443

444444
/// Extract the beta revision from the full version string.

0 commit comments

Comments
 (0)