File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use crate::builder::ShouldRun;
5
5
use crate :: core:: builder;
6
6
use crate :: core:: builder:: crate_description;
7
7
use crate :: core:: builder:: Alias ;
8
+ use crate :: core:: builder:: Kind ;
8
9
use crate :: core:: builder:: RunConfig ;
9
10
use crate :: core:: builder:: Step ;
10
11
use crate :: Mode ;
@@ -233,7 +234,7 @@ impl Step for Rustc {
233
234
234
235
macro_rules! lint_any {
235
236
( $(
236
- $name: ident, $path: expr, $tool_name : expr
237
+ $name: ident, $path: expr, $readable_name : expr
237
238
$( , is_external_tool = $external: expr) *
238
239
$( , is_unstable_tool = $unstable: expr) *
239
240
$( , allow_features = $allow_features: expr) ?
@@ -276,6 +277,15 @@ macro_rules! lint_any {
276
277
& [ ] ,
277
278
) ;
278
279
280
+ let _guard = builder. msg_tool(
281
+ Kind :: Clippy ,
282
+ Mode :: ToolRustc ,
283
+ $readable_name,
284
+ compiler. stage,
285
+ & compiler. host,
286
+ & target,
287
+ ) ;
288
+
279
289
run_cargo(
280
290
builder,
281
291
cargo,
Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ struct ToolBuild {
36
36
37
37
impl Builder < ' _ > {
38
38
#[ track_caller]
39
- fn msg_tool (
39
+ pub ( crate ) fn msg_tool (
40
40
& self ,
41
+ kind : Kind ,
41
42
mode : Mode ,
42
43
tool : & str ,
43
44
build_stage : u32 ,
@@ -47,7 +48,7 @@ impl Builder<'_> {
47
48
match mode {
48
49
// depends on compiler stage, different to host compiler
49
50
Mode :: ToolRustc => self . msg_sysroot_tool (
50
- Kind :: Build ,
51
+ kind ,
51
52
build_stage,
52
53
format_args ! ( "tool {tool}" ) ,
53
54
* host,
@@ -100,6 +101,7 @@ impl Step for ToolBuild {
100
101
cargo. allow_features ( self . allow_features ) ;
101
102
}
102
103
let _guard = builder. msg_tool (
104
+ Kind :: Build ,
103
105
self . mode ,
104
106
self . tool ,
105
107
self . compiler . stage ,
@@ -485,6 +487,7 @@ impl Step for Rustdoc {
485
487
}
486
488
487
489
let _guard = builder. msg_tool (
490
+ Kind :: Build ,
488
491
Mode :: ToolRustc ,
489
492
"rustdoc" ,
490
493
build_compiler. stage ,
You can’t perform that action at this time.
0 commit comments