1- error: function cannot return without recurring
1+ error: function cannot return without recursing
22 --> $DIR/lint-unconditional-recursion.rs:14:1
33 |
4- LL | fn foo() { //~ ERROR function cannot return without recurring
5- | ^^^^^^^^ cannot return without recurring
4+ LL | fn foo() { //~ ERROR function cannot return without recursing
5+ | ^^^^^^^^ cannot return without recursing
66LL | foo();
77 | ----- recursive call site
88 |
@@ -13,11 +13,11 @@ LL | #![deny(unconditional_recursion)]
1313 | ^^^^^^^^^^^^^^^^^^^^^^^
1414 = help: a `loop` may express intention better if this is on purpose
1515
16- error: function cannot return without recurring
16+ error: function cannot return without recursing
1717 --> $DIR/lint-unconditional-recursion.rs:24:1
1818 |
19- LL | fn baz() { //~ ERROR function cannot return without recurring
20- | ^^^^^^^^ cannot return without recurring
19+ LL | fn baz() { //~ ERROR function cannot return without recursing
20+ | ^^^^^^^^ cannot return without recursing
2121LL | if true {
2222LL | baz()
2323 | ----- recursive call site
@@ -27,11 +27,11 @@ LL | baz()
2727 |
2828 = help: a `loop` may express intention better if this is on purpose
2929
30- error: function cannot return without recurring
30+ error: function cannot return without recursing
3131 --> $DIR/lint-unconditional-recursion.rs:36:1
3232 |
33- LL | fn quz() -> bool { //~ ERROR function cannot return without recurring
34- | ^^^^^^^^^^^^^^^^ cannot return without recurring
33+ LL | fn quz() -> bool { //~ ERROR function cannot return without recursing
34+ | ^^^^^^^^^^^^^^^^ cannot return without recursing
3535LL | if true {
3636LL | while quz() {}
3737 | ----- recursive call site
@@ -41,113 +41,113 @@ LL | loop { quz(); }
4141 |
4242 = help: a `loop` may express intention better if this is on purpose
4343
44- error: function cannot return without recurring
44+ error: function cannot return without recursing
4545 --> $DIR/lint-unconditional-recursion.rs:47:5
4646 |
47- LL | fn bar(&self) { //~ ERROR function cannot return without recurring
48- | ^^^^^^^^^^^^^ cannot return without recurring
47+ LL | fn bar(&self) { //~ ERROR function cannot return without recursing
48+ | ^^^^^^^^^^^^^ cannot return without recursing
4949LL | self.bar()
5050 | ---------- recursive call site
5151 |
5252 = help: a `loop` may express intention better if this is on purpose
5353
54- error: function cannot return without recurring
54+ error: function cannot return without recursing
5555 --> $DIR/lint-unconditional-recursion.rs:53:5
5656 |
57- LL | fn bar(&self) { //~ ERROR function cannot return without recurring
58- | ^^^^^^^^^^^^^ cannot return without recurring
57+ LL | fn bar(&self) { //~ ERROR function cannot return without recursing
58+ | ^^^^^^^^^^^^^ cannot return without recursing
5959LL | loop {
6060LL | self.bar()
6161 | ---------- recursive call site
6262 |
6363 = help: a `loop` may express intention better if this is on purpose
6464
65- error: function cannot return without recurring
65+ error: function cannot return without recursing
6666 --> $DIR/lint-unconditional-recursion.rs:62:5
6767 |
68- LL | fn bar(&self) { //~ ERROR function cannot return without recurring
69- | ^^^^^^^^^^^^^ cannot return without recurring
68+ LL | fn bar(&self) { //~ ERROR function cannot return without recursing
69+ | ^^^^^^^^^^^^^ cannot return without recursing
7070LL | 0.bar()
7171 | ------- recursive call site
7272 |
7373 = help: a `loop` may express intention better if this is on purpose
7474
75- error: function cannot return without recurring
75+ error: function cannot return without recursing
7676 --> $DIR/lint-unconditional-recursion.rs:75:5
7777 |
78- LL | fn bar(&self) { //~ ERROR function cannot return without recurring
79- | ^^^^^^^^^^^^^ cannot return without recurring
78+ LL | fn bar(&self) { //~ ERROR function cannot return without recursing
79+ | ^^^^^^^^^^^^^ cannot return without recursing
8080LL | Foo2::bar(self)
8181 | --------------- recursive call site
8282 |
8383 = help: a `loop` may express intention better if this is on purpose
8484
85- error: function cannot return without recurring
85+ error: function cannot return without recursing
8686 --> $DIR/lint-unconditional-recursion.rs:81:5
8787 |
88- LL | fn bar(&self) { //~ ERROR function cannot return without recurring
89- | ^^^^^^^^^^^^^ cannot return without recurring
88+ LL | fn bar(&self) { //~ ERROR function cannot return without recursing
89+ | ^^^^^^^^^^^^^ cannot return without recursing
9090LL | loop {
9191LL | Foo2::bar(self)
9292 | --------------- recursive call site
9393 |
9494 = help: a `loop` may express intention better if this is on purpose
9595
96- error: function cannot return without recurring
96+ error: function cannot return without recursing
9797 --> $DIR/lint-unconditional-recursion.rs:91:5
9898 |
99- LL | fn qux(&self) { //~ ERROR function cannot return without recurring
100- | ^^^^^^^^^^^^^ cannot return without recurring
99+ LL | fn qux(&self) { //~ ERROR function cannot return without recursing
100+ | ^^^^^^^^^^^^^ cannot return without recursing
101101LL | self.qux();
102102 | ---------- recursive call site
103103 |
104104 = help: a `loop` may express intention better if this is on purpose
105105
106- error: function cannot return without recurring
106+ error: function cannot return without recursing
107107 --> $DIR/lint-unconditional-recursion.rs:96:5
108108 |
109- LL | fn as_ref(&self) -> &Self { //~ ERROR function cannot return without recurring
110- | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recurring
109+ LL | fn as_ref(&self) -> &Self { //~ ERROR function cannot return without recursing
110+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
111111LL | Baz::as_ref(self)
112112 | ----------------- recursive call site
113113 |
114114 = help: a `loop` may express intention better if this is on purpose
115115
116- error: function cannot return without recurring
116+ error: function cannot return without recursing
117117 --> $DIR/lint-unconditional-recursion.rs:103:5
118118 |
119- LL | fn default() -> Baz { //~ ERROR function cannot return without recurring
120- | ^^^^^^^^^^^^^^^^^^^ cannot return without recurring
119+ LL | fn default() -> Baz { //~ ERROR function cannot return without recursing
120+ | ^^^^^^^^^^^^^^^^^^^ cannot return without recursing
121121LL | let x = Default::default();
122122 | ------------------ recursive call site
123123 |
124124 = help: a `loop` may express intention better if this is on purpose
125125
126- error: function cannot return without recurring
126+ error: function cannot return without recursing
127127 --> $DIR/lint-unconditional-recursion.rs:112:5
128128 |
129- LL | fn deref(&self) -> &() { //~ ERROR function cannot return without recurring
130- | ^^^^^^^^^^^^^^^^^^^^^^ cannot return without recurring
129+ LL | fn deref(&self) -> &() { //~ ERROR function cannot return without recursing
130+ | ^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
131131LL | &**self
132132 | ------ recursive call site
133133 |
134134 = help: a `loop` may express intention better if this is on purpose
135135
136- error: function cannot return without recurring
136+ error: function cannot return without recursing
137137 --> $DIR/lint-unconditional-recursion.rs:119:5
138138 |
139- LL | fn index(&self, x: usize) -> &Baz { //~ ERROR function cannot return without recurring
140- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recurring
139+ LL | fn index(&self, x: usize) -> &Baz { //~ ERROR function cannot return without recursing
140+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
141141LL | &self[x]
142142 | ------- recursive call site
143143 |
144144 = help: a `loop` may express intention better if this is on purpose
145145
146- error: function cannot return without recurring
146+ error: function cannot return without recursing
147147 --> $DIR/lint-unconditional-recursion.rs:128:5
148148 |
149- LL | fn deref(&self) -> &Baz { //~ ERROR function cannot return without recurring
150- | ^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recurring
149+ LL | fn deref(&self) -> &Baz { //~ ERROR function cannot return without recursing
150+ | ^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
151151LL | self.as_ref()
152152 | ---- recursive call site
153153 |
0 commit comments