@@ -82,7 +82,6 @@ fn files_are_tidy() {
8282 check_dbg ( & path, & text) ;
8383 check_test_attrs ( & path, & text) ;
8484 check_trailing_ws ( & path, & text) ;
85- deny_clippy ( & path, & text) ;
8685 tidy_docs. visit ( & path, & text) ;
8786 tidy_marks. visit ( & path, & text) ;
8887 }
@@ -144,32 +143,6 @@ fn check_cargo_toml(path: &Path, text: String) {
144143 }
145144}
146145
147- fn deny_clippy ( path : & Path , text : & str ) {
148- let ignore = & [
149- // The documentation in string literals may contain anything for its own purposes
150- "ide-db/src/generated/lints.rs" ,
151- // The tests test clippy lint hovers
152- "ide/src/hover/tests.rs" ,
153- // The tests test clippy lint completions
154- "ide-completion/src/tests/attribute.rs" ,
155- ] ;
156- if ignore. iter ( ) . any ( |p| path. ends_with ( p) ) {
157- return ;
158- }
159-
160- if text. contains ( "\u{61} llow(clippy" ) {
161- panic ! (
162- "\n \n allowing lints is forbidden: {}.
163- rust-analyzer intentionally doesn't check clippy on CI.
164- You can allow lint globally via `xtask clippy`.
165- See https://github.com/rust-lang/rust-clippy/issues/5537 for discussion.
166-
167- " ,
168- path. display( )
169- )
170- }
171- }
172-
173146#[ cfg( not( feature = "in-rust-tree" ) ) ]
174147#[ test]
175148fn check_licenses ( ) {
0 commit comments