Skip to content

Commit ab943b0

Browse files
committed
Add step metadata to RustAnalyzerProcMacroSrv
1 parent 3851613 commit ab943b0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,14 @@ impl Step for RustAnalyzerProcMacroSrv {
11791179

11801180
tool_result
11811181
}
1182+
1183+
fn metadata(&self) -> Option<StepMetadata> {
1184+
// FIXME: fix ToolRust staging logic
1185+
Some(
1186+
StepMetadata::build("rust-analyzer-proc-macro-srv", self.target)
1187+
.built_by(self.compiler.with_stage(self.compiler.stage - 1)),
1188+
)
1189+
}
11821190
}
11831191

11841192
#[derive(Debug, Clone, Hash, PartialEq, Eq)]

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,7 @@ mod snapshot {
10961096
[dist] docs <host>
10971097
[doc] std 2 <host> crates=[]
10981098
[dist] mingw <host>
1099+
[build] rustc 0 <host> -> rust-analyzer-proc-macro-srv 1 <host>
10991100
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
11001101
[dist] rustc <host>
11011102
[dist] rustc 1 <host> -> std 1 <host>
@@ -1288,6 +1289,7 @@ mod snapshot {
12881289
[build] rustc 1 <host> -> rustc 2 <target1>
12891290
[build] rustc 1 <host> -> WasmComponentLd 2 <target1>
12901291
[build] rustdoc 1 <target1>
1292+
[build] rustc 0 <host> -> rust-analyzer-proc-macro-srv 1 <target1>
12911293
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
12921294
[dist] rustc <target1>
12931295
[dist] rustc 1 <host> -> std 1 <target1>

0 commit comments

Comments
 (0)