@@ -703,7 +703,7 @@ mod snapshot {
703
703
}
704
704
705
705
#[test]
706
- fn build_compiler_no_stage () {
706
+ fn build_compiler_no_explicit_stage () {
707
707
let ctx = TestCtx::new();
708
708
insta::assert_snapshot!(
709
709
ctx.config("build")
@@ -712,6 +712,14 @@ mod snapshot {
712
712
[build] llvm <host>
713
713
[build] rustc 0 <host> -> rustc 1 <host>
714
714
");
715
+
716
+ insta::assert_snapshot!(
717
+ ctx.config("build")
718
+ .path("rustc")
719
+ .render_steps(), @r"
720
+ [build] llvm <host>
721
+ [build] rustc 0 <host> -> rustc 1 <host>
722
+ ");
715
723
}
716
724
717
725
#[test]
@@ -750,7 +758,7 @@ mod snapshot {
750
758
}
751
759
752
760
#[test]
753
- fn build_library_no_stage () {
761
+ fn build_library_no_explicit_stage () {
754
762
let ctx = TestCtx::new();
755
763
insta::assert_snapshot!(
756
764
ctx.config("build")
@@ -800,14 +808,15 @@ mod snapshot {
800
808
}
801
809
802
810
#[test]
803
- fn build_miri_no_stage () {
811
+ fn build_miri_no_explicit_stage () {
804
812
let ctx = TestCtx::new();
805
813
insta::assert_snapshot!(
806
814
ctx.config("build")
807
815
.path("miri")
808
816
.render_steps(), @r"
809
817
[build] llvm <host>
810
818
[build] rustc 0 <host> -> rustc 1 <host>
819
+ [build] rustc 0 <host> -> miri 1 <host>
811
820
");
812
821
}
813
822
@@ -828,6 +837,7 @@ mod snapshot {
828
837
.render_steps(), @r"
829
838
[build] llvm <host>
830
839
[build] rustc 0 <host> -> rustc 1 <host>
840
+ [build] rustc 0 <host> -> miri 1 <host>
831
841
");
832
842
}
833
843
@@ -843,11 +853,12 @@ mod snapshot {
843
853
[build] rustc 0 <host> -> rustc 1 <host>
844
854
[build] rustc 1 <host> -> std 1 <host>
845
855
[build] rustc 1 <host> -> rustc 2 <host>
856
+ [build] rustc 1 <host> -> miri 2 <host>
846
857
");
847
858
}
848
859
849
860
#[test]
850
- fn build_bootstrap_tool_no_stage () {
861
+ fn build_bootstrap_tool_no_explicit_stage () {
851
862
let ctx = TestCtx::new();
852
863
insta::assert_snapshot!(
853
864
ctx.config("build")
@@ -901,6 +912,30 @@ mod snapshot {
901
912
[build] rustc 1 <host> -> std 1 <host>
902
913
");
903
914
915
+ insta::assert_snapshot!(ctx.config("build")
916
+ .paths(&["std"])
917
+ .render_steps(), @r"
918
+ [build] llvm <host>
919
+ [build] rustc 0 <host> -> rustc 1 <host>
920
+ [build] rustc 1 <host> -> std 1 <host>
921
+ ");
922
+
923
+ insta::assert_snapshot!(ctx.config("build")
924
+ .paths(&["core"])
925
+ .render_steps(), @r"
926
+ [build] llvm <host>
927
+ [build] rustc 0 <host> -> rustc 1 <host>
928
+ [build] rustc 1 <host> -> std 1 <host>
929
+ ");
930
+
931
+ insta::assert_snapshot!(ctx.config("build")
932
+ .paths(&["alloc"])
933
+ .render_steps(), @r"
934
+ [build] llvm <host>
935
+ [build] rustc 0 <host> -> rustc 1 <host>
936
+ [build] rustc 1 <host> -> std 1 <host>
937
+ ");
938
+
904
939
insta::assert_snapshot!(ctx.config("doc")
905
940
.paths(&["library", "core"])
906
941
.render_steps(), @r"
@@ -943,6 +978,8 @@ mod snapshot {
943
978
#[test]
944
979
fn dist_baseline() {
945
980
let ctx = TestCtx::new();
981
+ // Note that stdlib is uplifted, that is why `[dist] rustc 1 <host> -> std <host>` is in
982
+ // the output.
946
983
insta::assert_snapshot!(
947
984
ctx
948
985
.config("dist")
@@ -997,6 +1034,12 @@ mod snapshot {
997
1034
[dist] rustc <host>
998
1035
[dist] rustc 1 <host> -> std <host>
999
1036
[dist] src <>
1037
+ [build] rustc 0 <host> -> rustfmt 1 <host>
1038
+ [build] rustc 0 <host> -> cargo-fmt 1 <host>
1039
+ [build] rustc 0 <host> -> clippy-driver 1 <host>
1040
+ [build] rustc 0 <host> -> cargo-clippy 1 <host>
1041
+ [build] rustc 0 <host> -> miri 1 <host>
1042
+ [build] rustc 0 <host> -> cargo-miri 1 <host>
1000
1043
");
1001
1044
}
1002
1045
@@ -1181,6 +1224,12 @@ mod snapshot {
1181
1224
[dist] rustc <target1>
1182
1225
[dist] rustc 1 <host> -> std <target1>
1183
1226
[dist] src <>
1227
+ [build] rustc 0 <host> -> rustfmt 1 <target1>
1228
+ [build] rustc 0 <host> -> cargo-fmt 1 <target1>
1229
+ [build] rustc 0 <host> -> clippy-driver 1 <target1>
1230
+ [build] rustc 0 <host> -> cargo-clippy 1 <target1>
1231
+ [build] rustc 0 <host> -> miri 1 <target1>
1232
+ [build] rustc 0 <host> -> cargo-miri 1 <target1>
1184
1233
");
1185
1234
}
1186
1235
0 commit comments