Skip to content

Commit 949aba1

Browse files
committed
resolve if-let bootstrap FIXME
Signed-off-by: onur-ozkan <[email protected]>
1 parent aa5832b commit 949aba1

File tree

1 file changed

+3
-3
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-3
lines changed

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,9 +1197,9 @@ fn run_tool_build_step(
11971197
artifact_kind: ToolArtifactKind::Binary,
11981198
});
11991199

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)
1200+
if let Some(add_bins_to_sysroot) = add_bins_to_sysroot
1201+
&& !add_bins_to_sysroot.is_empty()
1202+
&& target_compiler.stage > 0
12031203
{
12041204
let bindir = builder.sysroot(target_compiler).join("bin");
12051205
t!(fs::create_dir_all(&bindir));

0 commit comments

Comments
 (0)