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.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs
index 98acd7fa6..c468468de 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,
@@ -26,8 +27,12 @@ pub use self::{
26 gen_feature_docs::generate_feature_docs, 27 gen_feature_docs::generate_feature_docs,
27 gen_parser_tests::generate_parser_tests, 28 gen_parser_tests::generate_parser_tests,
28 gen_syntax::generate_syntax, 29 gen_syntax::generate_syntax,
30 gen_unstable_future_descriptor::generate_unstable_future_descriptor,
29}; 31};
30 32
33// Directory used by xtask
34const STORAGE: &str = ".xtask";
35
31const GRAMMAR_DIR: &str = "crates/parser/src/grammar"; 36const GRAMMAR_DIR: &str = "crates/parser/src/grammar";
32const OK_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/ok"; 37const OK_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/ok";
33const ERR_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/err"; 38const ERR_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/err";
@@ -39,6 +44,10 @@ const AST_TOKENS: &str = "crates/syntax/src/ast/generated/tokens.rs";
39const ASSISTS_DIR: &str = "crates/assists/src/handlers"; 44const ASSISTS_DIR: &str = "crates/assists/src/handlers";
40const ASSISTS_TESTS: &str = "crates/assists/src/tests/generated.rs"; 45const ASSISTS_TESTS: &str = "crates/assists/src/tests/generated.rs";
41 46
47const REPOSITORY_URL: &str = "https://github.com/rust-lang/rust";
48const UNSTABLE_FEATURE: &str = "crates/ide/src/completion/unstable_feature_descriptor.rs";
49const REPO_PATH: &str = "src/doc/unstable-book/src";
50
42#[derive(Debug, PartialEq, Eq, Clone, Copy)] 51#[derive(Debug, PartialEq, Eq, Clone, Copy)]
43pub enum Mode { 52pub enum Mode {
44 Overwrite, 53 Overwrite,