diff options
| author | onur-ozkan <work@onurozkan.dev> | 2025-06-01 14:37:49 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2025-06-01 14:43:02 +0300 |
| commit | a71c00a7134dd442aeea13291b7baa3d4e04f965 (patch) | |
| tree | c4419ba456034f8a2968b05fb01fb87ec26c016f /src | |
| parent | aa5832b142a2bfd322659d60f5d57e25d2a1bd5d (diff) | |
| download | rust-a71c00a7134dd442aeea13291b7baa3d4e04f965.tar.gz rust-a71c00a7134dd442aeea13291b7baa3d4e04f965.zip | |
resolve if-let-chain FIXME on bootstrap
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/tool.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs index 678aa9b01e4..76025d4020e 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs @@ -1197,9 +1197,9 @@ fn run_tool_build_step( artifact_kind: ToolArtifactKind::Binary, }); - // FIXME: This should just be an if-let-chain, but those are unstable. - if let Some(add_bins_to_sysroot) = - add_bins_to_sysroot.filter(|bins| !bins.is_empty() && target_compiler.stage > 0) + if let Some(add_bins_to_sysroot) = add_bins_to_sysroot + && !add_bins_to_sysroot.is_empty() + && target_compiler.stage > 0 { let bindir = builder.sysroot(target_compiler).join("bin"); t!(fs::create_dir_all(&bindir)); |
