@@ -17,27 +17,7 @@ note: ...which requires const-evaluating + checking `accept0::{constant#0}`...
1717 |
1818LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
1919 | ^^^^^^^^^^^^^
20- note: ...which requires caching mir of `accept0::{constant#0}` for CTFE...
21- --> $DIR/unsatisfied-const-trait-bound.rs:29:35
22- |
23- LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
24- | ^^^^^^^^^^^^^
25- note: ...which requires elaborating drops for `accept0::{constant#0}`...
26- --> $DIR/unsatisfied-const-trait-bound.rs:29:35
27- |
28- LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
29- | ^^^^^^^^^^^^^
30- note: ...which requires borrow-checking `accept0::{constant#0}`...
31- --> $DIR/unsatisfied-const-trait-bound.rs:29:35
32- |
33- LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
34- | ^^^^^^^^^^^^^
35- note: ...which requires promoting constants in MIR for `accept0::{constant#0}`...
36- --> $DIR/unsatisfied-const-trait-bound.rs:29:35
37- |
38- LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
39- | ^^^^^^^^^^^^^
40- note: ...which requires const checking `accept0::{constant#0}`...
20+ note: ...which requires checking if `accept0::{constant#0}` is a trivial const...
4121 --> $DIR/unsatisfied-const-trait-bound.rs:29:35
4222 |
4323LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
@@ -70,32 +50,12 @@ LL | fn accept0<T: Trait>(_: Container<{ T::make() }>) {}
7050 | ^^^^^^^^^^^^^
7151 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
7252
73- error[E0391]: cycle detected when caching mir of `accept1::{constant#0}` for CTFE
53+ error[E0391]: cycle detected when checking if `accept1::{constant#0}` is a trivial const
7454 --> $DIR/unsatisfied-const-trait-bound.rs:33:49
7555 |
7656LL | const fn accept1<T: [const] Trait>(_: Container<{ T::make() }>) {}
7757 | ^^^^^^^^^^^^^
7858 |
79- note: ...which requires elaborating drops for `accept1::{constant#0}`...
80- --> $DIR/unsatisfied-const-trait-bound.rs:33:49
81- |
82- LL | const fn accept1<T: [const] Trait>(_: Container<{ T::make() }>) {}
83- | ^^^^^^^^^^^^^
84- note: ...which requires borrow-checking `accept1::{constant#0}`...
85- --> $DIR/unsatisfied-const-trait-bound.rs:33:49
86- |
87- LL | const fn accept1<T: [const] Trait>(_: Container<{ T::make() }>) {}
88- | ^^^^^^^^^^^^^
89- note: ...which requires promoting constants in MIR for `accept1::{constant#0}`...
90- --> $DIR/unsatisfied-const-trait-bound.rs:33:49
91- |
92- LL | const fn accept1<T: [const] Trait>(_: Container<{ T::make() }>) {}
93- | ^^^^^^^^^^^^^
94- note: ...which requires const checking `accept1::{constant#0}`...
95- --> $DIR/unsatisfied-const-trait-bound.rs:33:49
96- |
97- LL | const fn accept1<T: [const] Trait>(_: Container<{ T::make() }>) {}
98- | ^^^^^^^^^^^^^
9959note: ...which requires building MIR for `accept1::{constant#0}`...
10060 --> $DIR/unsatisfied-const-trait-bound.rs:33:49
10161 |
@@ -126,7 +86,7 @@ note: ...which requires const-evaluating + checking `accept1::{constant#0}`...
12686 |
12787LL | const fn accept1<T: [const] Trait>(_: Container<{ T::make() }>) {}
12888 | ^^^^^^^^^^^^^
129- = note: ...which again requires caching mir of `accept1::{constant#0}` for CTFE , completing the cycle
89+ = note: ...which again requires checking if `accept1::{constant#0}` is a trivial const , completing the cycle
13090note: cycle used when const-evaluating + checking `accept1::{constant#0}`
13191 --> $DIR/unsatisfied-const-trait-bound.rs:33:49
13292 |
0 commit comments