1
Fork 0

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
This commit is contained in:
bors 2023-07-20 03:18:41 +00:00
commit 0646a5d1aa
52 changed files with 62 additions and 0 deletions

View file

@ -14,3 +14,6 @@ trait SecondTrait : FirstTrait {
The previous example contains a circular dependency between two traits: The previous example contains a circular dependency between two traits:
`FirstTrait` depends on `SecondTrait` which itself depends on `FirstTrait`. `FirstTrait` depends on `SecondTrait` which itself depends on `FirstTrait`.
See https://rustc-dev-guide.rust-lang.org/overview.html#queries and
https://rustc-dev-guide.rust-lang.org/query.html for more information.

View file

@ -1,4 +1,5 @@
query_system_cycle = cycle detected when {$stack_bottom} query_system_cycle = cycle detected when {$stack_bottom}
.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
query_system_cycle_recursive_trait_alias = trait aliases cannot be recursive query_system_cycle_recursive_trait_alias = trait aliases cannot be recursive

View file

@ -57,6 +57,8 @@ pub struct Cycle {
pub alias: Option<Alias>, pub alias: Option<Alias>,
#[subdiagnostic] #[subdiagnostic]
pub cycle_usage: Option<CycleUsage>, pub cycle_usage: Option<CycleUsage>,
#[note]
pub note_span: (),
} }
#[derive(Diagnostic)] #[derive(Diagnostic)]

View file

@ -608,6 +608,7 @@ pub(crate) fn report_cycle<'a, D: DepKind>(
alias, alias,
cycle_usage: cycle_usage, cycle_usage: cycle_usage,
stack_count, stack_count,
note_span: (),
}; };
cycle_diag.into_diagnostic(&sess.parse_sess.span_diagnostic) cycle_diag.into_diagnostic(&sess.parse_sess.span_diagnostic)

View file

@ -2,6 +2,7 @@ error[E0391]: cycle detected when computing layout of `S<S<()>>`
| |
= note: ...which requires computing layout of `<S<()> as Tr>::I`... = note: ...which requires computing layout of `<S<()> as Tr>::I`...
= note: ...which again requires computing layout of `S<S<()>>`, completing the cycle = note: ...which again requires computing layout of `S<S<()>>`, completing the cycle
= 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
error: post-monomorphization error: a cycle occurred during layout computation error: post-monomorphization error: a cycle occurred during layout computation
--> RUSTLIB/core/src/mem/mod.rs:LL:CC --> RUSTLIB/core/src/mem/mod.rs:LL:CC

View file

