2023-12-28 12:33:07 -06:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:47:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | fn ne(&self, other: &Self) -> bool {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
|
|
|
|
LL |
|
|
|
|
LL | self.ne(other)
|
|
|
|
| -------------- recursive call site
|
|
|
|
|
|
|
|
|
= help: a `loop` may express intention better if this is on purpose
|
|
|
|
= note: `-D unconditional-recursion` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(unconditional_recursion)]`
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:51:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | fn eq(&self, other: &Self) -> bool {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
|
|
|
|
LL |
|
|
|
|
LL | self.eq(other)
|
|
|
|
| -------------- recursive call site
|
|
|
|
|
|
|
|
|
= help: a `loop` may express intention better if this is on purpose
|
|
|
|
|
2024-01-11 10:27:03 -06:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:216:5
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | fn to_string(&self) -> String {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
|
|
|
|
LL |
|
|
|
|
LL | self.to_string()
|
|
|
|
| ---------------- recursive call site
|
|
|
|
|
|
|
|
|
= help: a `loop` may express intention better if this is on purpose
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:226:5
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | fn to_string(&self) -> String {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
|
|
|
|
...
|
|
|
|
LL | x.to_string()
|
|
|
|
| ------------- recursive call site
|
|
|
|
|
|
|
|
|
= help: a `loop` may express intention better if this is on purpose
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:237:5
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | fn to_string(&self) -> String {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
|
|
|
|
LL |
|
|
|
|
LL | (self as &Self).to_string()
|
|
|
|
| --------------------------- recursive call site
|
|
|
|
|
|
|
|
|
= help: a `loop` may express intention better if this is on purpose
|
|
|
|
|
2023-12-28 12:33:07 -06:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:17:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self != other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:19:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self != other
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
= note: `-D clippy::unconditional-recursion` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unconditional_recursion)]`
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:21:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self == other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:23:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self == other
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2024-01-11 10:27:03 -06:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:33:5
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | | self != &Foo2::B // no error here
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:34:9
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | self != &Foo2::B // no error here
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:36:5
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | | self == &Foo2::B // no error here
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:37:9
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | self == &Foo2::B // no error here
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-12-28 12:33:07 -06:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:47:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self.ne(other)
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:49:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self.ne(other)
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:51:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self.eq(other)
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:53:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self.eq(other)
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:95:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other != self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:97:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | other != self
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:99:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other == self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:101:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | other == self
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:109:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other != other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:111:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | other != other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:111:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | other != other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[deny(clippy::eq_op)]` on by default
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:113:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other == other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:115:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | other == other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:115:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | other == other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:122:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, _other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self != self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:124:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self != self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:124:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self != self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:126:5
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, _other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self == self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:128:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self == self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:128:9
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self == self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:154:13
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
2024-02-27 08:25:18 -06:00
|
|
|
LL | |
|
2023-12-28 12:33:07 -06:00
|
|
|
LL | | self == other
|
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
...
|
|
|
|
LL | impl_partial_eq!(S5);
|
|
|
|
| -------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:156:17
|
2023-12-28 12:33:07 -06:00
|
|
|
|
|
|
|
|
LL | self == other
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | impl_partial_eq!(S5);
|
|
|
|
| -------------------- in this macro invocation
|
|
|
|
= note: this error originates in the macro `impl_partial_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2024-01-11 10:27:03 -06:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:183:5
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | let mine = &self.field;
|
|
|
|
LL | | let theirs = &other.field;
|
|
|
|
LL | | mine == theirs
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:187:9
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | mine == theirs
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:252:5
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | / fn new() -> Self {
|
|
|
|
LL | |
|
|
|
|
LL | | Self::default()
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:254:9
|
2024-01-11 10:27:03 -06:00
|
|
|
|
|
|
|
|
LL | Self::default()
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2024-01-25 12:17:36 -06:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:291:5
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | let mine = &self.field;
|
|
|
|
LL | | let theirs = &other.field;
|
|
|
|
LL | | mine.eq(theirs)
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:295:9
|
2024-01-25 12:17:36 -06:00
|
|
|
|
|
|
|
|
LL | mine.eq(theirs)
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2024-03-21 16:20:40 -05:00
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:362:5
|
2024-03-21 16:20:40 -05:00
|
|
|
|
|
|
|
|
LL | / fn from(f: BadFromTy1<'a>) -> Self {
|
|
|
|
LL | | f.into()
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:363:9
|
2024-03-21 16:20:40 -05:00
|
|
|
|
|
|
|
|
LL | f.into()
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:371:5
|
2024-03-21 16:20:40 -05:00
|
|
|
|
|
|
|
|
LL | / fn from(f: BadFromTy2<'a>) -> Self {
|
|
|
|
LL | | Into::into(f)
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2024-10-03 09:32:51 -05:00
|
|
|
--> tests/ui/unconditional_recursion.rs:372:9
|
2024-03-21 16:20:40 -05:00
|
|
|
|
|
|
|
|
LL | Into::into(f)
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2024-01-25 12:17:36 -06:00
|
|
|
error: aborting due to 27 previous errors
|
2023-12-28 12:33:07 -06:00
|
|
|
|