diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-17 14:54:55 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-17 14:54:55 +0000 |
commit | 20a911f3cc2beb0409ab71cc1560648374745f7f (patch) | |
tree | 5386aab9c452981be09bc3e4362643a34e6e3617 /xtask | |
parent | 6334ce866ab095215381c4b72692b20a84d26e96 (diff) | |
parent | 3db64a400c78bbd2708e67ddc07df1001fff3f29 (diff) |
Merge #7707
7707: rename completion -> ide_completion r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/gen_lint_completions.rs | 3 | ||||
-rw-r--r-- | xtask/tests/tidy.rs | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/xtask/src/codegen/gen_lint_completions.rs b/xtask/src/codegen/gen_lint_completions.rs index b97421217..25f770eaf 100644 --- a/xtask/src/codegen/gen_lint_completions.rs +++ b/xtask/src/codegen/gen_lint_completions.rs | |||
@@ -26,7 +26,8 @@ pub fn generate_lint_completions(mode: Mode) -> Result<()> { | |||
26 | }; | 26 | }; |
27 | let contents = reformat(ts.to_string().as_str())?; | 27 | let contents = reformat(ts.to_string().as_str())?; |
28 | 28 | ||
29 | let destination = project_root().join("crates/completion/src/generated_lint_completions.rs"); | 29 | let destination = |
30 | project_root().join("crates/ide_completion/src/generated_lint_completions.rs"); | ||
30 | update(destination.as_path(), &contents, mode)?; | 31 | update(destination.as_path(), &contents, mode)?; |
31 | run_rustfmt(mode)?; | 32 | run_rustfmt(mode)?; |
32 | 33 | ||
diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index cb83e07fd..909c52afa 100644 --- a/xtask/tests/tidy.rs +++ b/xtask/tests/tidy.rs | |||
@@ -172,7 +172,7 @@ https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/#redo-after- | |||
172 | fn deny_clippy(path: &PathBuf, text: &String) { | 172 | fn deny_clippy(path: &PathBuf, text: &String) { |
173 | let ignore = &[ | 173 | let ignore = &[ |
174 | // The documentation in string literals may contain anything for its own purposes | 174 | // The documentation in string literals may contain anything for its own purposes |
175 | "completion/src/generated_lint_completions.rs", | 175 | "ide_completion/src/generated_lint_completions.rs", |
176 | ]; | 176 | ]; |
177 | if ignore.iter().any(|p| path.ends_with(p)) { | 177 | if ignore.iter().any(|p| path.ends_with(p)) { |
178 | return; | 178 | return; |
@@ -259,7 +259,7 @@ fn check_todo(path: &Path, text: &str) { | |||
259 | // `ast::make`. | 259 | // `ast::make`. |
260 | "ast/make.rs", | 260 | "ast/make.rs", |
261 | // The documentation in string literals may contain anything for its own purposes | 261 | // The documentation in string literals may contain anything for its own purposes |
262 | "completion/src/generated_lint_completions.rs", | 262 | "ide_completion/src/generated_lint_completions.rs", |
263 | ]; | 263 | ]; |
264 | if need_todo.iter().any(|p| path.ends_with(p)) { | 264 | if need_todo.iter().any(|p| path.ends_with(p)) { |
265 | return; | 265 | return; |
@@ -286,10 +286,10 @@ fn check_dbg(path: &Path, text: &str) { | |||
286 | // Assists to remove `dbg!()` | 286 | // Assists to remove `dbg!()` |
287 | "handlers/remove_dbg.rs", | 287 | "handlers/remove_dbg.rs", |
288 | // We have .dbg postfix | 288 | // We have .dbg postfix |
289 | "completion/src/completions/postfix.rs", | 289 | "ide_completion/src/completions/postfix.rs", |
290 | // The documentation in string literals may contain anything for its own purposes | 290 | // The documentation in string literals may contain anything for its own purposes |
291 | "completion/src/lib.rs", | 291 | "ide_completion/src/lib.rs", |
292 | "completion/src/generated_lint_completions.rs", | 292 | "ide_completion/src/generated_lint_completions.rs", |
293 | // test for doc test for remove_dbg | 293 | // test for doc test for remove_dbg |
294 | "src/tests/generated.rs", | 294 | "src/tests/generated.rs", |
295 | ]; | 295 | ]; |