diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-18 17:49:06 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-18 17:49:06 +0100 |
commit | f18f9da7d80c669cf14bc2e85e40d883c621262a (patch) | |
tree | 3505c0413a0be0e7b99ec797f366a9f49e7ddd9c /xtask/src/codegen.rs | |
parent | aa2def023e6b0aa8a68f4992423f566d435e55c6 (diff) | |
parent | 45f171c43a4f58eff31081af80ac9693c738994f (diff) |
Merge #5695
5695: Added completion for unstable features r=matklad a=Fihtangolz
Added xtask for downloading list of unstable features from the unstable book and codegen for it. Also included small changes from linter.
Co-authored-by: Dmitry <[email protected]>
Co-authored-by: Dmitry Opokin <[email protected]>
Diffstat (limited to 'xtask/src/codegen.rs')
-rw-r--r-- | xtask/src/codegen.rs | 9 |
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; | |||
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, |
@@ -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 | ||
34 | const STORAGE: &str = ".xtask"; | ||
35 | |||
31 | const GRAMMAR_DIR: &str = "crates/parser/src/grammar"; | 36 | const GRAMMAR_DIR: &str = "crates/parser/src/grammar"; |
32 | const OK_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/ok"; | 37 | const OK_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/ok"; |
33 | const ERR_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/err"; | 38 | const 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"; | |||
39 | const ASSISTS_DIR: &str = "crates/assists/src/handlers"; | 44 | const ASSISTS_DIR: &str = "crates/assists/src/handlers"; |
40 | const ASSISTS_TESTS: &str = "crates/assists/src/tests/generated.rs"; | 45 | const ASSISTS_TESTS: &str = "crates/assists/src/tests/generated.rs"; |
41 | 46 | ||
47 | const REPOSITORY_URL: &str = "https://github.com/rust-lang/rust"; | ||
48 | const UNSTABLE_FEATURE: &str = "crates/ide/src/completion/unstable_feature_descriptor.rs"; | ||
49 | const REPO_PATH: &str = "src/doc/unstable-book/src"; | ||
50 | |||
42 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] | 51 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] |
43 | pub enum Mode { | 52 | pub enum Mode { |
44 | Overwrite, | 53 | Overwrite, |