diff options
author | Aleksey Kladov <[email protected]> | 2019-10-23 16:17:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-23 16:57:18 +0100 |
commit | a669049ef327db5be04f076eff83932ac1f95d91 (patch) | |
tree | ecc21b23217780ef7ca9279694170f4359b50150 /xtask/src/main.rs | |
parent | b5f13d8d51ef9107363a60b894a741ab596921ce (diff) |
xtask: fold gen-tests and gen-ast into codegen
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r-- | xtask/src/main.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 0b19c34f4..db901ced2 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -57,19 +57,13 @@ 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 | codegen::generate_parser_tests(Mode::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 | codegen::generate_syntax(Mode::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"]) { |