@@ -82,7 +82,6 @@ fn files_are_tidy() {
82
82
check_dbg ( & path, & text) ;
83
83
check_test_attrs ( & path, & text) ;
84
84
check_trailing_ws ( & path, & text) ;
85
- deny_clippy ( & path, & text) ;
86
85
tidy_docs. visit ( & path, & text) ;
87
86
tidy_marks. visit ( & path, & text) ;
88
87
}
@@ -144,32 +143,6 @@ fn check_cargo_toml(path: &Path, text: String) {
144
143
}
145
144
}
146
145
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
-
173
146
#[ cfg( not( feature = "in-rust-tree" ) ) ]
174
147
#[ test]
175
148
fn check_licenses ( ) {
0 commit comments