Skip to content

Commit 48d34c9

Browse files
committed
bootstrap: update comment for STAGE0_MISSING_TARGETS
... and use `#[rustfmt::skip]` instead of a hacky comment to inhibit the array from becoming collapsed.
1 parent a6525d5 commit 48d34c9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/bootstrap/src/core/sanity.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ pub struct Finder {
2828
path: OsString,
2929
}
3030

31-
// During sanity checks, we search for target names to determine if they exist in the compiler's built-in
32-
// target list (`rustc --print target-list`). While a target name may be present in the stage2 compiler,
33-
// it might not yet be included in stage0. In such cases, we handle the targets missing from stage0 in this list.
31+
// During sanity checks, we search for target tuples to determine if they exist in the compiler's
32+
// built-in target list (`rustc --print target-list`). While a target tuple may be present in the
33+
// in-tree compiler, the stage 0 compiler might not yet know about it (assuming not operating with
34+
// local-rebuild). In such cases, we handle the targets missing from stage 0 in this list.
3435
//
35-
// Targets can be removed from this list once they are present in the stage0 compiler (usually by updating the beta compiler of the bootstrap).
36+
// Targets can be removed from this list once they are present in the stage 0 compiler during a
37+
// bootstrap compiler bump (typically updating the bootstrap compiler to a newer beta compiler that
38+
// *does* already know about the targets).
39+
#[rustfmt::skip]
3640
const STAGE0_MISSING_TARGETS: &[&str] = &[
37-
// just a dummy comment so the list doesn't get onelined
3841
"riscv64im-unknown-none-elf",
3942
];
4043

0 commit comments

Comments
 (0)