diff options
Diffstat (limited to 'xtask/src/codegen.rs')
-rw-r--r-- | xtask/src/codegen.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index f5f4b964a..209caacc3 100644 --- a/xtask/src/codegen.rs +++ b/xtask/src/codegen.rs | |||
@@ -9,6 +9,7 @@ mod gen_syntax; | |||
9 | mod gen_parser_tests; | 9 | mod gen_parser_tests; |
10 | mod gen_assists_docs; | 10 | mod gen_assists_docs; |
11 | mod gen_feature_docs; | 11 | mod gen_feature_docs; |
12 | mod gen_unstable_future_descriptor; | ||
12 | 13 | ||
13 | use std::{ | 14 | use std::{ |
14 | fmt, mem, | 15 | fmt, mem, |
@@ -22,8 +23,12 @@ pub use self::{ | |||
22 | gen_feature_docs::generate_feature_docs, | 23 | gen_feature_docs::generate_feature_docs, |
23 | gen_parser_tests::generate_parser_tests, | 24 | gen_parser_tests::generate_parser_tests, |
24 | gen_syntax::generate_syntax, | 25 | gen_syntax::generate_syntax, |
26 | gen_unstable_future_descriptor::generate_unstable_future_descriptor, | ||
25 | }; | 27 | }; |
26 | 28 | ||
29 | // Directory used by xtask | ||
30 | const STORAGE: &str = ".xtask"; | ||
31 | |||
27 | const GRAMMAR_DIR: &str = "crates/ra_parser/src/grammar"; | 32 | const GRAMMAR_DIR: &str = "crates/ra_parser/src/grammar"; |
28 | const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/ok"; | 33 | const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/ok"; |
29 | const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err"; | 34 | const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err"; |
@@ -35,6 +40,9 @@ const AST_TOKENS: &str = "crates/ra_syntax/src/ast/generated/tokens.rs"; | |||
35 | const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers"; | 40 | const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers"; |
36 | const ASSISTS_TESTS: &str = "crates/ra_assists/src/tests/generated.rs"; | 41 | const ASSISTS_TESTS: &str = "crates/ra_assists/src/tests/generated.rs"; |
37 | 42 | ||
43 | const REPOSITORY_URL: &str = "https://github.com/rust-lang/rust"; | ||
44 | const UNSTABLE_FEATURE: &str = "crates/ra_ide/src/completion/unstable_feature_descriptor.rs"; | ||
45 | |||
38 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] | 46 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] |
39 | pub enum Mode { | 47 | pub enum Mode { |
40 | Overwrite, | 48 | Overwrite, |