From 3db64a400c78bbd2708e67ddc07df1001fff3f29 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 17 Feb 2021 17:53:31 +0300 Subject: rename completion -> ide_completion We don't have completion-related PRs in flight, so lets do it --- xtask/src/codegen/gen_lint_completions.rs | 3 ++- xtask/tests/tidy.rs | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'xtask') 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<()> { }; let contents = reformat(ts.to_string().as_str())?; - let destination = project_root().join("crates/completion/src/generated_lint_completions.rs"); + let destination = + project_root().join("crates/ide_completion/src/generated_lint_completions.rs"); update(destination.as_path(), &contents, mode)?; run_rustfmt(mode)?; 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- fn deny_clippy(path: &PathBuf, text: &String) { let ignore = &[ // The documentation in string literals may contain anything for its own purposes - "completion/src/generated_lint_completions.rs", + "ide_completion/src/generated_lint_completions.rs", ]; if ignore.iter().any(|p| path.ends_with(p)) { return; @@ -259,7 +259,7 @@ fn check_todo(path: &Path, text: &str) { // `ast::make`. "ast/make.rs", // The documentation in string literals may contain anything for its own purposes - "completion/src/generated_lint_completions.rs", + "ide_completion/src/generated_lint_completions.rs", ]; if need_todo.iter().any(|p| path.ends_with(p)) { return; @@ -286,10 +286,10 @@ fn check_dbg(path: &Path, text: &str) { // Assists to remove `dbg!()` "handlers/remove_dbg.rs", // We have .dbg postfix - "completion/src/completions/postfix.rs", + "ide_completion/src/completions/postfix.rs", // The documentation in string literals may contain anything for its own purposes - "completion/src/lib.rs", - "completion/src/generated_lint_completions.rs", + "ide_completion/src/lib.rs", + "ide_completion/src/generated_lint_completions.rs", // test for doc test for remove_dbg "src/tests/generated.rs", ]; -- cgit v1.2.3