diff options
author | Igor Aleksanov <[email protected]> | 2020-08-14 05:34:07 +0100 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-08-14 05:34:07 +0100 |
commit | c26c911ec1e6c2ad1dcb7d155a6a1d528839ad1a (patch) | |
tree | 7cff36c38234be0afb65273146d8247083a5cfeb /xtask/src | |
parent | 3c018bf84de5c693b5ee1c6bec0fed3b201c2060 (diff) | |
parent | f1f73649a686dc6e6449afc35e0fa6fed00e225d (diff) |
Merge branch 'master' into add-disable-diagnostics
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen.rs | 16 | ||||
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 2 | ||||
-rw-r--r-- | xtask/src/lib.rs | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index f5f4b964a..78a84f68d 100644 --- a/xtask/src/codegen.rs +++ b/xtask/src/codegen.rs | |||
@@ -24,16 +24,16 @@ pub use self::{ | |||
24 | gen_syntax::generate_syntax, | 24 | gen_syntax::generate_syntax, |
25 | }; | 25 | }; |
26 | 26 | ||
27 | const GRAMMAR_DIR: &str = "crates/ra_parser/src/grammar"; | 27 | const GRAMMAR_DIR: &str = "crates/parser/src/grammar"; |
28 | const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/ok"; | 28 | const OK_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/ok"; |
29 | const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err"; | 29 | const ERR_INLINE_TESTS_DIR: &str = "crates/syntax/test_data/parser/inline/err"; |
30 | 30 | ||
31 | const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs"; | 31 | const SYNTAX_KINDS: &str = "crates/parser/src/syntax_kind/generated.rs"; |
32 | const AST_NODES: &str = "crates/ra_syntax/src/ast/generated/nodes.rs"; | 32 | const AST_NODES: &str = "crates/syntax/src/ast/generated/nodes.rs"; |
33 | const AST_TOKENS: &str = "crates/ra_syntax/src/ast/generated/tokens.rs"; | 33 | const AST_TOKENS: &str = "crates/syntax/src/ast/generated/tokens.rs"; |
34 | 34 | ||
35 | const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers"; | 35 | const ASSISTS_DIR: &str = "crates/assists/src/handlers"; |
36 | const ASSISTS_TESTS: &str = "crates/ra_assists/src/tests/generated.rs"; | 36 | const ASSISTS_TESTS: &str = "crates/assists/src/tests/generated.rs"; |
37 | 37 | ||
38 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] | 38 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] |
39 | pub enum Mode { | 39 | pub enum Mode { |
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index cafad8070..dd1f4d6a2 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | //! This module generates AST datatype used by rust-analyzer. | 1 | //! This module generates AST datatype used by rust-analyzer. |
2 | //! | 2 | //! |
3 | //! Specifically, it generates the `SyntaxKind` enum and a number of newtype | 3 | //! Specifically, it generates the `SyntaxKind` enum and a number of newtype |
4 | //! wrappers around `SyntaxNode` which implement `ra_syntax::AstNode`. | 4 | //! wrappers around `SyntaxNode` which implement `syntax::AstNode`. |
5 | 5 | ||
6 | use std::{ | 6 | use std::{ |
7 | collections::{BTreeSet, HashSet}, | 7 | collections::{BTreeSet, HashSet}, |
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 2fdb08f2e..807ef587c 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs | |||
@@ -103,7 +103,7 @@ pub fn run_clippy() -> Result<()> { | |||
103 | } | 103 | } |
104 | 104 | ||
105 | pub fn run_fuzzer() -> Result<()> { | 105 | pub fn run_fuzzer() -> Result<()> { |
106 | let _d = pushd("./crates/ra_syntax"); | 106 | let _d = pushd("./crates/syntax"); |
107 | let _e = pushenv("RUSTUP_TOOLCHAIN", "nightly"); | 107 | let _e = pushenv("RUSTUP_TOOLCHAIN", "nightly"); |
108 | if run!("cargo fuzz --help").is_err() { | 108 | if run!("cargo fuzz --help").is_err() { |
109 | run!("cargo install cargo-fuzz")?; | 109 | run!("cargo install cargo-fuzz")?; |
@@ -139,7 +139,7 @@ pub fn run_pre_cache() -> Result<()> { | |||
139 | } | 139 | } |
140 | 140 | ||
141 | fs2::remove_file("./target/.rustc_info.json")?; | 141 | fs2::remove_file("./target/.rustc_info.json")?; |
142 | let to_delete = ["ra_", "heavy_test", "xtask"]; | 142 | let to_delete = ["hir", "heavy_test", "xtask", "ide", "rust-analyzer"]; |
143 | for &dir in ["./target/debug/deps", "target/debug/.fingerprint"].iter() { | 143 | for &dir in ["./target/debug/deps", "target/debug/.fingerprint"].iter() { |
144 | for entry in Path::new(dir).read_dir()? { | 144 | for entry in Path::new(dir).read_dir()? { |
145 | let entry = entry?; | 145 | let entry = entry?; |