Skip to content

Commit

Permalink
Ignore unconditional_recursion clippy lint due to false positive
Browse files Browse the repository at this point in the history
rust-lang/rust-clippy#12133

    warning: function cannot return without recursing
      --> src/lifetime.rs:90:5
       |
    90 | /     fn eq(&self, other: &Lifetime) -> bool {
    91 | |         self.ident.eq(&other.ident)
    92 | |     }
       | |_____^
       |
    note: recursive call site
      --> src/lifetime.rs:91:9
       |
    91 |         self.ident.eq(&other.ident)
       |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unconditional_recursion
       = note: `-W clippy::unconditional-recursion` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::unconditional_recursion)]`
  • Loading branch information
dtolnay committed Jan 12, 2024
1 parent a108467 commit fcff12e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref,
clippy::unconditional_recursion, // https://github.com/rust-lang/rust-clippy/issues/12133
clippy::uninhabited_references,
clippy::uninlined_format_args,
clippy::unnecessary_box_returns,
Expand Down

0 comments on commit fcff12e

Please sign in to comment.