We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44c07ff commit 9c88f10Copy full SHA for 9c88f10
src/bootstrap/src/core/build_steps/test.rs
@@ -2783,10 +2783,28 @@ impl Step for Crate {
2783
_ => panic!("can only test libraries"),
2784
};
2785
2786
+ let crates = self
2787
+ .crates
2788
+ .iter()
2789
+ .cloned()
2790
+ .map(|crate_| {
2791
+ // The core and alloc crates can't directly be tested. We could
2792
+ // silently ignore them, but replacing them with their test crate
2793
+ // is less confusing for users.
2794
+ if crate_ == "core" {
2795
+ "coretests".to_owned()
2796
+ } else if crate_ == "alloc" {
2797
+ "alloctests".to_owned()
2798
+ } else {
2799
+ crate_
2800
+ }
2801
+ })
2802
+ .collect::<Vec<_>>();
2803
+
2804
run_cargo_test(
2805
cargo,
2806
&[],
- &self.crates,
2807
+ &crates,
2808
&self.crates[0],
2809
&*crate_description(&self.crates),
2810
target,
0 commit comments