diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-23 16:57:47 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-23 16:57:47 +0100 |
commit | 2197205885f43441f14861f34449426295397dd9 (patch) | |
tree | 3af21aaefe1efdabafeb5702959e1094504813e7 /xtask/src/main.rs | |
parent | edf4d8e555c6847fb9e6e61d727c4def11789bfc (diff) | |
parent | 6048d294009f0f58593747e0870aa174e29a32af (diff) |
Merge #2050
2050: xtask: don't depend on itertools r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r-- | xtask/src/main.rs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index c08915aac..db901ced2 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -7,8 +7,8 @@ use core::str; | |||
7 | use pico_args::Arguments; | 7 | use pico_args::Arguments; |
8 | use std::{env, path::PathBuf}; | 8 | use std::{env, path::PathBuf}; |
9 | use xtask::{ | 9 | use xtask::{ |
10 | gen_tests, generate_boilerplate, install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt, | 10 | codegen::{self, Mode}, |
11 | run_with_output, Cmd, Overwrite, Result, | 11 | install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt, run_with_output, Cmd, Result, |
12 | }; | 12 | }; |
13 | 13 | ||
14 | // Latest stable, feel free to send a PR if this lags behind. | 14 | // Latest stable, feel free to send a PR if this lags behind. |
@@ -57,26 +57,20 @@ fn main() -> Result<()> { | |||
57 | }; | 57 | }; |
58 | install(opts)? | 58 | install(opts)? |
59 | } | 59 | } |
60 | "gen-tests" => { | ||
61 | if matches.contains(["-h", "--help"]) { | ||
62 | help::print_no_param_subcommand_help(&subcommand); | ||
63 | return Ok(()); | ||
64 | } | ||
65 | gen_tests(Overwrite)? | ||
66 | } | ||
67 | "codegen" => { | 60 | "codegen" => { |
68 | if matches.contains(["-h", "--help"]) { | 61 | if matches.contains(["-h", "--help"]) { |
69 | help::print_no_param_subcommand_help(&subcommand); | 62 | help::print_no_param_subcommand_help(&subcommand); |
70 | return Ok(()); | 63 | return Ok(()); |
71 | } | 64 | } |
72 | generate_boilerplate(Overwrite)? | 65 | codegen::generate_syntax(Mode::Overwrite)?; |
66 | codegen::generate_parser_tests(Mode::Overwrite)?; | ||
73 | } | 67 | } |
74 | "format" => { | 68 | "format" => { |
75 | if matches.contains(["-h", "--help"]) { | 69 | if matches.contains(["-h", "--help"]) { |
76 | help::print_no_param_subcommand_help(&subcommand); | 70 | help::print_no_param_subcommand_help(&subcommand); |
77 | return Ok(()); | 71 | return Ok(()); |
78 | } | 72 | } |
79 | run_rustfmt(Overwrite)? | 73 | run_rustfmt(Mode::Overwrite)? |
80 | } | 74 | } |
81 | "format-hook" => { | 75 | "format-hook" => { |
82 | if matches.contains(["-h", "--help"]) { | 76 | if matches.contains(["-h", "--help"]) { |