@ -19,6 +19,7 @@ LL | | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
LL | | assert!(bar(&meh) == bar(&muh)); LL | | assert!(bar(&meh) == bar(&muh));
LL | | } LL | | }
| |_^ | |_^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -15,6 +15,7 @@ note: cycle used when const-evaluating + checking `main::promoted[1]`
| |
LL | assert_eq!(<() as Tr>::A, 0); LL | assert_eq!(<() as Tr>::A, 0);
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -26,6 +26,7 @@ LL | const BAR: u32 = IMPL_REF_BAR;
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= 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 = 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
= note: cycle used when running analysis passes on this crate = note: cycle used when running analysis passes on this crate
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -26,6 +26,7 @@ LL | const BAR: u32 = DEFAULT_REF_BAR;
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= note: ...which again requires elaborating drops for `FooDefault::BAR`, completing the cycle = note: ...which again requires elaborating drops for `FooDefault::BAR`, completing the cycle
= note: cycle used when running analysis passes on this crate = note: cycle used when running analysis passes on this crate
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -26,6 +26,7 @@ LL | const BAR: u32 = TRAIT_REF_BAR;
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= 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 = 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
= note: cycle used when running analysis passes on this crate = note: cycle used when running analysis passes on this crate
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -37,6 +37,7 @@ LL | |
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -31,6 +31,7 @@ LL | | // FIXME(inherent_associated_types): This shouldn't lead to a cycle error
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -7,4 +7,6 @@ trait Bar<T> {
trait Baz: Foo + Bar<Self::Item> {} trait Baz: Foo + Bar<Self::Item> {}
//~^ ERROR cycle detected when computing the super traits of `Baz` with associated type name `Item` [E0391] //~^ ERROR cycle detected when computing the super traits of `Baz` with associated type name `Item` [E0391]
fn main() {} fn main() {}

View file

@ -10,6 +10,7 @@ note: cycle used when computing the super predicates of `Baz`
| |
LL | trait Baz: Foo + Bar<Self::Item> {} LL | trait Baz: Foo + Bar<Self::Item> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,6 +10,7 @@ note: cycle used when computing the super predicates of `Processor`
| |
LL | pub trait Processor: Subscriber<Input = Self::Input> { LL | pub trait Processor: Subscriber<Input = Self::Input> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -20,6 +20,7 @@ note: cycle used when coherence checking all impls of trait `Trait`
| |
LL | trait Trait<T> { type Assoc; } LL | trait Trait<T> { type Assoc; }
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= 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
error: aborting due to previous error; 1 warning emitted error: aborting due to previous error; 1 warning emitted

View file

@ -20,6 +20,7 @@ note: cycle used when checking that `test` is well-formed
| |
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {} LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -15,6 +15,7 @@ note: cycle used when computing candidate for `<LazyUpdim<'_, T, { T::DIM }, DIM
| |
LL | trait TensorDimension { LL | trait TensorDimension {
| ^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -23,6 +23,7 @@ note: cycle used when checking that `Foo` is well-formed
| |
LL | struct Foo { LL | struct Foo {
| ^^^^^^^^^^ | ^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -34,6 +34,7 @@ note: cycle used when computing type of `S`
| |
LL | struct S<const S: (), const S: S = { S }>; LL | struct S<const S: (), const S: S = { S }>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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
error[E0391]: cycle detected when computing type of `S` error[E0391]: cycle detected when computing type of `S`
--> $DIR/issue-103790.rs:4:1 --> $DIR/issue-103790.rs:4:1
@ -58,6 +59,7 @@ LL | | struct S<const S: (), const S: S = { S }>;
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to 4 previous errors error: aborting due to 4 previous errors

View file

@ -15,6 +15,7 @@ note: cycle used when simplifying constant for the type system `Foo::B::{constan
| |
LL | B = A, LL | B = A,
| ^ | ^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -23,6 +23,7 @@ note: cycle used when checking that `Foo` is well-formed
| |
LL | struct Foo { LL | struct Foo {
| ^^^^^^^^^^ | ^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -19,6 +19,7 @@ LL | | fn main() {
LL | | FOO LL | | FOO
LL | | } LL | | }
| |_^ | |_^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -19,6 +19,7 @@ LL | | fn main() {
LL | | FOO LL | | FOO
LL | | } LL | | }
| |_^ | |_^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -27,6 +27,7 @@ LL | |
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to 2 previous errors error: aborting due to 2 previous errors

View file

@ -14,6 +14,7 @@ LL | | }
LL | | LL | |
LL | | fn main() { } LL | | fn main() { }
| |_____________^ | |_____________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -12,6 +12,7 @@ LL | / trait Chromosome: Chromosome {
LL | | LL | |
LL | | } LL | | }
| |_^ | |_^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -15,6 +15,7 @@ note: cycle used when computing the super predicates of `A`
| |
LL | trait A: B { LL | trait A: B {
| ^ | ^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -17,6 +17,7 @@ LL | / trait T1 : T2 {
LL | | LL | |
LL | | } LL | | }
| |_^ | |_^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -23,6 +23,7 @@ LL | | use std::fmt::Debug;
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -33,6 +33,7 @@ LL | | fn send<T: Send>(_: T) {}
LL | | Rc::new(String::from("foo")) LL | | Rc::new(String::from("foo"))
LL | | } LL | | }
| |_^ | |_^
= 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
error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}` error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}`
--> $DIR/auto-trait-leak.rs:11:16 --> $DIR/auto-trait-leak.rs:11:16
@ -68,6 +69,7 @@ LL | | fn send<T: Send>(_: T) {}
LL | | Rc::new(String::from("foo")) LL | | Rc::new(String::from("foo"))
LL | | } LL | | }
| |_^ | |_^
= 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
error: cannot check whether the hidden type of opaque type satisfies auto traits error: cannot check whether the hidden type of opaque type satisfies auto traits
--> $DIR/auto-trait-leak.rs:21:10 --> $DIR/auto-trait-leak.rs:21:10

