We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f714b34 + a71c00a commit 90f418fCopy full SHA for 90f418f
src/bootstrap/src/core/build_steps/tool.rs
@@ -1197,9 +1197,9 @@ fn run_tool_build_step(
1197
artifact_kind: ToolArtifactKind::Binary,
1198
});
1199
1200
- // FIXME: This should just be an if-let-chain, but those are unstable.
1201
- if let Some(add_bins_to_sysroot) =
1202
- 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
1203
{
1204
let bindir = builder.sysroot(target_compiler).join("bin");
1205
t!(fs::create_dir_all(&bindir));
0 commit comments