Skip to content

Commit a54a668

Browse files
moved note as unspanned note, moved note to the bottom of the msg
1 parent e6e8892 commit a54a668

File tree

47 files changed

+54
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+54
-244
lines changed

compiler/rustc_query_system/src/error.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ pub struct CycleUsage {
4646
#[derive(Diagnostic)]
4747
#[diag(query_system_cycle, code = "E0391")]
4848
pub struct Cycle {
49-
#[note]
5049
#[primary_span]
5150
pub span: Span,
5251
pub stack_bottom: String,
@@ -58,6 +57,8 @@ pub struct Cycle {
5857
pub alias: Option<Alias>,
5958
#[subdiagnostic]
6059
pub cycle_usage: Option<CycleUsage>,
60+
#[note]
61+
pub note_span: (),
6162
}
6263

6364
#[derive(Diagnostic)]

compiler/rustc_query_system/src/query/job.rs

+1
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ pub(crate) fn report_cycle<'a, D: DepKind>(
607607
alias,
608608
cycle_usage: cycle_usage,
609609
stack_count,
610+
note_span: (),
610611
};
611612

612613
cycle_diag.into_diagnostic(&sess.parse_sess.span_diagnostic)

src/tools/miri/tests/fail/layout_cycle.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[E0391]: cycle detected when computing layout of `S<S<()>>`
22
|
3-
= 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
43
= note: ...which requires computing layout of `<S<()> as Tr>::I`...
54
= note: ...which again requires computing layout of `S<S<()>>`, completing the cycle
5+
= 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
66

77
error: post-monomorphization error: a cycle occurred during layout computation
88
--> RUSTLIB/core/src/mem/mod.rs:LL:CC

tests/ui/associated-consts/defaults-cyclic-fail.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `Tr::A`
44
LL | const A: u8 = Self::B;
55
| ^^^^^^^
66
|
7-
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
8-
--> $DIR/defaults-cyclic-fail.rs:5:19
9-
|
10-
LL | const A: u8 = Self::B;
11-
| ^^^^^^^
127
note: ...which requires const-evaluating + checking `Tr::B`...
138
--> $DIR/defaults-cyclic-fail.rs:8:19
149
|
@@ -20,6 +15,7 @@ note: cycle used when const-evaluating + checking `main::promoted[1]`
2015
|
2116
LL | assert_eq!(<() as Tr>::A, 0);
2217
| ^^^^^^^^^^^^^
18+
= 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
2319

2420
error: aborting due to previous error
2521

tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-249
44
LL | const BAR: u32 = IMPL_REF_BAR;
55
| ^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:22
9-
|
10-
LL | const BAR: u32 = IMPL_REF_BAR;
11-
| ^^^^^^^^^^^^
127
note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
138
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
149
|
@@ -31,6 +26,7 @@ LL | const BAR: u32 = IMPL_REF_BAR;
3126
| ^^^^^^^^^^^^^^
3227
= note: ...which again requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`, completing the cycle
3328
= note: cycle used when running analysis passes on this crate
29+
= 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
3430

3531
error: aborting due to previous error
3632

tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when elaborating drops for `FooDefault::BAR`
44
LL | const BAR: u32 = DEFAULT_REF_BAR;
55
| ^^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:22
9-
|
10-
LL | const BAR: u32 = DEFAULT_REF_BAR;
11-
| ^^^^^^^^^^^^^^^
127
note: ...which requires const-evaluating + checking `DEFAULT_REF_BAR`...
138
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1
149
|
@@ -31,6 +26,7 @@ LL | const BAR: u32 = DEFAULT_REF_BAR;
3126
| ^^^^^^^^^^^^^^
3227
= note: ...which again requires elaborating drops for `FooDefault::BAR`, completing the cycle
3328
= note: cycle used when running analysis passes on this crate
29+
= 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
3430

3531
error: aborting due to previous error
3632

tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-249
44
LL | const BAR: u32 = TRAIT_REF_BAR;
55
| ^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:22
9-
|
10-
LL | const BAR: u32 = TRAIT_REF_BAR;
11-
| ^^^^^^^^^^^^^
127
note: ...which requires const-evaluating + checking `TRAIT_REF_BAR`...
138
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
149
|
@@ -31,6 +26,7 @@ LL | const BAR: u32 = TRAIT_REF_BAR;
3126
| ^^^^^^^^^^^^^^
3227
= note: ...which again requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 11:28>::BAR`, completing the cycle
3328
= note: cycle used when running analysis passes on this crate
29+
= 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
3430

3531
error: aborting due to previous error
3632

tests/ui/associated-inherent-types/bugs/cycle-iat-inside-of-adt.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing predicates of `Foo`
44
LL | struct Foo {
55
| ^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/cycle-iat-inside-of-adt.rs:7:1
9-
|
10-
LL | struct Foo {
11-
| ^^^^^^^^^^
127
note: ...which requires computing predicates of `Foo`...
138
--> $DIR/cycle-iat-inside-of-adt.rs:7:1
149
|
@@ -42,6 +37,7 @@ LL | |
4237
LL | |
4338
LL | | fn main() {}
4439
| |____________^
40+
= 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
4541

4642
error: aborting due to previous error
4743

tests/ui/associated-inherent-types/bugs/cycle-iat-inside-of-where-predicate.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing predicates of `user`
44
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
9-
|
10-
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
note: ...which requires computing predicates of `user`...
138
--> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
149
|
@@ -36,6 +31,7 @@ LL | | // FIXME(inherent_associated_types): This shouldn't lead to a cycle error
3631
LL | |
3732
LL | | fn main() {}
3833
| |____________^
34+
= 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
3935

4036
error: aborting due to previous error
4137

tests/ui/associated-type-bounds/ambiguous-associated-type2.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ error[E0391]: cycle detected when computing the super traits of `Baz` with assoc
44
LL | trait Baz: Foo + Bar<Self::Item> {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/ambiguous-associated-type2.rs:7:1
9-
|
10-
LL | trait Baz: Foo + Bar<Self::Item> {}
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
= note: ...which immediately requires computing the super traits of `Baz` with associated type name `Item` again
138
note: cycle used when computing the super predicates of `Baz`
149
--> $DIR/ambiguous-associated-type2.rs:7:1
1510
|
1611
LL | trait Baz: Foo + Bar<Self::Item> {}
1712
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
= 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
1814

1915
error: aborting due to previous error
2016

tests/ui/associated-types/issue-20825.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ error[E0391]: cycle detected when computing the super traits of `Processor` with
44
LL | pub trait Processor: Subscriber<Input = Self::Input> {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/issue-20825.rs:5:1
9-
|
10-
LL | pub trait Processor: Subscriber<Input = Self::Input> {
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
= note: ...which immediately requires computing the super traits of `Processor` with associated type name `Input` again
138
note: cycle used when computing the super predicates of `Processor`
149
--> $DIR/issue-20825.rs:5:1
1510
|
1611
LL | pub trait Processor: Subscriber<Input = Self::Input> {
1712
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
= 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
1814

1915
error: aborting due to previous error
2016

tests/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@ error[E0391]: cycle detected when building specialization graph of trait `Trait`
1414
LL | trait Trait<T> { type Assoc; }
1515
| ^^^^^^^^^^^^^^
1616
|
17-
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
18-
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
19-
|
20-
LL | trait Trait<T> { type Assoc; }
21-
| ^^^^^^^^^^^^^^
2217
= note: ...which immediately requires building specialization graph of trait `Trait` again
2318
note: cycle used when coherence checking all impls of trait `Trait`
2419
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
2520
|
2621
LL | trait Trait<T> { type Assoc; }
2722
| ^^^^^^^^^^^^^^
23+
= 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
2824

2925
error: aborting due to previous error; 1 warning emitted
3026

tests/ui/const-generics/generic_const_exprs/closures.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when building an abstract representation for `test:
44
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
55
| ^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/closures.rs:3:35
9-
|
10-
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
11-
| ^^^^^^^^^^^^^
127
note: ...which requires building THIR for `test::{constant#0}`...
138
--> $DIR/closures.rs:3:35
149
|
@@ -25,6 +20,7 @@ note: cycle used when checking that `test` is well-formed
2520
|
2621
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
2722
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+
= 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
2824

2925
error: aborting due to previous error
3026

tests/ui/const-generics/issues/issue-83765.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when resolving instance `<LazyUpdim<'_, T, <T as Te
44
LL | const DIM: usize;
55
| ^^^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/issue-83765.rs:5:5
9-
|
10-
LL | const DIM: usize;
11-
| ^^^^^^^^^^^^^^^^
127
note: ...which requires computing candidate for `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>`...
138
--> $DIR/issue-83765.rs:4:1
149
|
@@ -20,6 +15,7 @@ note: cycle used when computing candidate for `<LazyUpdim<'_, T, { T::DIM }, DIM
2015
|
2116
LL | trait TensorDimension {
2217
| ^^^^^^^^^^^^^^^^^^^^^
18+
= 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
2319

2420
error: aborting due to previous error
2521

tests/ui/consts/const-size_of-cycle.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when evaluating type-level constant
44
LL | bytes: [u8; std::mem::size_of::<Foo>()]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/const-size_of-cycle.rs:4:17
9-
|
10-
LL | bytes: [u8; std::mem::size_of::<Foo>()]
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
127
note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`...
138
--> $DIR/const-size_of-cycle.rs:4:17
149
|
@@ -28,6 +23,7 @@ note: cycle used when checking that `Foo` is well-formed
2823
|
2924
LL | struct Foo {
3025
| ^^^^^^^^^^
26+
= 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
3127

3228
error: aborting due to previous error
3329

tests/ui/consts/issue-103790.stderr

+2-10
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,20 @@ error[E0391]: cycle detected when computing type of `S::S`
2828
LL | struct S<const S: (), const S: S = { S }>;
2929
| ^
3030
|
31-
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
32-
--> $DIR/issue-103790.rs:4:32
33-
|
34-
LL | struct S<const S: (), const S: S = { S }>;
35-
| ^
3631
= note: ...which immediately requires computing type of `S::S` again
3732
note: cycle used when computing type of `S`
3833
--> $DIR/issue-103790.rs:4:1
3934
|
4035
LL | struct S<const S: (), const S: S = { S }>;
4136
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37+
= 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
4238

4339
error[E0391]: cycle detected when computing type of `S`
4440
--> $DIR/issue-103790.rs:4:1
4541
|
4642
LL | struct S<const S: (), const S: S = { S }>;
4743
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4844
|
49-
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
50-
--> $DIR/issue-103790.rs:4:1
51-
|
52-
LL | struct S<const S: (), const S: S = { S }>;
53-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5445
note: ...which requires computing type of `S::S`...
5546
--> $DIR/issue-103790.rs:4:32
5647
|
@@ -68,6 +59,7 @@ LL | | struct S<const S: (), const S: S = { S }>;
6859
LL | |
6960
LL | | fn main() {}
7061
| |____________^
62+
= 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
7163

7264
error: aborting due to 4 previous errors
7365

tests/ui/consts/issue-36163.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `Foo::B::{constant
44
LL | B = A,
55
| ^
66
|
7-
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
8-
--> $DIR/issue-36163.rs:4:9
9-
|
10-
LL | B = A,
11-
| ^
127
note: ...which requires const-evaluating + checking `A`...
138
--> $DIR/issue-36163.rs:1:18
149
|
@@ -20,6 +15,7 @@ note: cycle used when simplifying constant for the type system `Foo::B::{constan
2015
|
2116
LL | B = A,
2217
| ^
18+
= 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
2319

2420
error: aborting due to previous error
2521

tests/ui/consts/issue-44415.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when evaluating type-level constant
44
LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/issue-44415.rs:6:17
9-
|
10-
LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`...
138
--> $DIR/issue-44415.rs:6:17
149
|
@@ -28,6 +23,7 @@ note: cycle used when checking that `Foo` is well-formed
2823
|
2924
LL | struct Foo {
3025
| ^^^^^^^^^^
26+
= 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
3127

3228
error: aborting due to previous error
3329

tests/ui/consts/recursive-zst-static.default.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `FOO`
44
LL | static FOO: () = FOO;
55
| ^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/recursive-zst-static.rs:10:1
9-
|
10-
LL | static FOO: () = FOO;
11-
| ^^^^^^^^^^^^^^
127
note: ...which requires const-evaluating + checking `FOO`...
138
--> $DIR/recursive-zst-static.rs:10:18
149
|
@@ -24,6 +19,7 @@ LL | | fn main() {
2419
LL | | FOO
2520
LL | | }
2621
| |_^
22+
= 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
2723

2824
error: aborting due to previous error
2925

tests/ui/consts/recursive-zst-static.unleash.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `FOO`
44
LL | static FOO: () = FOO;
55
| ^^^^^^^^^^^^^^
66
|
7-
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
8-
--> $DIR/recursive-zst-static.rs:10:1
9-
|
10-
LL | static FOO: () = FOO;
11-
| ^^^^^^^^^^^^^^
127
note: ...which requires const-evaluating + checking `FOO`...
138
--> $DIR/recursive-zst-static.rs:10:18
149
|
@@ -24,6 +19,7 @@ LL | | fn main() {
2419
LL | | FOO
2520
LL | | }
2621
| |_^
22+
= 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
2723

2824
error: aborting due to previous error
2925

0 commit comments

Comments
 (0)