@@ -41,7 +41,7 @@ note: ...which requires processing `cycle2::{{opaque}}#0`...
41
41
LL | fn cycle2() -> impl Clone {
42
42
| ^^^^^^^^^^
43
43
note: ...which requires borrow-checking `cycle2`...
44
- --> $DIR/auto-trait-leak.rs:21 :1
44
+ --> $DIR/auto-trait-leak.rs:22 :1
45
45
|
46
46
LL | fn cycle2() -> impl Clone {
47
47
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -51,22 +51,22 @@ note: ...which requires processing `cycle2`...
51
51
LL | fn cycle2() -> impl Clone {
52
52
| ^^^^^^^^^^^^^^^^^^^^^^^^^
53
53
note: ...which requires processing `cycle2`...
54
- --> $DIR/auto-trait-leak.rs:21 :1
54
+ --> $DIR/auto-trait-leak.rs:22 :1
55
55
|
56
56
LL | fn cycle2() -> impl Clone {
57
57
| ^^^^^^^^^^^^^^^^^^^^^^^^^
58
58
note: ...which requires unsafety-checking `cycle2`...
59
- --> $DIR/auto-trait-leak.rs:21 :1
59
+ --> $DIR/auto-trait-leak.rs:22 :1
60
60
|
61
61
LL | fn cycle2() -> impl Clone {
62
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^
63
63
note: ...which requires building MIR for...
64
- --> $DIR/auto-trait-leak.rs:21 :1
64
+ --> $DIR/auto-trait-leak.rs:22 :1
65
65
|
66
66
LL | fn cycle2() -> impl Clone {
67
67
| ^^^^^^^^^^^^^^^^^^^^^^^^^
68
68
note: ...which requires type-checking `cycle2`...
69
- --> $DIR/auto-trait-leak.rs:21 :1
69
+ --> $DIR/auto-trait-leak.rs:22 :1
70
70
|
71
71
LL | fn cycle2() -> impl Clone {
72
72
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -127,13 +127,33 @@ note: ...which requires processing `cycle2::{{opaque}}#0`...
127
127
LL | fn cycle2() -> impl Clone {
128
128
| ^^^^^^^^^^
129
129
note: ...which requires borrow-checking `cycle2`...
130
- --> $DIR/auto-trait-leak.rs:21 :1
130
+ --> $DIR/auto-trait-leak.rs:22 :1
131
131
|
132
132
LL | fn cycle2() -> impl Clone {
133
133
| ^^^^^^^^^^^^^^^^^^^^^^^^^
134
134
note: ...which requires processing `cycle2`...
135
135
--> $DIR/auto-trait-leak.rs:22:1
136
136
|
137
+ LL | fn cycle2() -> impl Clone {
138
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
139
+ note: ...which requires processing `cycle2`...
140
+ --> $DIR/auto-trait-leak.rs:22:1
141
+ |
142
+ LL | fn cycle2() -> impl Clone {
143
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
144
+ note: ...which requires unsafety-checking `cycle2`...
145
+ --> $DIR/auto-trait-leak.rs:22:1
146
+ |
147
+ LL | fn cycle2() -> impl Clone {
148
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
149
+ note: ...which requires building MIR for...
150
+ --> $DIR/auto-trait-leak.rs:22:1
151
+ |
152
+ LL | fn cycle2() -> impl Clone {
153
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
154
+ note: ...which requires type-checking `cycle2`...
155
+ --> $DIR/auto-trait-leak.rs:22:1
156
+ |
137
157
LL | fn cycle2() -> impl Clone {
138
158
| ^^^^^^^^^^^^^^^^^^^^^^^^^
139
159
= note: ...which again requires processing `cycle1::{{opaque}}#0`, completing the cycle
@@ -155,9 +175,34 @@ error[E0391]: cycle detected when processing `cycle1::{{opaque}}#0`
155
175
LL | fn cycle1() -> impl Clone {
156
176
| ^^^^^^^^^^
157
177
|
178
+ note: ...which requires borrow-checking `cycle1`...
179
+ --> $DIR/auto-trait-leak.rs:12:1
180
+ |
181
+ LL | fn cycle1() -> impl Clone {
182
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
183
+ note: ...which requires processing `cycle1`...
184
+ --> $DIR/auto-trait-leak.rs:12:1
185
+ |
186
+ LL | fn cycle1() -> impl Clone {
187
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
158
188
note: ...which requires processing `cycle1`...
159
189
--> $DIR/auto-trait-leak.rs:12:1
160
190
|
191
+ LL | fn cycle1() -> impl Clone {
192
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
193
+ note: ...which requires unsafety-checking `cycle1`...
194
+ --> $DIR/auto-trait-leak.rs:12:1
195
+ |
196
+ LL | fn cycle1() -> impl Clone {
197
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
198
+ note: ...which requires building MIR for...
199
+ --> $DIR/auto-trait-leak.rs:12:1
200
+ |
201
+ LL | fn cycle1() -> impl Clone {
202
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
203
+ note: ...which requires type-checking `cycle1`...
204
+ --> $DIR/auto-trait-leak.rs:12:1
205
+ |
161
206
LL | fn cycle1() -> impl Clone {
162
207
| ^^^^^^^^^^^^^^^^^^^^^^^^^
163
208
= note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
@@ -166,28 +211,33 @@ note: ...which requires processing `cycle2::{{opaque}}#0`...
166
211
|
167
212
LL | fn cycle2() -> impl Clone {
168
213
| ^^^^^^^^^^
214
+ note: ...which requires borrow-checking `cycle2`...
215
+ --> $DIR/auto-trait-leak.rs:22:1
216
+ |
217
+ LL | fn cycle2() -> impl Clone {
218
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
169
219
note: ...which requires processing `cycle2`...
170
220
--> $DIR/auto-trait-leak.rs:22:1
171
221
|
172
222
LL | fn cycle2() -> impl Clone {
173
223
| ^^^^^^^^^^^^^^^^^^^^^^^^^
174
224
note: ...which requires processing `cycle2`...
175
- --> $DIR/auto-trait-leak.rs:21 :1
225
+ --> $DIR/auto-trait-leak.rs:22 :1
176
226
|
177
227
LL | fn cycle2() -> impl Clone {
178
228
| ^^^^^^^^^^^^^^^^^^^^^^^^^
179
229
note: ...which requires unsafety-checking `cycle2`...
180
- --> $DIR/auto-trait-leak.rs:21 :1
230
+ --> $DIR/auto-trait-leak.rs:22 :1
181
231
|
182
232
LL | fn cycle2() -> impl Clone {
183
233
| ^^^^^^^^^^^^^^^^^^^^^^^^^
184
234
note: ...which requires building MIR for...
185
- --> $DIR/auto-trait-leak.rs:21 :1
235
+ --> $DIR/auto-trait-leak.rs:22 :1
186
236
|
187
237
LL | fn cycle2() -> impl Clone {
188
238
| ^^^^^^^^^^^^^^^^^^^^^^^^^
189
239
note: ...which requires type-checking `cycle2`...
190
- --> $DIR/auto-trait-leak.rs:21 :1
240
+ --> $DIR/auto-trait-leak.rs:22 :1
191
241
|
192
242
LL | fn cycle2() -> impl Clone {
193
243
| ^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments