Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0fe74c8

Browse files
authored
Unrolled build for rust-lang#135094
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 ead4a8f + 2cefd30 commit 0fe74c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/utils/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ fn lld_flag_no_threads(builder: &Builder<'_>, lld_mode: LldMode, is_windows: boo
440440
}
441441

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

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

0 commit comments

Comments
 (0)