Skip to content

Commit 4908c69

Browse files
committed
Ignore unconditional_recursion clippy lint due to false positive
rust-lang/rust-clippy#12133 warning: function cannot return without recursing --> gen/build/src/cargo.rs:91:5 | 91 | / fn eq(&self, rhs: &Self) -> bool { 92 | | Lookup::new(&self.0).eq(Lookup::new(&rhs.0)) 93 | | } | |_____^ | note: recursive call site --> gen/build/src/cargo.rs:92:9 | 92 | Lookup::new(&self.0).eq(Lookup::new(&rhs.0)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = 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)]`
1 parent cc6fc0d commit 4908c69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gen/build/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
clippy::too_many_arguments,
7777
clippy::too_many_lines,
7878
clippy::toplevel_ref_arg,
79+
clippy::unconditional_recursion, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/12133
7980
clippy::uninlined_format_args,
8081
clippy::upper_case_acronyms,
8182
clippy::wrong_self_convention, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983

0 commit comments

Comments
 (0)