1
- error[E0391]: cycle detected when evaluating constant for MIR opt/codegen `IMPL_REF_BAR`
1
+ error[E0391]: cycle detected when const- evaluating + checking `IMPL_REF_BAR`
2
2
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
3
3
|
4
4
LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
- note: ...which requires evaluating constant for MIR opt/codegen `IMPL_REF_BAR`...
8
- --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
9
- |
10
- LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
11
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
- note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
13
- --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
14
- |
15
- LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
16
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
- <<<<<<< HEAD
18
- = note: ...which requires normalizing `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
19
- note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
20
- --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
21
- |
22
- LL | const BAR: u32 = IMPL_REF_BAR;
23
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
- note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
25
- ||||||| parent of ab70bbeec72... Use ValTree in all type level constants
26
- note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
27
- =======
28
- note: ...which requires evaluating constant for MIR opt/codegen `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
29
- >>>>>>> ab70bbeec72... Use ValTree in all type level constants
30
- --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
31
- |
32
- LL | const BAR: u32 = IMPL_REF_BAR;
33
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
7
note: ...which requires const-evaluating + checking `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
35
8
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
36
9
|
@@ -41,15 +14,17 @@ note: ...which requires caching mir of `<impl at $DIR/issue-24949-assoc-const-st
41
14
|
42
15
LL | const BAR: u32 = IMPL_REF_BAR;
43
16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
- <<<<<<< HEAD
45
- = note: ...which requires normalizing `IMPL_REF_BAR`...
46
- = note: ...which again requires simplifying constant for the type system `IMPL_REF_BAR`, completing the cycle
47
- ||||||| parent of ab70bbeec72... Use ValTree in all type level constants
48
- = note: ...which again requires simplifying constant for the type system `IMPL_REF_BAR`, completing the cycle
49
- =======
50
- = note: ...which again requires evaluating constant for MIR opt/codegen `IMPL_REF_BAR`, completing the cycle
51
- >>>>>>> ab70bbeec72... Use ValTree in all type level constants
52
- = note: cycle used when running analysis passes on this crate
17
+ note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
18
+ --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
19
+ |
20
+ LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
21
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
+ = note: ...which again requires const-evaluating + checking `IMPL_REF_BAR`, completing the cycle
23
+ note: cycle used when evaluating constant for MIR opt/codegen `IMPL_REF_BAR`
24
+ --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
25
+ |
26
+ LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
27
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53
28
54
29
error: aborting due to previous error
55
30
0 commit comments