mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
xtask: fold gen-tests and gen-ast into codegen
This commit is contained in:
parent
b5f13d8d51
commit
a669049ef3
4 changed files with 4 additions and 11 deletions
|
@ -13,7 +13,6 @@ SUBCOMMANDS:
|
|||
format-hook
|
||||
fuzz-tests
|
||||
codegen
|
||||
gen-tests
|
||||
install
|
||||
lint";
|
||||
|
||||
|
|
|
@ -57,19 +57,13 @@ fn main() -> Result<()> {
|
|||
};
|
||||
install(opts)?
|
||||
}
|
||||
"gen-tests" => {
|
||||
if matches.contains(["-h", "--help"]) {
|
||||
help::print_no_param_subcommand_help(&subcommand);
|
||||
return Ok(());
|
||||
}
|
||||
codegen::generate_parser_tests(Mode::Overwrite)?
|
||||
}
|
||||
"codegen" => {
|
||||
if matches.contains(["-h", "--help"]) {
|
||||
help::print_no_param_subcommand_help(&subcommand);
|
||||
return Ok(());
|
||||
}
|
||||
codegen::generate_syntax(Mode::Overwrite)?
|
||||
codegen::generate_syntax(Mode::Overwrite)?;
|
||||
codegen::generate_parser_tests(Mode::Overwrite)?;
|
||||
}
|
||||
"format" => {
|
||||
if matches.contains(["-h", "--help"]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue