Skip to content

Commit 14c30b7

Browse files
committed
update crates names in slow-tests/tidy.rs
1 parent c9a8c69 commit 14c30b7

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed
Binary file not shown.
Binary file not shown.

crates/rust-analyzer/tests/slow-tests/tidy.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/#redo-after-
195195
fn deny_clippy(path: &Path, text: &str) {
196196
let ignore = &[
197197
// The documentation in string literals may contain anything for its own purposes
198-
"ide_db/src/generated/lints.rs",
198+
"ide-db/src/generated/lints.rs",
199199
// The tests test clippy lint hovers
200200
"ide/src/hover/tests.rs",
201201
// The tests test clippy lint completions
202-
"ide_completion/src/tests/attribute.rs",
202+
"ide-completion/src/tests/attribute.rs",
203203
];
204204
if ignore.iter().any(|p| path.ends_with(p)) {
205205
return;
@@ -289,11 +289,11 @@ fn check_todo(path: &Path, text: &str) {
289289
// `ast::make`.
290290
"ast/make.rs",
291291
// The documentation in string literals may contain anything for its own purposes
292-
"ide_db/src/generated/lints.rs",
293-
"ide_assists/src/utils/gen_trait_fn_body.rs",
294-
"ide_assists/src/tests/generated.rs",
292+
"ide-db/src/generated/lints.rs",
293+
"ide-assists/src/utils/gen_trait_fn_body.rs",
294+
"ide-assists/src/tests/generated.rs",
295295
// The tests for missing fields
296-
"ide_diagnostics/src/handlers/missing_fields.rs",
296+
"ide-diagnostics/src/handlers/missing_fields.rs",
297297
];
298298
if need_todo.iter().any(|p| path.ends_with(p)) {
299299
return;
@@ -320,12 +320,12 @@ fn check_dbg(path: &Path, text: &str) {
320320
// Assists to remove `dbg!()`
321321
"handlers/remove_dbg.rs",
322322
// We have .dbg postfix
323-
"ide_completion/src/completions/postfix.rs",
324-
"ide_completion/src/completions/keyword.rs",
325-
"ide_completion/src/tests/proc_macros.rs",
323+
"ide-completion/src/completions/postfix.rs",
324+
"ide-completion/src/completions/keyword.rs",
325+
"ide-completion/src/tests/proc_macros.rs",
326326
// The documentation in string literals may contain anything for its own purposes
327-
"ide_completion/src/lib.rs",
328-
"ide_db/src/generated/lints.rs",
327+
"ide-completion/src/lib.rs",
328+
"ide-db/src/generated/lints.rs",
329329
// test for doc test for remove_dbg
330330
"src/tests/generated.rs",
331331
];
@@ -351,13 +351,13 @@ fn check_test_attrs(path: &Path, text: &str) {
351351
"ide/src/runnables.rs",
352352
// A legit test which needs to be ignored, as it takes too long to run
353353
// :(
354-
"hir_def/src/nameres/collector.rs",
354+
"hir-def/src/nameres/collector.rs",
355355
// Long sourcegen test to generate lint completions.
356-
"ide_db/src/tests/sourcegen_lints.rs",
356+
"ide-db/src/tests/sourcegen_lints.rs",
357357
// Obviously needs ignore.
358-
"ide_assists/src/handlers/toggle_ignore.rs",
358+
"ide-assists/src/handlers/toggle_ignore.rs",
359359
// See above.
360-
"ide_assists/src/tests/generated.rs",
360+
"ide-assists/src/tests/generated.rs",
361361
];
362362
if text.contains("#[ignore") && !need_ignore.iter().any(|p| path.ends_with(p)) {
363363
panic!("\ndon't `#[ignore]` tests, see:\n\n {}\n\n {}\n", ignore_rule, path.display(),)
@@ -368,7 +368,7 @@ fn check_test_attrs(path: &Path, text: &str) {
368368
let need_panic: &[&str] = &[
369369
// This file.
370370
"slow-tests/tidy.rs",
371-
"test_utils/src/fixture.rs",
371+
"test-utils/src/fixture.rs",
372372
];
373373
if text.contains("#[should_panic") && !need_panic.iter().any(|p| path.ends_with(p)) {
374374
panic!(

0 commit comments

Comments
 (0)