diff --git a/clippy_lints/src/utils/internal_lints.rs b/clippy_lints/src/utils/internal_lints.rs index 0ce4ee268274..e130fe9f1112 100644 --- a/clippy_lints/src/utils/internal_lints.rs +++ b/clippy_lints/src/utils/internal_lints.rs @@ -338,7 +338,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, } diff --git a/tests/ui/custom_ice_message.rs b/tests/ui/custom_ice_message.rs index 7a5d5ada53d8..1ceecf38032a 100644 --- a/tests/ui/custom_ice_message.rs +++ b/tests/ui/custom_ice_message.rs @@ -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() {}