Skip to content

Commit ad6d8a4

Browse files
committed
Make triggering this lint less likely 📎
1 parent 5029dfe commit ad6d8a4

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
@@ -336,7 +336,7 @@ impl EarlyLintPass for ProduceIce {
336336
fn is_trigger_fn(fn_kind: FnKind<'_>) -> bool {
337337
match fn_kind {
338338
FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => {
339-
ident.name.as_str() == "should_trigger_an_ice_in_clippy"
339+
ident.name.as_str() == "it_looks_like_you_are_trying_to_kill_clippy"
340340
},
341341
FnKind::Closure(..) => false,
342342
}

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)