@@ -23,7 +23,7 @@ LL | self.eq(other)
23
23
= help: a `loop` may express intention better if this is on purpose
24
24
25
25
error: function cannot return without recursing
26
- --> $DIR/unconditional_recursion.rs:164 :5
26
+ --> $DIR/unconditional_recursion.rs:210 :5
27
27
|
28
28
LL | fn to_string(&self) -> String {
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
@@ -34,7 +34,7 @@ LL | self.to_string()
34
34
= help: a `loop` may express intention better if this is on purpose
35
35
36
36
error: function cannot return without recursing
37
- --> $DIR/unconditional_recursion.rs:173 :5
37
+ --> $DIR/unconditional_recursion.rs:219 :5
38
38
|
39
39
LL | fn to_string(&self) -> String {
40
40
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
@@ -45,7 +45,7 @@ LL | x.to_string()
45
45
= help: a `loop` may express intention better if this is on purpose
46
46
47
47
error: function cannot return without recursing
48
- --> $DIR/unconditional_recursion.rs:183 :5
48
+ --> $DIR/unconditional_recursion.rs:229 :5
49
49
|
50
50
LL | fn to_string(&self) -> String {
51
51
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
@@ -87,6 +87,34 @@ note: recursive call site
87
87
LL | self == other
88
88
| ^^^^^^^^^^^^^
89
89
90
+ error: function cannot return without recursing
91
+ --> $DIR/unconditional_recursion.rs:28:5
92
+ |
93
+ LL | / fn ne(&self, other: &Self) -> bool {
94
+ LL | | self != &Foo2::B // no error here
95
+ LL | | }
96
+ | |_____^
97
+ |
98
+ note: recursive call site
99
+ --> $DIR/unconditional_recursion.rs:29:9
100
+ |
101
+ LL | self != &Foo2::B // no error here
102
+ | ^^^^^^^^^^^^^^^^
103
+
104
+ error: function cannot return without recursing
105
+ --> $DIR/unconditional_recursion.rs:31:5
106
+ |
107
+ LL | / fn eq(&self, other: &Self) -> bool {
108
+ LL | | self == &Foo2::B // no error here
109
+ LL | | }
110
+ | |_____^
111
+ |
112
+ note: recursive call site
113
+ --> $DIR/unconditional_recursion.rs:32:9
114
+ |
115
+ LL | self == &Foo2::B // no error here
116
+ | ^^^^^^^^^^^^^^^^
117
+
90
118
error: function cannot return without recursing
91
119
--> $DIR/unconditional_recursion.rs:42:5
92
120
|
@@ -280,5 +308,22 @@ LL | impl_partial_eq!(S5);
280
308
| -------------------- in this macro invocation
281
309
= note: this error originates in the macro `impl_partial_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
282
310
283
- error: aborting due to 22 previous errors
311
+ error: function cannot return without recursing
312
+ --> $DIR/unconditional_recursion.rs:178:5
313
+ |
314
+ LL | / fn eq(&self, other: &Self) -> bool {
315
+ LL | |
316
+ LL | | let mine = &self.field;
317
+ LL | | let theirs = &other.field;
318
+ LL | | mine == theirs
319
+ LL | | }
320
+ | |_____^
321
+ |
322
+ note: recursive call site
323
+ --> $DIR/unconditional_recursion.rs:182:9
324
+ |
325
+ LL | mine == theirs
326
+ | ^^^^^^^^^^^^^^
327
+
328
+ error: aborting due to 25 previous errors
284
329
0 commit comments