Skip to content

Commit 050acc0

Browse files
committed
ui test diff
1 parent 4ef1029 commit 050acc0

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/test/ui/impl-trait/auto-trait-leak.stderr

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: ...which requires borrow-checking `cycle1`...
99
|
1010
LL | fn cycle1() -> impl Clone {
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^
12-
note: ...which requires processing `cycle1`...
12+
note: ...which requires processing the potential const argument `cycle1`...
1313
--> $DIR/auto-trait-leak.rs:12:1
1414
|
1515
LL | fn cycle1() -> impl Clone {
@@ -19,6 +19,11 @@ note: ...which requires processing MIR for `cycle1`...
1919
|
2020
LL | fn cycle1() -> impl Clone {
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^^
22+
note: ...which requires unsafety-checking the potential const arg `cycle1`...
23+
--> $DIR/auto-trait-leak.rs:12:1
24+
|
25+
LL | fn cycle1() -> impl Clone {
26+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2227
note: ...which requires unsafety-checking `cycle1`...
2328
--> $DIR/auto-trait-leak.rs:12:1
2429
|
@@ -29,6 +34,11 @@ note: ...which requires building MIR for `cycle1`...
2934
|
3035
LL | fn cycle1() -> impl Clone {
3136
| ^^^^^^^^^^^^^^^^^^^^^^^^^
37+
note: ...which requires type-checking the potential const argument `cycle1`...
38+
--> $DIR/auto-trait-leak.rs:12:1
39+
|
40+
LL | fn cycle1() -> impl Clone {
41+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
3242
note: ...which requires type-checking `cycle1`...
3343
--> $DIR/auto-trait-leak.rs:12:1
3444
|
@@ -45,7 +55,7 @@ note: ...which requires borrow-checking `cycle2`...
4555
|
4656
LL | fn cycle2() -> impl Clone {
4757
| ^^^^^^^^^^^^^^^^^^^^^^^^^
48-
note: ...which requires processing `cycle2`...
58+
note: ...which requires processing the potential const argument `cycle2`...
4959
--> $DIR/auto-trait-leak.rs:20:1
5060
|
5161
LL | fn cycle2() -> impl Clone {
@@ -55,6 +65,11 @@ note: ...which requires processing MIR for `cycle2`...
5565
|
5666
LL | fn cycle2() -> impl Clone {
5767
| ^^^^^^^^^^^^^^^^^^^^^^^^^
68+
note: ...which requires unsafety-checking the potential const arg `cycle2`...
69+
--> $DIR/auto-trait-leak.rs:20:1
70+
|
71+
LL | fn cycle2() -> impl Clone {
72+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
5873
note: ...which requires unsafety-checking `cycle2`...
5974
--> $DIR/auto-trait-leak.rs:20:1
6075
|
@@ -65,6 +80,11 @@ note: ...which requires building MIR for `cycle2`...
6580
|
6681
LL | fn cycle2() -> impl Clone {
6782
| ^^^^^^^^^^^^^^^^^^^^^^^^^
83+
note: ...which requires type-checking the potential const argument `cycle2`...
84+
--> $DIR/auto-trait-leak.rs:20:1
85+
|
86+
LL | fn cycle2() -> impl Clone {
87+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6888
note: ...which requires type-checking `cycle2`...
6989
--> $DIR/auto-trait-leak.rs:20:1
7090
|

0 commit comments

Comments
 (0)