File tree 4 files changed +21
-4
lines changed
4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,11 @@ impl Step for Rls {
254
254
255
255
builder. add_rustc_lib_path ( compiler, & mut cargo) ;
256
256
257
- try_run ( build, & mut cargo) ;
257
+ try_run_expecting (
258
+ build,
259
+ & mut cargo,
260
+ builder. build . config . toolstate . rls . passes ( ToolState :: Testing ) ,
261
+ ) ;
258
262
}
259
263
}
260
264
@@ -295,7 +299,11 @@ impl Step for Rustfmt {
295
299
296
300
builder. add_rustc_lib_path ( compiler, & mut cargo) ;
297
301
298
- try_run ( build, & mut cargo) ;
302
+ try_run_expecting (
303
+ build,
304
+ & mut cargo,
305
+ builder. build . config . toolstate . rustfmt . passes ( ToolState :: Testing ) ,
306
+ ) ;
299
307
}
300
308
}
301
309
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ impl Step for Rls {
449
449
tool : "rls" ,
450
450
mode : Mode :: Librustc ,
451
451
path : "src/tools/rls" ,
452
- expectation : BuildExpectation :: None ,
452
+ expectation : builder . build . config . toolstate . rls . passes ( ToolState :: Compiling ) ,
453
453
} )
454
454
}
455
455
}
@@ -484,7 +484,7 @@ impl Step for Rustfmt {
484
484
tool : "rustfmt" ,
485
485
mode : Mode :: Librustc ,
486
486
path : "src/tools/rustfmt" ,
487
- expectation : BuildExpectation :: None ,
487
+ expectation : builder . build . config . toolstate . rustfmt . passes ( ToolState :: Compiling ) ,
488
488
} )
489
489
}
490
490
}
Original file line number Diff line number Diff line change @@ -46,4 +46,6 @@ impl Default for ToolState {
46
46
pub struct ToolStates {
47
47
pub miri : ToolState ,
48
48
pub clippy : ToolState ,
49
+ pub rls : ToolState ,
50
+ pub rustfmt : ToolState ,
49
51
}
Original file line number Diff line number Diff line change @@ -27,3 +27,10 @@ miri = "Testing"
27
27
28
28
# ping @Manishearth @llogiq @mcarton @oli-obk
29
29
clippy = " Broken"
30
+
31
+ # ping @nrc
32
+ rls = " Testing"
33
+
34
+ # ping @nrc
35
+ rustfmt = " Testing"
36
+
You can’t perform that action at this time.
0 commit comments