1
+ #![ allow( unused) ]
2
+
1
3
use std:: any:: Any ;
2
4
use std:: cell:: { Cell , RefCell } ;
3
5
use std:: collections:: BTreeSet ;
@@ -326,120 +328,23 @@ pub enum Kind {
326
328
impl < ' a > Builder < ' a > {
327
329
fn get_step_descriptions ( kind : Kind ) -> Vec < StepDescription > {
328
330
macro_rules! describe {
329
- ( $( $rule: ty) ,+ $( , ) ?) => { {
330
- vec![ $( StepDescription :: from:: <$rule>( ) ) ,+ ]
331
+ ( $( $rule: ty) ,* $( , ) ?) => { {
332
+ vec![ $( StepDescription :: from:: <$rule>( ) ) ,* ]
331
333
} } ;
332
334
}
333
335
match kind {
334
336
Kind :: Build => describe ! (
335
- compile:: Std ,
336
- compile:: Test ,
337
- compile:: Rustc ,
338
- compile:: CodegenBackend ,
339
- compile:: StartupObjects ,
340
- tool:: BuildManifest ,
341
- tool:: Rustbook ,
342
- tool:: ErrorIndex ,
343
- tool:: UnstableBookGen ,
344
- tool:: Tidy ,
345
- tool:: Linkchecker ,
346
- tool:: CargoTest ,
347
- tool:: Compiletest ,
348
- tool:: RemoteTestServer ,
349
- tool:: RemoteTestClient ,
350
- tool:: RustInstaller ,
351
- tool:: Cargo ,
352
- tool:: Rls ,
353
- tool:: Rustdoc ,
354
- tool:: Clippy ,
355
- native:: Llvm ,
356
- tool:: Rustfmt ,
357
- tool:: Miri ,
358
- native:: Lld
359
337
) ,
360
338
Kind :: Check => describe ! (
361
- check:: Std ,
362
- check:: Test ,
363
- check:: Rustc ,
364
- check:: CodegenBackend ,
365
- check:: Rustdoc
366
339
) ,
367
340
Kind :: Test => describe ! (
368
341
test:: Tidy ,
369
- test:: Ui ,
370
- test:: RunPass ,
371
- test:: CompileFail ,
372
- test:: RunFail ,
373
- test:: RunPassValgrind ,
374
- test:: MirOpt ,
375
- test:: Codegen ,
376
- test:: CodegenUnits ,
377
- test:: Assembly ,
378
- test:: Incremental ,
379
- test:: Debuginfo ,
380
- test:: UiFullDeps ,
381
- test:: RunPassFullDeps ,
382
- test:: Rustdoc ,
383
- test:: Pretty ,
384
- test:: RunPassPretty ,
385
- test:: RunFailPretty ,
386
- test:: RunPassValgrindPretty ,
387
- test:: Crate ,
388
- test:: CrateLibrustc ,
389
- test:: CrateRustdoc ,
390
- test:: Linkcheck ,
391
- test:: Cargotest ,
392
- test:: Cargo ,
393
- test:: Rls ,
394
- test:: ErrorIndex ,
395
- test:: Distcheck ,
396
- test:: RunMakeFullDeps ,
397
- test:: Nomicon ,
398
- test:: Reference ,
399
- test:: RustdocBook ,
400
- test:: RustByExample ,
401
- test:: TheBook ,
402
- test:: UnstableBook ,
403
- test:: RustcBook ,
404
- test:: EmbeddedBook ,
405
- test:: EditionGuide ,
406
- test:: Rustfmt ,
407
- test:: Miri ,
408
- test:: Clippy ,
409
- test:: CompiletestTest ,
410
- test:: RustdocJSStd ,
411
- test:: RustdocJSNotStd ,
412
- test:: RustdocTheme ,
413
- test:: RustdocUi ,
414
- // Run bootstrap close to the end as it's unlikely to fail
415
- test:: Bootstrap ,
416
- // Run run-make last, since these won't pass without make on Windows
417
- test:: RunMake ,
418
342
) ,
419
- Kind :: Bench => describe ! ( test:: Crate , test:: CrateLibrustc ) ,
343
+ Kind :: Bench => describe ! (
344
+ ) ,
420
345
Kind :: Doc => describe ! (
421
- doc:: UnstableBook ,
422
- doc:: UnstableBookGen ,
423
- doc:: TheBook ,
424
- doc:: Standalone ,
425
- doc:: Std ,
426
- doc:: Test ,
427
- doc:: WhitelistedRustc ,
428
- doc:: Rustc ,
429
- doc:: Rustdoc ,
430
- doc:: ErrorIndex ,
431
- doc:: Nomicon ,
432
- doc:: Reference ,
433
- doc:: RustdocBook ,
434
- doc:: RustByExample ,
435
- doc:: RustcBook ,
436
- doc:: CargoBook ,
437
- doc:: EmbeddedBook ,
438
- doc:: EditionGuide ,
439
346
) ,
440
347
Kind :: Dist => describe ! (
441
- dist:: Docs ,
442
- dist:: RustcDocs ,
443
348
dist:: Mingw ,
444
349
dist:: Rustc ,
445
350
dist:: DebuggerScripts ,
@@ -458,16 +363,6 @@ impl<'a> Builder<'a> {
458
363
dist:: HashSign
459
364
) ,
460
365
Kind :: Install => describe ! (
461
- install:: Docs ,
462
- install:: Std ,
463
- install:: Cargo ,
464
- install:: Rls ,
465
- install:: Rustfmt ,
466
- install:: Clippy ,
467
- install:: Miri ,
468
- install:: Analysis ,
469
- install:: Src ,
470
- install:: Rustc
471
366
) ,
472
367
}
473
368
}
0 commit comments