Skip to content

Commit 5880a31

Browse files
committed
Add crates metadata to doc::Std step
1 parent 8d0c55c commit 5880a31

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

src/bootstrap/src/core/build_steps/doc.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,11 @@ impl Step for Std {
665665
}
666666

667667
fn metadata(&self) -> Option<StepMetadata> {
668-
Some(StepMetadata::doc("std", self.target).stage(self.stage))
668+
Some(
669+
StepMetadata::doc("std", self.target)
670+
.stage(self.stage)
671+
.with_metadata(format!("crates=[{}]", self.crates.join(","))),
672+
)
669673
}
670674
}
671675

src/bootstrap/src/core/builder/tests.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ mod snapshot {
942942
[build] llvm <host>
943943
[build] rustc 0 <host> -> rustc 1 <host>
944944
[build] rustdoc 0 <host>
945-
[doc] std 1 <host>
945+
[doc] std 1 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
946946
");
947947
}
948948

@@ -991,12 +991,12 @@ mod snapshot {
991991
[build] rustc 1 <host> -> std 1 <host>
992992
[build] rustc 1 <host> -> rustc 2 <host>
993993
[build] rustdoc 1 <host>
994-
[doc] std 2 <host>
994+
[doc] std 2 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
995995
[build] rustc 2 <host> -> std 2 <host>
996996
[build] rustc 0 <host> -> LintDocs 1 <host>
997997
[build] rustc 0 <host> -> RustInstaller 1 <host>
998998
[dist] docs <host>
999-
[doc] std 2 <host>
999+
[doc] std 2 <host> crates=[]
10001000
[dist] mingw <host>
10011001
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
10021002
[dist] rustc <host>
@@ -1023,12 +1023,12 @@ mod snapshot {
10231023
[build] rustc 1 <host> -> rustc 2 <host>
10241024
[build] rustc 1 <host> -> WasmComponentLd 2 <host>
10251025
[build] rustdoc 1 <host>
1026-
[doc] std 2 <host>
1026+
[doc] std 2 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
10271027
[build] rustc 2 <host> -> std 2 <host>
10281028
[build] rustc 0 <host> -> LintDocs 1 <host>
10291029
[build] rustc 0 <host> -> RustInstaller 1 <host>
10301030
[dist] docs <host>
1031-
[doc] std 2 <host>
1031+
[doc] std 2 <host> crates=[]
10321032
[dist] mingw <host>
10331033
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
10341034
[dist] rustc <host>
@@ -1059,15 +1059,15 @@ mod snapshot {
10591059
[build] rustc 1 <host> -> std 1 <host>
10601060
[build] rustc 1 <host> -> rustc 2 <host>
10611061
[build] rustdoc 1 <host>
1062-
[doc] std 2 <host>
1063-
[doc] std 2 <target1>
1062+
[doc] std 2 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
1063+
[doc] std 2 <target1> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
10641064
[build] rustc 2 <host> -> std 2 <host>
10651065
[build] rustc 0 <host> -> LintDocs 1 <host>
10661066
[build] rustc 0 <host> -> RustInstaller 1 <host>
10671067
[dist] docs <host>
10681068
[dist] docs <target1>
1069-
[doc] std 2 <host>
1070-
[doc] std 2 <target1>
1069+
[doc] std 2 <host> crates=[]
1070+
[doc] std 2 <target1> crates=[]
10711071
[dist] mingw <host>
10721072
[dist] mingw <target1>
10731073
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
@@ -1096,14 +1096,14 @@ mod snapshot {
10961096
[build] rustc 1 <host> -> std 1 <host>
10971097
[build] rustc 1 <host> -> rustc 2 <host>
10981098
[build] rustdoc 1 <host>
1099-
[doc] std 2 <host>
1099+
[doc] std 2 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
11001100
[build] rustc 2 <host> -> std 2 <host>
11011101
[build] rustc 0 <host> -> LintDocs 1 <host>
11021102
[build] rustc 1 <host> -> std 1 <target1>
11031103
[build] rustc 2 <host> -> std 2 <target1>
11041104
[build] rustc 0 <host> -> RustInstaller 1 <host>
11051105
[dist] docs <host>
1106-
[doc] std 2 <host>
1106+
[doc] std 2 <host> crates=[]
11071107
[dist] mingw <host>
11081108
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
11091109
[dist] rustc <host>
@@ -1133,17 +1133,17 @@ mod snapshot {
11331133
[build] rustc 1 <host> -> std 1 <host>
11341134
[build] rustc 1 <host> -> rustc 2 <host>
11351135
[build] rustdoc 1 <host>
1136-
[doc] std 2 <host>
1137-
[doc] std 2 <target1>
1136+
[doc] std 2 <host> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
1137+
[doc] std 2 <target1> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
11381138
[build] rustc 2 <host> -> std 2 <host>
11391139
[build] rustc 0 <host> -> LintDocs 1 <host>
11401140
[build] rustc 1 <host> -> std 1 <target1>
11411141
[build] rustc 2 <host> -> std 2 <target1>
11421142
[build] rustc 0 <host> -> RustInstaller 1 <host>
11431143
[dist] docs <host>
11441144
[dist] docs <target1>
1145-
[doc] std 2 <host>
1146-
[doc] std 2 <target1>
1145+
[doc] std 2 <host> crates=[]
1146+
[doc] std 2 <target1> crates=[]
11471147
[dist] mingw <host>
11481148
[dist] mingw <target1>
11491149
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
@@ -1175,11 +1175,11 @@ mod snapshot {
11751175
[build] rustc 1 <host> -> std 1 <host>
11761176
[build] rustc 1 <host> -> rustc 2 <host>
11771177
[build] rustdoc 1 <host>
1178-
[doc] std 2 <target1>
1178+
[doc] std 2 <target1> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
11791179
[build] rustc 2 <host> -> std 2 <host>
11801180
[build] rustc 0 <host> -> RustInstaller 1 <host>
11811181
[dist] docs <target1>
1182-
[doc] std 2 <target1>
1182+
[doc] std 2 <target1> crates=[]
11831183
[dist] mingw <target1>
11841184
[build] rustc 2 <host> -> std 2 <target1>
11851185
[dist] rustc 2 <host> -> std 2 <target1>
@@ -1207,14 +1207,14 @@ mod snapshot {
12071207
[build] rustc 1 <host> -> rustc 2 <host>
12081208
[build] rustc 1 <host> -> WasmComponentLd 2 <host>
12091209
[build] rustdoc 1 <host>
1210-
[doc] std 2 <target1>
1210+
[doc] std 2 <target1> crates=[alloc,compiler_builtins,core,panic_abort,panic_unwind,proc_macro,std,sysroot,test,unwind]
12111211
[build] rustc 2 <host> -> std 2 <host>
12121212
[build] rustc 1 <host> -> std 1 <target1>
12131213
[build] rustc 2 <host> -> std 2 <target1>
12141214
[build] rustc 0 <host> -> LintDocs 1 <host>
12151215
[build] rustc 0 <host> -> RustInstaller 1 <host>
12161216
[dist] docs <target1>
1217-
[doc] std 2 <target1>
1217+
[doc] std 2 <target1> crates=[]
12181218
[dist] mingw <target1>
12191219
[build] llvm <target1>
12201220
[build] rustc 1 <host> -> rustc 2 <target1>

0 commit comments

Comments
 (0)