diff options
| author | Jubilee <workingjubilee@gmail.com> | 2025-01-04 07:57:36 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-04 07:57:36 -0800 |
| commit | e2983d843ce312f116685d231f3f4ef6d9f5641f (patch) | |
| tree | a8d413620a6891b163a04abfea2ca0d37f38f1a0 | |
| parent | 1318a39c284a4e994c161d80f8c92693b3c9579f (diff) | |
| parent | 2cefd30eff1540e5f2b4eaeadfe8b05b11e7515d (diff) | |
| download | rust-e2983d843ce312f116685d231f3f4ef6d9f5641f.tar.gz rust-e2983d843ce312f116685d231f3f4ef6d9f5641f.zip | |
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.
| -rw-r--r-- | src/bootstrap/src/utils/helpers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs index 2ff99e7e499..5b808004c3b 100644 --- a/src/bootstrap/src/utils/helpers.rs +++ b/src/bootstrap/src/utils/helpers.rs @@ -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. |
