From 14c30b7979cd879251a8c14ed8b9b879a14eb0d1 Mon Sep 17 00:00:00 2001 From: Peh <20146907+randomicon00@users.noreply.github.com> Date: Sat, 30 Apr 2022 21:46:10 +0000 Subject: [PATCH] update crates names in slow-tests/tidy.rs --- .../src/tests/.sourcegen.rs.swp | Bin 12288 -> 0 bytes .../tests/slow-tests/.tidy.rs.swp | Bin 0 -> 28672 bytes crates/rust-analyzer/tests/slow-tests/tidy.rs | 32 +++++++++--------- 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 crates/ide-diagnostics/src/tests/.sourcegen.rs.swp create mode 100644 crates/rust-analyzer/tests/slow-tests/.tidy.rs.swp diff --git a/crates/ide-diagnostics/src/tests/.sourcegen.rs.swp b/crates/ide-diagnostics/src/tests/.sourcegen.rs.swp deleted file mode 100644 index e9aa7190ae8ab87358859663a94d719b4a366b98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeHNF^t?q6rF$q0TMt^2j(`)#(UZGhENbq?k*y^1f2u~B}xi%u$i^Jx0BdoYi69| z*gGgFs32)55ET_d2r5KFhiDNE(9zR^L_tKs8?U|gUO0%LLd-}nw#PHG|G)qKj8FN4 zW0zN7peOv}1np5m&V7^&Efe(RO zz`MXZz!+Ese%VjR&%n39O&|nb1`Y!Ufc?N14-xVfa1@va2=L>BgnR&;2bO?+z$Xu& zUI7>Y9C#5}0hWP9;3V+tK0>|$-UH48r+|Bb&+mtyz!*3Vbb+G)1)cy70=L1>m%uu} z0n68`fNPEc$ADwNG4Q7hY!iw$`PbfUC}E;l&UwQwZ7nS=(ed`0oS(l~6nC-t`QmxJ z-Re>u#Y10&<&7;XGa{AcW0(dVV%Hl=I!uh$wxhdr$Y?vsjqPIWT&faoP?NTJq`%yu z3(J%43z5!aL&roUSv=`l5ju1_pD zbT06P?sFXoff+F9t}Ku|i8P(HBhRu(1zbn}$d1~K{&b;#Y0$<9LeLox?#`m2kfCSk zVGNAalRK6mohFf2(Gy3eK`C8oJorY5!~^qC4W`}Tu?YJ${e4TES3g5c+NeS~6VWVs zoi4qIMdbQ&t&Um|^_`7VQ#JP4w%HN3hX;Y5<$B~bBs8X0_qF7qcDg;$yPZ-s>uEIz zeohM{8GF9W7CNRw5l4(>+>HDnP9=E4%0i-VfVtOwdr!9~VyqUn*Mdg;?ov6<3fh)! z`qxq+z1Es+l?rZ7y3;-THsewRb6!ixg7HQ`sAZhdF*~)*)+9ypBk`^8iC(|cU*w9l z$|jtB57TxHVq1ij9-8*q=^~u^B*Iz0ZT=UmP-HGDT5X+bzv$35+&fp=F=8eHXC|{x zTaFovUNedZrnyhR(Y8VV4i>G2wi`AMHDfB`Vc(>E=n$gw+BS}zQ?=C)a*)Px6qvpZ zv^lhKCFePUnRW`{JVV_c@vYnDrurUu*aMCyN0 znOse;a-j|fwj&%k4Tg8b!_r+GKy{4j9R>N$%6+Cw3RBB`W=$@tB%cfsVLb(E$pbTc zlpVSfMoQd>yp?E>uXkRl&Ni#E;!yV5p*9d@mFOKmmm7*_mb1bJ(1j7Zu>_lSFW0E# zMu~Q0i@BRytIzSiV#yL;{R)x~-<#2MSi z0izJb1U_sDvqgpR>s0D={8EaHE!yDpmzSp@Uz7FzHfwE7#q>MD3apMIW970~tR@h` z*wvfjQHjE(V$gYO+=j!4VgW@T<;Gbg>?9DS~ggQi!x V)<_)fC*f5J0*eCt;&aL;e*ip~QpW%Q diff --git a/crates/rust-analyzer/tests/slow-tests/.tidy.rs.swp b/crates/rust-analyzer/tests/slow-tests/.tidy.rs.swp new file mode 100644 index 0000000000000000000000000000000000000000..0d396b05a0abcc2367dbf232dd8faca5d8e0eaf4 GIT binary patch literal 28672 zcmeI5dz2(qea8z85sfHl;xis=ddWyn@1|QLbiIIo~)Wbg{KH?+Ms6<7h@p#mjlXHBd28c0Hlze{o*0Z~3 zcjUl1o|EpwcYFHQeg5w6{_g!fZqeF&<(_@!^Xumre9kb8f4#liYFzWyQ{QuiVf5OP zc=Atoxz-N4y?*S3buVaJ-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n*S6@c>a^898K2KSlcn3nek0KQK zb>k0%K0zcHA0)U=&Sp4^2-D!_GWI9SoI4&{(W0qq!oO6C=)mN_b!qX_tNeE0MDj`m zbw)~xnE3E_?a4O*Sto3RN2ElsBn~MhqR|ATYc1F2wz?QR@)F73si;4^%^m5lY~8Y^ zA_H|Fm6oJ3=iBe#X-@^?JmhUK4+BunOugmE?RU4u{}^V3+bDHnO3suliqd&aWp}1_ zlCpV*I#%P?sdGV!m8;uOh=wRX4}bK9EDXJ0>k}C#=;G@Leyy|f`AD+?o+qMce)gQr zTh6O(-dfxI{Mv&2|8s&`pEGjJ^18U3i9XU1A~kVT)`(P^-9#W3k2^?Eoiq7A`B>hP zwH%=qM=`NlDv*azQxyUs;i<7hn1L|toWyx?H@ZgSa}8ssD2wVy-f=A6{}HeuM3}np zJnGOCE}GhX6~bastR)d!++bbS3s2<7S*FxTZT!87Akfh5EYmz1Rx7}+r@E(fQVH## z8#=CtKoME3Nyt$owkT0W*$whK#W;%$n7m+DDWSC(L;#no>3GQp6EKm!@l@ ztIR18W-W1875W1kz`M0t6m;;I(vIsVv1_U}lvE0Jxg#uZ^%1sULNVye{}d{#AK$fV z)ZqmLGMIh%=oPU>&7cQ|iG0xARF{W!92w$1h)14LTOy8QVpEEE?A_``zk_nN(xM!xNak@d}Bu#)!k-7wiBOY@-0}JP%r0M zDW{cxNv`1(Ngc2wOH%rgv+jxB`y~0wN2uJ~kk*lYpZMKRl8eKOewBfoeL{{gY-st* zxzfl`70zd+aah*5nM6?OIBsE9rf0*yi=4Zy)jIR4O4kI VMe_Yd)4lv+w3PO;h)2->{{RI6(I5Z- literal 0 HcmV?d00001 diff --git a/crates/rust-analyzer/tests/slow-tests/tidy.rs b/crates/rust-analyzer/tests/slow-tests/tidy.rs index 4a2f45fd51f..9109617ecff 100644 --- a/crates/rust-analyzer/tests/slow-tests/tidy.rs +++ b/crates/rust-analyzer/tests/slow-tests/tidy.rs @@ -195,11 +195,11 @@ fn check_merge_commits() { fn deny_clippy(path: &Path, text: &str) { let ignore = &[ // The documentation in string literals may contain anything for its own purposes - "ide_db/src/generated/lints.rs", + "ide-db/src/generated/lints.rs", // The tests test clippy lint hovers "ide/src/hover/tests.rs", // The tests test clippy lint completions - "ide_completion/src/tests/attribute.rs", + "ide-completion/src/tests/attribute.rs", ]; if ignore.iter().any(|p| path.ends_with(p)) { return; @@ -289,11 +289,11 @@ fn check_todo(path: &Path, text: &str) { // `ast::make`. "ast/make.rs", // The documentation in string literals may contain anything for its own purposes - "ide_db/src/generated/lints.rs", - "ide_assists/src/utils/gen_trait_fn_body.rs", - "ide_assists/src/tests/generated.rs", + "ide-db/src/generated/lints.rs", + "ide-assists/src/utils/gen_trait_fn_body.rs", + "ide-assists/src/tests/generated.rs", // The tests for missing fields - "ide_diagnostics/src/handlers/missing_fields.rs", + "ide-diagnostics/src/handlers/missing_fields.rs", ]; if need_todo.iter().any(|p| path.ends_with(p)) { return; @@ -320,12 +320,12 @@ fn check_dbg(path: &Path, text: &str) { // Assists to remove `dbg!()` "handlers/remove_dbg.rs", // We have .dbg postfix - "ide_completion/src/completions/postfix.rs", - "ide_completion/src/completions/keyword.rs", - "ide_completion/src/tests/proc_macros.rs", + "ide-completion/src/completions/postfix.rs", + "ide-completion/src/completions/keyword.rs", + "ide-completion/src/tests/proc_macros.rs", // The documentation in string literals may contain anything for its own purposes - "ide_completion/src/lib.rs", - "ide_db/src/generated/lints.rs", + "ide-completion/src/lib.rs", + "ide-db/src/generated/lints.rs", // test for doc test for remove_dbg "src/tests/generated.rs", ]; @@ -351,13 +351,13 @@ fn check_test_attrs(path: &Path, text: &str) { "ide/src/runnables.rs", // A legit test which needs to be ignored, as it takes too long to run // :( - "hir_def/src/nameres/collector.rs", + "hir-def/src/nameres/collector.rs", // Long sourcegen test to generate lint completions. - "ide_db/src/tests/sourcegen_lints.rs", + "ide-db/src/tests/sourcegen_lints.rs", // Obviously needs ignore. - "ide_assists/src/handlers/toggle_ignore.rs", + "ide-assists/src/handlers/toggle_ignore.rs", // See above. - "ide_assists/src/tests/generated.rs", + "ide-assists/src/tests/generated.rs", ]; if text.contains("#[ignore") && !need_ignore.iter().any(|p| path.ends_with(p)) { 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) { let need_panic: &[&str] = &[ // This file. "slow-tests/tidy.rs", - "test_utils/src/fixture.rs", + "test-utils/src/fixture.rs", ]; if text.contains("#[should_panic") && !need_panic.iter().any(|p| path.ends_with(p)) { panic!(