Skip to content

Commit bb4cd3a

Browse files
committed
Make triggering this lint less likely 📎
1 parent 5dfb697 commit bb4cd3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/utils/internal_lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ impl EarlyLintPass for ProduceIce {
338338
fn is_trigger_fn(fn_kind: FnKind<'_>) -> bool {
339339
match fn_kind {
340340
FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => {
341-
ident.name.as_str() == "should_trigger_an_ice_in_clippy"
341+
ident.name.as_str() == "it_looks_like_you_are_trying_to_kill_clippy"
342342
},
343343
FnKind::Closure(..) => false,
344344
}

tests/ui/custom_ice_message.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
#![deny(clippy::internal)]
66

7-
fn should_trigger_an_ice_in_clippy() {}
7+
fn it_looks_like_you_are_trying_to_kill_clippy() {}
88

99
fn main() {}

0 commit comments

Comments
 (0)