deny_clippy test works with cfg_attr

This commit is contained in:
Aleksey Kladov 2021-01-01 01:58:04 +03:00
parent a485c9b21d
commit 8106893dc6

View file

@ -139,7 +139,7 @@ fn deny_clippy(path: &PathBuf, text: &String) {
return; return;
} }
if text.contains("[\u{61}llow(clippy") { if text.contains("\u{61}llow(clippy") {
panic!( panic!(
"\n\nallowing lints is forbidden: {}. "\n\nallowing lints is forbidden: {}.
rust-analyzer intentionally doesn't check clippy on CI. rust-analyzer intentionally doesn't check clippy on CI.