Skip to content

Commit 0646a5d

Browse files
committed
Auto merge of #113622 - RickleAndMortimer:issue-113184-fix, r=oli-obk
add links to query documentation for E0391 This PR adds links to https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for the rustc --explain E0391 and within the compiler error itself. Fixes: #113184
2 parents a6cdd81 + a903ac5 commit 0646a5d

File tree

52 files changed

+62
-0
lines changed

Some content is hidden

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

52 files changed

+62
-0
lines changed

Diff for: compiler/rustc_error_codes/src/error_codes/E0391.md

+3

Diff for: compiler/rustc_query_system/messages.ftl

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
query_system_cycle = cycle detected when {$stack_bottom}
2+
.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
23
34
query_system_cycle_recursive_trait_alias = trait aliases cannot be recursive
45

Diff for: compiler/rustc_query_system/src/error.rs

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ pub struct Cycle {
5757
pub alias: Option<Alias>,
5858
#[subdiagnostic]
5959
pub cycle_usage: Option<CycleUsage>,
60+
#[note]
61+
pub note_span: (),
6062
}
6163

6264
#[derive(Diagnostic)]

Diff for: compiler/rustc_query_system/src/query/job.rs

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

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

Diff for: src/tools/miri/tests/fail/layout_cycle.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ error[E0391]: cycle detected when computing layout of `S<S<()>>`
22
|
33
= note: ...which requires computing layout of `<S<()> as Tr>::I`...
44
= 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
56

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

Diff for: tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ LL | | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
1919
LL | | assert!(bar(&meh) == bar(&muh));
2020
LL | | }
2121
| |_^
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
2223

2324
error: aborting due to previous error
2425

Diff for: tests/ui/associated-consts/defaults-cyclic-fail.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ note: cycle used when const-evaluating + checking `main::promoted[1]`
1515
|
1616
LL | assert_eq!(<() as Tr>::A, 0);
1717
| ^^^^^^^^^^^^^
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
1819

1920
error: aborting due to previous error
2021

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

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LL | const BAR: u32 = IMPL_REF_BAR;
2626
| ^^^^^^^^^^^^^^
2727
= 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
2828
= 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
2930

3031
error: aborting due to previous error
3132

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

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LL | const BAR: u32 = DEFAULT_REF_BAR;
2626
| ^^^^^^^^^^^^^^
2727
= note: ...which again requires elaborating drops for `FooDefault::BAR`, completing the cycle
2828
= 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
2930

3031
error: aborting due to previous error
3132

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

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LL | const BAR: u32 = TRAIT_REF_BAR;
2626
| ^^^^^^^^^^^^^^
2727
= 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
2828
= 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
2930

3031
error: aborting due to previous error
3132

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

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ LL | |
3737
LL | |
3838
LL | | fn main() {}
3939
| |____________^
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
4041

4142
error: aborting due to previous error
4243

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

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ LL | | // FIXME(inherent_associated_types): This shouldn't lead to a cycle error
3131
LL | |
3232
LL | | fn main() {}
3333
| |____________^
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
3435

3536
error: aborting due to previous error
3637

