2023-12-08 23:12:32 +00:00
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:42:5
|
2023-12-08 23:12:32 +00: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
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:46:5
|
2023-12-08 23:12:32 +00: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
|
|
|
|
|
2023-12-18 15:44:07 +00:00
|
|
|
error: function cannot return without recursing
|
2023-12-31 10:01:47 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:210:5
|
2023-12-18 15:44:07 +00: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
|
2023-12-31 10:01:47 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:219:5
|
2023-12-18 15:44:07 +00: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
|
2023-12-31 10:01:47 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:229:5
|
2023-12-18 15:44:07 +00: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-08 23:12:32 +00:00
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:12:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self != other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:14:9
|
2023-12-08 23:12:32 +00: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
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:16:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self == other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:18:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self == other
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2023-12-31 10:01:47 +00:00
|
|
|
error: function cannot return without recursing
|
|
|
|
--> $DIR/unconditional_recursion.rs:28:5
|
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | | self != &Foo2::B // no error here
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
|
|
|
--> $DIR/unconditional_recursion.rs:29:9
|
|
|
|
|
|
|
|
|
LL | self != &Foo2::B // no error here
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
|
|
|
--> $DIR/unconditional_recursion.rs:31:5
|
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | | self == &Foo2::B // no error here
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
|
|
|
--> $DIR/unconditional_recursion.rs:32:9
|
|
|
|
|
|
|
|
|
LL | self == &Foo2::B // no error here
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-12-08 23:12:32 +00:00
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:42:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self.ne(other)
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:44:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self.ne(other)
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: parameter is only used in recursion
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:42:18
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | fn ne(&self, other: &Self) -> bool {
|
|
|
|
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
|
|
|
|
|
|
|
|
|
note: parameter used here
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:44:17
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self.ne(other)
|
|
|
|
| ^^^^^
|
|
|
|
= note: `-D clippy::only-used-in-recursion` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::only_used_in_recursion)]`
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:46:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self.eq(other)
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:48:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self.eq(other)
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: parameter is only used in recursion
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:46:18
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | fn eq(&self, other: &Self) -> bool {
|
|
|
|
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
|
|
|
|
|
|
|
|
|
note: parameter used here
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:48:17
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self.eq(other)
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:90:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other != self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:92:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | other != self
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:94:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other == self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:96:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | other == self
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:104:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other != other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:106:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | other != other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:106:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | other != other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[deny(clippy::eq_op)]` on by default
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:108:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | other == other
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:110:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | other == other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:110:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | other == other
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:117:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn ne(&self, _other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self != self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:119:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self != self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:119:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self != self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: function cannot return without recursing
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:121:5
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | / fn eq(&self, _other: &Self) -> bool {
|
|
|
|
LL | |
|
|
|
|
LL | | self == self
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: recursive call site
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:123:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self == self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2023-12-16 17:15:32 +00:00
|
|
|
--> $DIR/unconditional_recursion.rs:123:9
|
2023-12-08 23:12:32 +00:00
|
|
|
|
|
|
|
|
LL | self == self
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2023-12-16 17:15:32 +00:00
|
|
|
error: function cannot return without recursing
|
|
|
|
--> $DIR/unconditional_recursion.rs:149:13
|
|
|
|
|
|
|
|
|
LL | / fn eq(&self, other: &Self) -> bool {
|
|
|
|
LL | | self == other
|
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
...
|
|
|
|
LL | impl_partial_eq!(S5);
|
|
|
|
| -------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
note: recursive call site
|
|
|
|
--> $DIR/unconditional_recursion.rs:150:17
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2023-12-31 10:01:47 +00:00
|
|
|
error: function cannot return without recursing
|
|
|
|
--> $DIR/unconditional_recursion.rs:178:5
|
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/unconditional_recursion.rs:182:9
|
|
|
|
|
|
|
|
|
LL | mine == theirs
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 25 previous errors
|
2023-12-08 23:12:32 +00:00
|
|
|
|