Skip to content

Commit

Permalink
Make triggering this lint less likely 📎
Browse files Browse the repository at this point in the history
  • Loading branch information
phansch committed Oct 8, 2019
1 parent 5dfb697 commit bb4cd3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/internal_lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/custom_ice_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

0 comments on commit bb4cd3a

Please sign in to comment.