View file

@ -21,6 +21,7 @@ note: cycle used when collecting item types in top-level module
| |
LL | trait T1 = T2; LL | trait T1 = T2;
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -28,6 +28,7 @@ LL | | type X3 = X1;
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -16,6 +16,7 @@ LL | |
LL | | LL | |
LL | | fn main() { let b: X = Vec::new(); } LL | | fn main() { let b: X = Vec::new(); }
| |____________________________________^ | |____________________________________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,6 +10,7 @@ note: cycle used when const-evaluating + checking `main::{constant#0}`
| |
LL | let _x: [u8; FOO]; // caused stack overflow prior to fix LL | let _x: [u8; FOO]; // caused stack overflow prior to fix
| ^^^ | ^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,6 +10,7 @@ note: cycle used when computing the super predicates of `T`
| |
LL | trait T : Iterator<Item=Self::Item> LL | trait T : Iterator<Item=Self::Item>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,6 +10,7 @@ note: cycle used when computing explicit predicates of `foo`
| |
LL | fn foo<T: Trait<A = T::B>>() { } LL | fn foo<T: Trait<A = T::B>>() { }
| ^^^^ | ^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,6 +10,7 @@ note: cycle used when simplifying constant for the type system `X::A::{constant#
| |
LL | A = X::A as isize, LL | A = X::A as isize,
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,6 +10,7 @@ note: cycle used when simplifying constant for the type system `Y::A::{constant#
| |
LL | A = Y::B as isize, LL | A = Y::B as isize,
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -15,6 +15,7 @@ note: cycle used when simplifying constant for the type system `A`
| |
LL | const A: i32 = B; LL | const A: i32 = B;
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -21,6 +21,7 @@ LL | | fn foo(_: T) {}
LL | | fn main() { LL | | fn main() {
LL | | } LL | | }
| |_^ | |_^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -1,4 +1,5 @@
//~ ERROR cycle detected when computing layout of `core::option::Option<S>` //~ ERROR cycle detected when computing layout of `core::option::Option<S>`
//~| 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
//~| NOTE ...which requires computing layout of `S`... //~| NOTE ...which requires computing layout of `S`...
//~| NOTE ...which requires computing layout of `core::option::Option<<S as Mirror>::It>`... //~| NOTE ...which requires computing layout of `core::option::Option<<S as Mirror>::It>`...
//~| NOTE ...which again requires computing layout of `core::option::Option<S>`, completing the cycle //~| NOTE ...which again requires computing layout of `core::option::Option<S>`, completing the cycle

View file

@ -4,6 +4,7 @@ error[E0391]: cycle detected when computing layout of `core::option::Option<S>`
= note: ...which requires computing layout of `core::option::Option<<S as Mirror>::It>`... = note: ...which requires computing layout of `core::option::Option<<S as Mirror>::It>`...
= note: ...which again requires computing layout of `core::option::Option<S>`, completing the cycle = note: ...which again requires computing layout of `core::option::Option<S>`, completing the cycle
= note: cycle used when computing layout of `core::option::Option<<S as Mirror>::It>` = note: cycle used when computing layout of `core::option::Option<<S as Mirror>::It>`
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -18,6 +18,7 @@ LL | |
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -56,6 +56,7 @@ LL | | trait Tr<T = u8> {
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to 6 previous errors error: aborting due to 6 previous errors

View file

@ -7,6 +7,7 @@ note: cycle used when elaborating drops for `main`
| |
LL | fn main() { LL | fn main() {
| ^^^^^^^^^ | ^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -10,6 +10,7 @@ note: cycle used when collecting item types in top-level module
| |
LL | trait A: B + A {} LL | trait A: B + A {}
| ^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -67,6 +67,7 @@ LL | | V2 = Self::V1 as u8 + 1, // OK; See #50072.
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: aborting due to previous error error: aborting due to previous error

View file

@ -16,6 +16,7 @@ note: cycle used when checking item types in module `m`
| |
LL | mod m { LL | mod m {
| ^^^^^ | ^^^^^
= 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
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
--> $DIR/auto-trait-leakage3.rs:7:20 --> $DIR/auto-trait-leakage3.rs:7:20
@ -34,6 +35,7 @@ note: cycle used when checking item types in module `m`
| |
LL | mod m { LL | mod m {
| ^^^^^ | ^^^^^
= 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
error: cannot check whether the hidden type of `auto_trait_leakage3[211d]::m::Foo::{opaque#0}` satisfies auto traits error: cannot check whether the hidden type of `auto_trait_leakage3[211d]::m::Foo::{opaque#0}` satisfies auto traits
--> $DIR/auto-trait-leakage3.rs:16:17 --> $DIR/auto-trait-leakage3.rs:16:17

View file

@ -16,6 +16,7 @@ note: cycle used when checking item types in module `m`
| |
LL | mod m { LL | mod m {
| ^^^^^ | ^^^^^
= 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
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
--> $DIR/inference-cycle.rs:5:20 --> $DIR/inference-cycle.rs:5:20
@ -34,6 +35,7 @@ note: cycle used when checking item types in module `m`
| |
LL | mod m { LL | mod m {
| ^^^^^ | ^^^^^
= 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
error: cannot check whether the hidden type of `inference_cycle[4ecc]::m::Foo::{opaque#0}` satisfies auto traits error: cannot check whether the hidden type of `inference_cycle[4ecc]::m::Foo::{opaque#0}` satisfies auto traits
--> $DIR/inference-cycle.rs:16:17 --> $DIR/inference-cycle.rs:16:17

View file

@ -23,6 +23,7 @@ LL | | type Bug<T, U> = impl Fn(T) -> U + Copy;
LL | | CONST_BUG(0); LL | | CONST_BUG(0);
LL | | } LL | | }
| |_^ | |_^
= 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
error[E0277]: the trait bound `U: From<T>` is not satisfied error[E0277]: the trait bound `U: From<T>` is not satisfied
--> $DIR/issue-53092-2.rs:9:5 --> $DIR/issue-53092-2.rs:9:5

View file

@ -22,6 +22,7 @@ LL | |
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error[E0391]: cycle detected when computing type of `Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`
--> $DIR/reveal_local.rs:5:12 --> $DIR/reveal_local.rs:5:12
@ -46,6 +47,7 @@ LL | |
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: cannot check whether the hidden type of `reveal_local[9507]::Foo::{opaque#0}` satisfies auto traits error: cannot check whether the hidden type of `reveal_local[9507]::Foo::{opaque#0}` satisfies auto traits
--> $DIR/reveal_local.rs:15:15 --> $DIR/reveal_local.rs:15:15
@ -92,6 +94,7 @@ LL | |
LL | | LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
= 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
error: cannot check whether the hidden type of `reveal_local[9507]::Foo::{opaque#0}` satisfies auto traits error: cannot check whether the hidden type of `reveal_local[9507]::Foo::{opaque#0}` satisfies auto traits
--> $DIR/reveal_local.rs:25:15 --> $DIR/reveal_local.rs:25:15