@@ -9,7 +9,7 @@ note: ...which requires borrow-checking `cycle1`...
99 |
1010LL | 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 |
1515LL | fn cycle1() -> impl Clone {
@@ -19,6 +19,11 @@ note: ...which requires processing MIR for `cycle1`...
1919 |
2020LL | 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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
2227note: ...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 |
3035LL | 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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
3242note: ...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 |
4656LL | 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 |
5161LL | fn cycle2() -> impl Clone {
@@ -55,6 +65,11 @@ note: ...which requires processing MIR for `cycle2`...
5565 |
5666LL | 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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
5873note: ...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 |
6681LL | 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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
6888note: ...which requires type-checking `cycle2`...
6989 --> $DIR/auto-trait-leak.rs:20:1
7090 |
0 commit comments