aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/codegen.rs')
-rw-r--r--xtask/src/codegen.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs
index 78a84f68d..950dd61b2 100644
--- a/xtask/src/codegen.rs
+++ b/xtask/src/codegen.rs
@@ -9,6 +9,7 @@ mod gen_syntax;
9mod gen_parser_tests; 9mod gen_parser_tests;
10mod gen_assists_docs; 10mod gen_assists_docs;
11mod gen_feature_docs; 11mod gen_feature_docs;
12mod gen_unstable_future_descriptor;
12 13
13use std::{ 14use std::{
14 fmt, mem, 15 fmt, mem,
@@ -22,11 +23,15 @@ 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
27const GRAMMAR_DIR: &str = "crates/parser/src/grammar"; 29// Directory used by xtask
28const OK_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/ok"; 30const STORAGE: &str = ".xtask";
29const ERR_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/err"; 31
32const GRAMMAR_DIR: &str = "crates/ra_parser/src/grammar";
33const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/ok";
34const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err";
30 35
31const SYNTAX_KINDS: &str = "crates/parser/src/syntax_kind/generated.rs"; 36const SYNTAX_KINDS: &str = "crates/parser/src/syntax_kind/generated.rs";
32const AST_NODES: &str = "crates/syntax/src/ast/generated/nodes.rs"; 37const AST_NODES: &str = "crates/syntax/src/ast/generated/nodes.rs";
@@ -35,6 +40,10 @@ const AST_TOKENS: &str = "crates/syntax/src/ast/generated/tokens.rs";
35const ASSISTS_DIR: &str = "crates/assists/src/handlers"; 40const ASSISTS_DIR: &str = "crates/assists/src/handlers";
36const ASSISTS_TESTS: &str = "crates/assists/src/tests/generated.rs"; 41const ASSISTS_TESTS: &str = "crates/assists/src/tests/generated.rs";
37 42
43const REPOSITORY_URL: &str = "https://github.com/rust-lang/rust";
44const UNSTABLE_FEATURE: &str = "crates/ra_ide/src/completion/unstable_feature_descriptor.rs";
45const REPO_PATH: &str = "src/doc/unstable-book/src";
46
38#[derive(Debug, PartialEq, Eq, Clone, Copy)] 47#[derive(Debug, PartialEq, Eq, Clone, Copy)]
39pub enum Mode { 48pub enum Mode {
40 Overwrite, 49 Overwrite,