Diff for: tests/ui/associated-type-bounds/ambiguous-associated-type2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ trait Bar<T> {
77
trait Baz: Foo + Bar<Self::Item> {}
88
//~^ ERROR cycle detected when computing the super traits of `Baz` with associated type name `Item` [E0391]
99

10+
11+
1012
fn main() {}

Diff for: tests/ui/associated-type-bounds/ambiguous-associated-type2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when computing the super predicates of `Baz`
1010
|
1111
LL | trait Baz: Foo + Bar<Self::Item> {}
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
1314

1415
error: aborting due to previous error
1516

Diff for: tests/ui/associated-types/issue-20825.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when computing the super predicates of `Processor`
1010
|
1111
LL | pub trait Processor: Subscriber<Input = Self::Input> {
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
1314

1415
error: aborting due to previous error
1516

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ note: cycle used when coherence checking all impls of trait `Trait`
2020
|
2121
LL | trait Trait<T> { type Assoc; }
2222
| ^^^^^^^^^^^^^^
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
2324

2425
error: aborting due to previous error; 1 warning emitted
2526

Diff for: tests/ui/const-generics/generic_const_exprs/closures.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ note: cycle used when checking that `test` is well-formed
2020
|
2121
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
2222
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
2324

2425
error: aborting due to previous error
2526

Diff for: tests/ui/const-generics/issues/issue-83765.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ note: cycle used when computing candidate for `<LazyUpdim<'_, T, { T::DIM }, DIM
1515
|
1616
LL | trait TensorDimension {
1717
| ^^^^^^^^^^^^^^^^^^^^^
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
1819

1920
error: aborting due to previous error
2021

Diff for: tests/ui/consts/const-size_of-cycle.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ note: cycle used when checking that `Foo` is well-formed
2323
|
2424
LL | struct Foo {
2525
| ^^^^^^^^^^
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
2627

2728
error: aborting due to previous error
2829

Diff for: tests/ui/consts/issue-103790.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ note: cycle used when computing type of `S`
3434
|
3535
LL | struct S<const S: (), const S: S = { S }>;
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
3738

3839
error[E0391]: cycle detected when computing type of `S`
3940
--> $DIR/issue-103790.rs:4:1
@@ -58,6 +59,7 @@ LL | | struct S<const S: (), const S: S = { S }>;
5859
LL | |
5960
LL | | fn main() {}
6061
| |____________^
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
6163

6264
error: aborting due to 4 previous errors
6365

Diff for: tests/ui/consts/issue-36163.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ note: cycle used when simplifying constant for the type system `Foo::B::{constan
1515
|
1616
LL | B = A,
1717
| ^
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
1819

1920
error: aborting due to previous error
2021

Diff for: tests/ui/consts/issue-44415.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ note: cycle used when checking that `Foo` is well-formed
2323
|
2424
LL | struct Foo {
2525
| ^^^^^^^^^^
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
2627

2728
error: aborting due to previous error
2829

Diff for: tests/ui/consts/recursive-zst-static.default.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ LL | | fn main() {
1919
LL | | FOO
2020
LL | | }
2121
| |_^
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
2223

2324
error: aborting due to previous error
2425

Diff for: tests/ui/consts/recursive-zst-static.unleash.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ LL | | fn main() {
1919
LL | | FOO
2020
LL | | }
2121
| |_^
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
2223

2324
error: aborting due to previous error
2425

Diff for: tests/ui/consts/write-to-static-mut-in-static.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ LL | |
2727
LL | |
2828
LL | | fn main() {}
2929
| |____________^
30+
= 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
3031

3132
error: aborting due to 2 previous errors
3233

Diff for: tests/ui/cycle-trait/cycle-trait-default-type-trait.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LL | | }
1414
LL | |
1515
LL | | fn main() { }
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
1718

1819
error: aborting due to previous error
1920

Diff for: tests/ui/cycle-trait/cycle-trait-supertrait-direct.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ LL | / trait Chromosome: Chromosome {
1212
LL | |
1313
LL | | }
1414
| |_^
15+
= 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
1516

1617
error: aborting due to previous error
1718

Diff for: tests/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ note: cycle used when computing the super predicates of `A`
1515
|
1616
LL | trait A: B {
1717
| ^
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
1819

1920
error: aborting due to previous error
2021

Diff for: tests/ui/cycle-trait/issue-12511.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ LL | / trait T1 : T2 {
1717
LL | |
1818
LL | | }
1919
| |_^
20+
= 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
2021

2122
error: aborting due to previous error
2223

Diff for: tests/ui/dyn-star/param-env-region-infer.next.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ LL | | use std::fmt::Debug;
2323
LL | |
2424
LL | | fn main() {}
2525
| |____________^
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
2627

2728
error: aborting due to previous error
2829

Diff for: tests/ui/impl-trait/auto-trait-leak.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ LL | | fn send<T: Send>(_: T) {}
3333
LL | | Rc::new(String::from("foo"))
3434
LL | | }
3535
| |_^
36+
= 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
3637

3738
error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}`
3839
--> $DIR/auto-trait-leak.rs:11:16
@@ -68,6 +69,7 @@ LL | | fn send<T: Send>(_: T) {}
6869
LL | | Rc::new(String::from("foo"))
6970
LL | | }
7071
| |_^
72+
= 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
7173

7274
error: cannot check whether the hidden type of opaque type satisfies auto traits
7375
--> $DIR/auto-trait-leak.rs:21:10

Diff for: tests/ui/infinite/infinite-trait-alias-recursion.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ note: cycle used when collecting item types in top-level module
2121
|
2222
LL | trait T1 = T2;
2323
| ^^^^^^^^^^^^^^
24+
= 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
2425

2526
error: aborting due to previous error
2627

Diff for: tests/ui/infinite/infinite-type-alias-mutual-recursion.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ LL | | type X3 = X1;
2828
LL | |
2929
LL | | fn main() {}
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
3132

3233
error: aborting due to previous error
3334

Diff for: tests/ui/infinite/infinite-vec-type-recursion.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ LL | |
1616
LL | |
1717
LL | | fn main() { let b: X = Vec::new(); }
1818
| |____________________________________^
19+
= 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
1920

2021
error: aborting due to previous error
2122

Diff for: tests/ui/issues/issue-17252.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when const-evaluating + checking `main::{constant#0}`
1010
|
1111
LL | let _x: [u8; FOO]; // caused stack overflow prior to fix
1212
| ^^^
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
1314

1415
error: aborting due to previous error
1516

Diff for: tests/ui/issues/issue-20772.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when computing the super predicates of `T`
1010
|
1111
LL | trait T : Iterator<Item=Self::Item>
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
1314

1415
error: aborting due to previous error
1516

Diff for: tests/ui/issues/issue-21177.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when computing explicit predicates of `foo`
1010
|
1111
LL | fn foo<T: Trait<A = T::B>>() { }
1212
| ^^^^
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
1314

1415
error: aborting due to previous error
1516

Diff for: tests/ui/issues/issue-23302-1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when simplifying constant for the type system `X::A::{constant#
1010
|
1111
LL | A = X::A as isize,
1212
| ^^^^^^^^^^^^^
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
1314

1415
error: aborting due to previous error
1516

Diff for: tests/ui/issues/issue-23302-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when simplifying constant for the type system `Y::A::{constant#
1010
|
1111
LL | A = Y::B as isize,
1212
| ^^^^^^^^^^^^^
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
1314

1415
error: aborting due to previous error
1516

Diff for: tests/ui/issues/issue-23302-3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ note: cycle used when simplifying constant for the type system `A`
1515
|
1616
LL | const A: i32 = B;
1717
| ^^^^^^^^^^^^
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
1819

1920
error: aborting due to previous error
2021

Diff for: tests/ui/issues/issue-34373.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ LL | | fn foo(_: T) {}
2121
LL | | fn main() {
2222
LL | | }
2323
| |_^
24+
= 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
2425

2526
error: aborting due to previous error
2627

Diff for: tests/ui/recursion/issue-26548-recursion-via-normalize.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//~ ERROR cycle detected when computing layout of `core::option::Option<S>`
2+
//~| 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
23
//~| NOTE ...which requires computing layout of `S`...
34
//~| NOTE ...which requires computing layout of `core::option::Option<<S as Mirror>::It>`...
45
//~| NOTE ...which again requires computing layout of `core::option::Option<S>`, completing the cycle

Diff for: tests/ui/recursion/issue-26548-recursion-via-normalize.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ error[E0391]: cycle detected when computing layout of `core::option::Option<S>`
44
= note: ...which requires computing layout of `core::option::Option<<S as Mirror>::It>`...
55
= note: ...which again requires computing layout of `core::option::Option<S>`, completing the cycle
66
= note: cycle used when computing layout of `core::option::Option<<S as Mirror>::It>`
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
78

89
error: aborting due to previous error
910

Diff for: tests/ui/recursion/recursive-static-definition.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ LL | |
1818
LL | |
1919
LL | | fn main() {}
2020
| |____________^
21+
= 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
2122

2223
error: aborting due to previous error
2324

Diff for: tests/ui/resolve/resolve-self-in-impl.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ LL | | trait Tr<T = u8> {
5656
LL | |
5757
LL | | fn main() {}
5858
| |____________^
59+
= 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
5960

6061
error: aborting due to 6 previous errors
6162

Diff for: tests/ui/sized/recursive-type-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ note: cycle used when elaborating drops for `main`
77
|
88
LL | fn main() {
99
| ^^^^^^^^^
10+
= 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
1011

1112
error: aborting due to previous error
1213

Diff for: tests/ui/traits/trait-upcasting/cyclic-trait-resolution.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ note: cycle used when collecting item types in top-level module
1010
|
1111
LL | trait A: B + A {}
1212
| ^^^^^^^^^^^^^^^^^
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
1314

1415
error: aborting due to previous error
1516

Diff for: tests/ui/type-alias-enum-variants/self-in-enum-definition.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ LL | | V2 = Self::V1 as u8 + 1, // OK; See #50072.
6767
LL | |
6868
LL | | fn main() {}
6969
| |____________^
70+
= 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
7071

7172
error: aborting due to previous error
7273

0 commit comments

Comments
 (0)