We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
src/test/ui/...
1 parent 607e851 commit c2b920fCopy full SHA for c2b920f
src/bootstrap/builder.rs
@@ -489,13 +489,19 @@ impl<'a> Builder<'a> {
489
should_run = (desc.should_run)(should_run);
490
}
491
let mut help = String::from("Available paths:\n");
492
+ let mut add_path = |path: &Path| {
493
+ help.push_str(&format!(" ./x.py {} {}\n", subcommand, path.display()));
494
+ };
495
for pathset in should_run.paths {
- if let PathSet::Set(set) = pathset {
- set.iter().for_each(|path| {
- help.push_str(
496
- format!(" ./x.py {} {}\n", subcommand, path.display()).as_str(),
497
- )
498
- })
+ match pathset {
+ PathSet::Set(set) => {
+ for path in set {
499
+ add_path(&path);
500
+ }
501
502
+ PathSet::Suite(path) => {
503
+ add_path(&path.join("..."));
504
505
506
507
Some(help)
0 commit comments