fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
11.8 KiB462 linesraw
1error[E0658]: attributes on expressions are experimental
2  --> $DIR/move_closure.rs:12:17
3   |
4LL |     let mut c = #[rustc_capture_analysis]
5   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
8   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
9
10error[E0658]: attributes on expressions are experimental
11  --> $DIR/move_closure.rs:30:17
12   |
13LL |     let mut c = #[rustc_capture_analysis]
14   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
15   |
16   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
17   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
18
19error[E0658]: attributes on expressions are experimental
20  --> $DIR/move_closure.rs:51:17
21   |
22LL |     let mut c = #[rustc_capture_analysis]
23   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
24   |
25   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
26   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
27
28error[E0658]: attributes on expressions are experimental
29  --> $DIR/move_closure.rs:74:17
30   |
31LL |     let mut c = #[rustc_capture_analysis]
32   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
33   |
34   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
35   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
36
37error[E0658]: attributes on expressions are experimental
38  --> $DIR/move_closure.rs:96:17
39   |
40LL |     let mut c = #[rustc_capture_analysis]
41   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
42   |
43   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
44   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
45
46error[E0658]: attributes on expressions are experimental
47  --> $DIR/move_closure.rs:117:13
48   |
49LL |     let c = #[rustc_capture_analysis]
50   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
51   |
52   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
53   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
54
55error[E0658]: attributes on expressions are experimental
56  --> $DIR/move_closure.rs:133:13
57   |
58LL |     let c = #[rustc_capture_analysis]
59   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
60   |
61   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
62   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
63
64error[E0658]: attributes on expressions are experimental
65  --> $DIR/move_closure.rs:150:13
66   |
67LL |     let c = #[rustc_capture_analysis]
68   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
69   |
70   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
71   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
72
73error[E0658]: attributes on expressions are experimental
74  --> $DIR/move_closure.rs:172:13
75   |
76LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
77   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
78   |
79   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
80   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
81
82error[E0658]: attributes on expressions are experimental
83  --> $DIR/move_closure.rs:189:13
84   |
85LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
86   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
87   |
88   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
89   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
90
91error[E0658]: attributes on expressions are experimental
92  --> $DIR/move_closure.rs:202:13
93   |
94LL |     let c = #[rustc_capture_analysis] move || x;
95   |             ^^^^^^^^^^^^^^^^^^^^^^^^^
96   |
97   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
98   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
99
100error: First Pass analysis includes:
101  --> $DIR/move_closure.rs:202:39
102   |
103LL |     let c = #[rustc_capture_analysis] move || x;
104   |                                       ^^^^^^^^^
105   |
106note: Capturing x[] -> ImmBorrow
107  --> $DIR/move_closure.rs:202:47
108   |
109LL |     let c = #[rustc_capture_analysis] move || x;
110   |                                               ^
111
112error: Min Capture analysis includes:
113  --> $DIR/move_closure.rs:202:39
114   |
115LL |     let c = #[rustc_capture_analysis] move || x;
116   |                                       ^^^^^^^^^
117   |
118note: Min Capture x[] -> ByValue
119  --> $DIR/move_closure.rs:202:47
120   |
121LL |     let c = #[rustc_capture_analysis] move || x;
122   |                                               ^
123
124error: First Pass analysis includes:
125  --> $DIR/move_closure.rs:15:5
126   |
127LL | /     move || {
128LL | |
129LL | |
130LL | |         t.0.0 = "new S".into();
131LL | |
132LL | |
133LL | |     };
134   | |_____^
135   |
136note: Capturing t[(0, 0),(0, 0)] -> MutBorrow
137  --> $DIR/move_closure.rs:18:9
138   |
139LL |         t.0.0 = "new S".into();
140   |         ^^^^^
141
142error: Min Capture analysis includes:
143  --> $DIR/move_closure.rs:15:5
144   |
145LL | /     move || {
146LL | |
147LL | |
148LL | |         t.0.0 = "new S".into();
149LL | |
150LL | |
151LL | |     };
152   | |_____^
153   |
154note: Min Capture t[(0, 0),(0, 0)] -> ByValue
155  --> $DIR/move_closure.rs:18:9
156   |
157LL |         t.0.0 = "new S".into();
158   |         ^^^^^
159
160error: First Pass analysis includes:
161  --> $DIR/move_closure.rs:33:5
162   |
163LL | /     move || {
164LL | |
165LL | |
166LL | |         *ref_s += 10;
167LL | |
168LL | |
169LL | |     };
170   | |_____^
171   |
172note: Capturing ref_s[Deref] -> MutBorrow
173  --> $DIR/move_closure.rs:36:9
174   |
175LL |         *ref_s += 10;
176   |         ^^^^^^
177
178error: Min Capture analysis includes:
179  --> $DIR/move_closure.rs:33:5
180   |
181LL | /     move || {
182LL | |
183LL | |
184LL | |         *ref_s += 10;
185LL | |
186LL | |
187LL | |     };
188   | |_____^
189   |
190note: Min Capture ref_s[] -> ByValue
191  --> $DIR/move_closure.rs:36:9
192   |
193LL |         *ref_s += 10;
194   |         ^^^^^^
195
196error: First Pass analysis includes:
197  --> $DIR/move_closure.rs:54:5
198   |
199LL | /     move || {
200LL | |
201LL | |
202LL | |         t.0.0 = "new s".into();
203LL | |
204LL | |
205LL | |     };
206   | |_____^
207   |
208note: Capturing t[(0, 0),Deref,(0, 0)] -> MutBorrow
209  --> $DIR/move_closure.rs:57:9
210   |
211LL |         t.0.0 = "new s".into();
212   |         ^^^^^
213
214error: Min Capture analysis includes:
215  --> $DIR/move_closure.rs:54:5
216   |
217LL | /     move || {
218LL | |
219LL | |
220LL | |         t.0.0 = "new s".into();
221LL | |
222LL | |
223LL | |     };
224   | |_____^
225   |
226note: Min Capture t[(0, 0)] -> ByValue
227  --> $DIR/move_closure.rs:57:9
228   |
229LL |         t.0.0 = "new s".into();
230   |         ^^^^^
231
232error: First Pass analysis includes:
233  --> $DIR/move_closure.rs:77:5
234   |
235LL | /     move || {
236LL | |
237LL | |
238LL | |         let _t = t.0.0;
239LL | |
240LL | |
241LL | |     };
242   | |_____^
243   |
244note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
245  --> $DIR/move_closure.rs:80:18
246   |
247LL |         let _t = t.0.0;
248   |                  ^^^^^
249
250error: Min Capture analysis includes:
251  --> $DIR/move_closure.rs:77:5
252   |
253LL | /     move || {
254LL | |
255LL | |
256LL | |         let _t = t.0.0;
257LL | |
258LL | |
259LL | |     };
260   | |_____^
261   |
262note: Min Capture t[(0, 0)] -> ByValue
263  --> $DIR/move_closure.rs:80:18
264   |
265LL |         let _t = t.0.0;
266   |                  ^^^^^
267
268error: First Pass analysis includes:
269  --> $DIR/move_closure.rs:99:5
270   |
271LL | /     move || {
272LL | |
273LL | |
274LL | |         let _t = t.0.0;
275LL | |
276LL | |
277LL | |     };
278   | |_____^
279   |
280note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
281  --> $DIR/move_closure.rs:102:18
282   |
283LL |         let _t = t.0.0;
284   |                  ^^^^^
285
286error: Min Capture analysis includes:
287  --> $DIR/move_closure.rs:99:5
288   |
289LL | /     move || {
290LL | |
291LL | |
292LL | |         let _t = t.0.0;
293LL | |
294LL | |
295LL | |     };
296   | |_____^
297   |
298note: Min Capture t[(0, 0)] -> ByValue
299  --> $DIR/move_closure.rs:102:18
300   |
301LL |         let _t = t.0.0;
302   |                  ^^^^^
303
304error: First Pass analysis includes:
305  --> $DIR/move_closure.rs:120:5
306   |
307LL | /     move || {
308LL | |
309LL | |
310LL | |         let _t = b.0;
311LL | |
312LL | |
313LL | |     };
314   | |_____^
315   |
316note: Capturing b[Deref,(0, 0)] -> ImmBorrow
317  --> $DIR/move_closure.rs:123:18
318   |
319LL |         let _t = b.0;
320   |                  ^^^
321
322error: Min Capture analysis includes:
323  --> $DIR/move_closure.rs:120:5
324   |
325LL | /     move || {
326LL | |
327LL | |
328LL | |         let _t = b.0;
329LL | |
330LL | |
331LL | |     };
332   | |_____^
333   |
334note: Min Capture b[] -> ByValue
335  --> $DIR/move_closure.rs:123:18
336   |
337LL |         let _t = b.0;
338   |                  ^^^
339
340error: First Pass analysis includes:
341  --> $DIR/move_closure.rs:136:5
342   |
343LL | /     move || {
344LL | |
345LL | |
346LL | |         println!("{}", b.0);
347LL | |
348LL | |
349LL | |     };
350   | |_____^
351   |
352note: Capturing b[Deref,(0, 0)] -> ImmBorrow
353  --> $DIR/move_closure.rs:139:24
354   |
355LL |         println!("{}", b.0);
356   |                        ^^^
357
358error: Min Capture analysis includes:
359  --> $DIR/move_closure.rs:136:5
360   |
361LL | /     move || {
362LL | |
363LL | |
364LL | |         println!("{}", b.0);
365LL | |
366LL | |
367LL | |     };
368   | |_____^
369   |
370note: Min Capture b[] -> ByValue
371  --> $DIR/move_closure.rs:139:24
372   |
373LL |         println!("{}", b.0);
374   |                        ^^^
375
376error: First Pass analysis includes:
377  --> $DIR/move_closure.rs:153:5
378   |
379LL | /     move || {
380LL | |
381LL | |
382LL | |         println!("{}", t.1.0);
383LL | |
384LL | |
385LL | |     };
386   | |_____^
387   |
388note: Capturing t[(1, 0),Deref,(0, 0)] -> ImmBorrow
389  --> $DIR/move_closure.rs:156:24
390   |
391LL |         println!("{}", t.1.0);
392   |                        ^^^^^
393
394error: Min Capture analysis includes:
395  --> $DIR/move_closure.rs:153:5
396   |
397LL | /     move || {
398LL | |
399LL | |
400LL | |         println!("{}", t.1.0);
401LL | |
402LL | |
403LL | |     };
404   | |_____^
405   |
406note: Min Capture t[(1, 0)] -> ByValue
407  --> $DIR/move_closure.rs:156:24
408   |
409LL |         println!("{}", t.1.0);
410   |                        ^^^^^
411
412error: First Pass analysis includes:
413  --> $DIR/move_closure.rs:172:39
414   |
415LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
416   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
417   |
418note: Capturing box_p_foo[Deref,Deref,(0, 0)] -> MutBorrow
419  --> $DIR/move_closure.rs:172:47
420   |
421LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
422   |                                               ^^^^^^^^^^^
423
424error: Min Capture analysis includes:
425  --> $DIR/move_closure.rs:172:39
426   |
427LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
428   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
429   |
430note: Min Capture box_p_foo[] -> ByValue
431  --> $DIR/move_closure.rs:172:47
432   |
433LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
434   |                                               ^^^^^^^^^^^
435
436error: First Pass analysis includes:
437  --> $DIR/move_closure.rs:189:39
438   |
439LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
440   |                                       ^^^^^^^^^^^^^^^^^^^^^
441   |
442note: Capturing p_foo[Deref,Deref,(0, 0)] -> MutBorrow
443  --> $DIR/move_closure.rs:189:47
444   |
445LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
446   |                                               ^^^^^^^
447
448error: Min Capture analysis includes:
449  --> $DIR/move_closure.rs:189:39
450   |
451LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
452   |                                       ^^^^^^^^^^^^^^^^^^^^^
453   |
454note: Min Capture p_foo[] -> ByValue
455  --> $DIR/move_closure.rs:189:47
456   |
457LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
458   |                                               ^^^^^^^
459
460error: aborting due to 33 previous errors
461
462For more information about this error, try `rustc --explain E0658`.