add comment

This commit is contained in:
Joseph Bingham 2022-08-01 20:15:33 +01:00
parent 42c14ab3a8
commit c5d661a01c

View File

@ -140,6 +140,9 @@ fn run(self, builder: &Builder<'_>) {
cargo_subcommand(builder.kind),
);
// If we're not in stage 0, tests and examples will fail to compile
// from `core` definitions being loaded from two different `libcore`
// .rmeta and .rlib files.
if compiler.stage == 0 {
cargo.arg("--all-targets");
}