diff options
author | Aleksey Kladov <[email protected]> | 2020-02-07 14:53:31 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-07 16:28:02 +0000 |
commit | 561b4b11ff1d87ea1ff2477dcba6ae1f396573a3 (patch) | |
tree | 0da58d08d5a2ff27f43c3eb6163ba9aced2f5782 /xtask | |
parent | aa64a84b493aa9c0b22f36b472a445d622cd2172 (diff) |
Name assist handlers
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen.rs | 2 | ||||
-rw-r--r-- | xtask/tests/tidy-tests/docs.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index efa638e06..a53d57335 100644 --- a/xtask/src/codegen.rs +++ b/xtask/src/codegen.rs | |||
@@ -25,7 +25,7 @@ const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err | |||
25 | pub const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs"; | 25 | pub const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs"; |
26 | pub const AST: &str = "crates/ra_syntax/src/ast/generated.rs"; | 26 | pub const AST: &str = "crates/ra_syntax/src/ast/generated.rs"; |
27 | 27 | ||
28 | const ASSISTS_DIR: &str = "crates/ra_assists/src/assists"; | 28 | const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers"; |
29 | const ASSISTS_TESTS: &str = "crates/ra_assists/src/doc_tests/generated.rs"; | 29 | const ASSISTS_TESTS: &str = "crates/ra_assists/src/doc_tests/generated.rs"; |
30 | const ASSISTS_DOCS: &str = "docs/user/assists.md"; | 30 | const ASSISTS_DOCS: &str = "docs/user/assists.md"; |
31 | 31 | ||
diff --git a/xtask/tests/tidy-tests/docs.rs b/xtask/tests/tidy-tests/docs.rs index 8a005d6c4..6a69e7d6a 100644 --- a/xtask/tests/tidy-tests/docs.rs +++ b/xtask/tests/tidy-tests/docs.rs | |||
@@ -6,7 +6,7 @@ use xtask::project_root; | |||
6 | fn is_exclude_dir(p: &Path) -> bool { | 6 | fn is_exclude_dir(p: &Path) -> bool { |
7 | // Test hopefully don't really need comments, and for assists we already | 7 | // Test hopefully don't really need comments, and for assists we already |
8 | // have special comments which are source of doc tests and user docs. | 8 | // have special comments which are source of doc tests and user docs. |
9 | let exclude_dirs = ["tests", "test_data", "assists"]; | 9 | let exclude_dirs = ["tests", "test_data", "handlers"]; |
10 | let mut cur_path = p; | 10 | let mut cur_path = p; |
11 | while let Some(path) = cur_path.parent() { | 11 | while let Some(path) = cur_path.parent() { |
12 | if exclude_dirs.iter().any(|dir| path.ends_with(dir)) { | 12 | if exclude_dirs.iter().any(|dir| path.ends_with(dir)) { |