1
Fork 0

Rollup merge of #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.
This commit is contained in:
Jubilee 2025-01-04 07:57:36 -08:00 committed by GitHub
commit e2983d843c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -438,7 +438,7 @@ fn lld_flag_no_threads(builder: &Builder<'_>, lld_mode: LldMode, is_windows: boo
}
pub fn dir_is_empty(dir: &Path) -> bool {
t!(std::fs::read_dir(dir)).next().is_none()
t!(std::fs::read_dir(dir), dir).next().is_none()
}
/// Extract the beta revision from the full version string.