Skip to content

Commit 90f418f

Browse files
Rollup merge of #141852 - onur-ozkan:resolve-if-let-fixme, r=jieyouxu
resolve if-let-chain FIXME on bootstrap self-explanatory
2 parents f714b34 + a71c00a commit 90f418f

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)