mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Make triggering this lint less likely 📎
This commit is contained in:
parent
5029dfe403
commit
ad6d8a4700
@ -336,7 +336,7 @@ impl EarlyLintPass for ProduceIce {
|
||||
fn is_trigger_fn(fn_kind: FnKind<'_>) -> bool {
|
||||
match fn_kind {
|
||||
FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => {
|
||||
ident.name.as_str() == "should_trigger_an_ice_in_clippy"
|
||||
ident.name.as_str() == "it_looks_like_you_are_trying_to_kill_clippy"
|
||||
},
|
||||
FnKind::Closure(..) => false,
|
||||
}
|
||||
|
@ -4,6 +4,6 @@
|
||||
|
||||
#![deny(clippy::internal)]
|
||||
|
||||
fn should_trigger_an_ice_in_clippy() {}
|
||||
fn it_looks_like_you_are_trying_to_kill_clippy() {}
|
||||
|
||||
fn main() {}
|
||||
|
Loading…
Reference in New Issue
Block a user