From 2f4a248f806e8587a21c52e636e6fe68eb9bfdbb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 16 Oct 2018 21:09:22 +0300 Subject: rename gen-kinds to gen-syntax --- crates/ra_syntax/src/ast/generated.rs | 2 +- crates/ra_syntax/src/ast/generated.rs.tera | 2 +- crates/ra_syntax/src/grammar.ron | 2 +- crates/ra_syntax/src/syntax_kinds/generated.rs | 2 +- crates/ra_syntax/src/syntax_kinds/generated.rs.tera | 2 +- crates/tools/src/main.rs | 4 ++-- crates/tools/tests/cli.rs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'crates') diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index a15e00176..98c7de361 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -1,4 +1,4 @@ -// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run +// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-syntax` is run // Do not edit manually #![cfg_attr(rustfmt, rustfmt_skip)] diff --git a/crates/ra_syntax/src/ast/generated.rs.tera b/crates/ra_syntax/src/ast/generated.rs.tera index d2a281137..e1404deac 100644 --- a/crates/ra_syntax/src/ast/generated.rs.tera +++ b/crates/ra_syntax/src/ast/generated.rs.tera @@ -1,6 +1,6 @@ {# THIS File is not automatically generated: the below applies to the result of this template -#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run +#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-syntax` is run // Do not edit manually #![cfg_attr(rustfmt, rustfmt_skip)] diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index ea8063d3b..0830e02f2 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -1,5 +1,5 @@ // Stores definitions which must be used in multiple places -// See `cargo gen-kinds` (defined in crates/tools/src/main.rs) +// See `cargo gen-syntax` (defined in crates/tools/src/main.rs) Grammar( single_byte_tokens: [ [";", "SEMI"], diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs b/crates/ra_syntax/src/syntax_kinds/generated.rs index 11e9150bb..58e2e9e9c 100644 --- a/crates/ra_syntax/src/syntax_kinds/generated.rs +++ b/crates/ra_syntax/src/syntax_kinds/generated.rs @@ -1,4 +1,4 @@ -// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run +// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-syntax` is run // Do not edit manually #![allow(bad_style, missing_docs, unreachable_pub)] diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs.tera b/crates/ra_syntax/src/syntax_kinds/generated.rs.tera index 018564b8a..c37e57702 100644 --- a/crates/ra_syntax/src/syntax_kinds/generated.rs.tera +++ b/crates/ra_syntax/src/syntax_kinds/generated.rs.tera @@ -1,6 +1,6 @@ {# THIS File is not automatically generated: the below applies to the result of this template -#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run +#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-syntax` is run // Do not edit manually #![allow(bad_style, missing_docs, unreachable_pub)] diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index 965bc7729..152298014 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs @@ -28,7 +28,7 @@ fn main() -> Result<()> { .help("Verify that generated code is up-to-date") .global(true), ) - .subcommand(SubCommand::with_name("gen-kinds")) + .subcommand(SubCommand::with_name("gen-syntax")) .subcommand(SubCommand::with_name("gen-tests")) .subcommand(SubCommand::with_name("install-code")) .get_matches(); @@ -40,7 +40,7 @@ fn main() -> Result<()> { match matches.subcommand() { ("install-code", _) => install_code_extension()?, ("gen-tests", _) => gen_tests(mode)?, - ("gen-kinds", _) => generate(Overwrite)?, + ("gen-syntax", _) => generate(Overwrite)?, _ => unreachable!(), } Ok(()) diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs index 0bb5d15d8..5de52fc2b 100644 --- a/crates/tools/tests/cli.rs +++ b/crates/tools/tests/cli.rs @@ -7,6 +7,6 @@ use tools::{ #[test] fn verify_template_generation() { if let Err(error) = generate(Verify) { - panic!("{}. Please update it by running `cargo gen-kinds`", error); + panic!("{}. Please update it by running `cargo gen-syntax`", error); } } -- cgit v1.2.3