add links to query documentation for E0391

This commit is contained in:
nxya 2023-07-12 10:18:30 -04:00
parent 745efcc7d9
commit c429a72db9
50 changed files with 60 additions and 56 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,4 @@
query_system_cycle = cycle detected when {$stack_bottom} query_system_cycle = cycle detected when {$stack_bottom}. 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

@ -1,4 +1,4 @@
error[E0391]: cycle detected when expanding type alias `Bar` error[E0391]: cycle detected when expanding type alias `Bar`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-110629-private-type-cycle-dyn.rs:1:38 --> $DIR/issue-110629-private-type-cycle-dyn.rs:1:38
| |
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>; LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `Tr::A` error[E0391]: cycle detected when const-evaluating + checking `Tr::A`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/defaults-cyclic-fail.rs:5:19 --> $DIR/defaults-cyclic-fail.rs:5:19
| |
LL | const A: u8 = Self::B; LL | const A: u8 = Self::B;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR` error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:22 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:22
| |
LL | const BAR: u32 = IMPL_REF_BAR; LL | const BAR: u32 = IMPL_REF_BAR;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when elaborating drops for `FooDefault::BAR` error[E0391]: cycle detected when elaborating drops for `FooDefault::BAR`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:22 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:22
| |
LL | const BAR: u32 = DEFAULT_REF_BAR; LL | const BAR: u32 = DEFAULT_REF_BAR;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 11:28>::BAR` error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 11:28>::BAR`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:22 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:22
| |
LL | const BAR: u32 = TRAIT_REF_BAR; LL | const BAR: u32 = TRAIT_REF_BAR;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing predicates of `Foo` error[E0391]: cycle detected when computing predicates of `Foo`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/cycle-iat-inside-of-adt.rs:7:1 --> $DIR/cycle-iat-inside-of-adt.rs:7:1
| |
LL | struct Foo { LL | struct Foo {

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing predicates of `user` error[E0391]: cycle detected when computing predicates of `user`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1 --> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
| |
LL | fn user<T>() where S<T>::P: std::fmt::Debug {} LL | fn user<T>() where S<T>::P: std::fmt::Debug {}

View File

@ -5,6 +5,7 @@ trait Bar<T> {
type Item; type Item;
} }
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`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information. [E0391]
fn main() {} fn main() {}

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super traits of `Baz` with associated type name `Item` error[E0391]: cycle detected when computing the super traits of `Baz` with associated type name `Item`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/ambiguous-associated-type2.rs:7:1 --> $DIR/ambiguous-associated-type2.rs:7:1
| |
LL | trait Baz: Foo + Bar<Self::Item> {} LL | trait Baz: Foo + Bar<Self::Item> {}

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super traits of `Processor` with associated type name `Input` error[E0391]: cycle detected when computing the super traits of `Processor` with associated type name `Input`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-20825.rs:5:1 --> $DIR/issue-20825.rs:5:1
| |
LL | pub trait Processor: Subscriber<Input = Self::Input> { LL | pub trait Processor: Subscriber<Input = Self::Input> {

View File

@ -8,7 +8,7 @@ LL | #![feature(specialization)]
= help: consider using `min_specialization` instead, which is more stable and complete = help: consider using `min_specialization` instead, which is more stable and complete
= note: `#[warn(incomplete_features)]` on by default = note: `#[warn(incomplete_features)]` on by default
error[E0391]: cycle detected when building specialization graph of trait `Trait` error[E0391]: cycle detected when building specialization graph of trait `Trait`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1 --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
| |
LL | trait Trait<T> { type Assoc; } LL | trait Trait<T> { type Assoc; }

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when building an abstract representation for `test::{constant#0}` error[E0391]: cycle detected when building an abstract representation for `test::{constant#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/closures.rs:3:35 --> $DIR/closures.rs:3:35
| |
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {} LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when resolving instance `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>::DIM` error[E0391]: cycle detected when resolving instance `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>::DIM`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-83765.rs:5:5 --> $DIR/issue-83765.rs:5:5
| |
LL | const DIM: usize; LL | const DIM: usize;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when evaluating type-level constant error[E0391]: cycle detected when evaluating type-level constant. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/const-size_of-cycle.rs:4:17 --> $DIR/const-size_of-cycle.rs:4:17
| |
LL | bytes: [u8; std::mem::size_of::<Foo>()] LL | bytes: [u8; std::mem::size_of::<Foo>()]

View File

@ -22,7 +22,7 @@ help: add missing generic argument
LL | struct S<const S: (), const S: S<S> = { S }>; LL | struct S<const S: (), const S: S<S> = { S }>;
| +++ | +++
error[E0391]: cycle detected when computing type of `S::S` error[E0391]: cycle detected when computing type of `S::S`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-103790.rs:4:32 --> $DIR/issue-103790.rs:4:32
| |
LL | struct S<const S: (), const S: S = { S }>; LL | struct S<const S: (), const S: S = { S }>;
@ -35,7 +35,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 }>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0391]: cycle detected when computing type of `S` error[E0391]: cycle detected when computing type of `S`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-103790.rs:4:1 --> $DIR/issue-103790.rs:4:1
| |
LL | struct S<const S: (), const S: S = { S }>; LL | struct S<const S: (), const S: S = { S }>;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `Foo::B::{constant#0}` error[E0391]: cycle detected when const-evaluating + checking `Foo::B::{constant#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-36163.rs:4:9 --> $DIR/issue-36163.rs:4:9
| |
LL | B = A, LL | B = A,

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when evaluating type-level constant error[E0391]: cycle detected when evaluating type-level constant. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-44415.rs:6:17 --> $DIR/issue-44415.rs:6:17
| |
LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }], LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `FOO` error[E0391]: cycle detected when const-evaluating + checking `FOO`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/recursive-zst-static.rs:10:1 --> $DIR/recursive-zst-static.rs:10:1
| |
LL | static FOO: () = FOO; LL | static FOO: () = FOO;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `FOO` error[E0391]: cycle detected when const-evaluating + checking `FOO`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/recursive-zst-static.rs:10:1 --> $DIR/recursive-zst-static.rs:10:1
| |
LL | static FOO: () = FOO; LL | static FOO: () = FOO;

View File

@ -4,7 +4,7 @@ error[E0080]: could not evaluate static initializer
LL | pub static mut B: () = unsafe { A = 1; }; LL | pub static mut B: () = unsafe { A = 1; };
| ^^^^^ modifying a static's initial value from another static's initializer | ^^^^^ modifying a static's initial value from another static's initializer
error[E0391]: cycle detected when const-evaluating + checking `C` error[E0391]: cycle detected when const-evaluating + checking `C`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/write-to-static-mut-in-static.rs:5:1 --> $DIR/write-to-static-mut-in-static.rs:5:1
| |
LL | pub static mut C: u32 = unsafe { C = 1; 0 }; LL | pub static mut C: u32 = unsafe { C = 1; 0 };

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `Foo::X` error[E0391]: cycle detected when computing type of `Foo::X`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/cycle-trait-default-type-trait.rs:4:23 --> $DIR/cycle-trait-default-type-trait.rs:4:23
| |
LL | trait Foo<X = Box<dyn Foo>> { LL | trait Foo<X = Box<dyn Foo>> {

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super predicates of `Chromosome` error[E0391]: cycle detected when computing the super predicates of `Chromosome`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/cycle-trait-supertrait-direct.rs:3:19 --> $DIR/cycle-trait-supertrait-direct.rs:3:19
| |
LL | trait Chromosome: Chromosome { LL | trait Chromosome: Chromosome {

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super predicates of `B` error[E0391]: cycle detected when computing the super predicates of `B`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/cycle-trait-supertrait-indirect.rs:7:10 --> $DIR/cycle-trait-supertrait-indirect.rs:7:10
| |
LL | trait B: C { LL | trait B: C {

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super predicates of `T1` error[E0391]: cycle detected when computing the super predicates of `T1`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-12511.rs:1:12 --> $DIR/issue-12511.rs:1:12
| |
LL | trait T1 : T2 { LL | trait T1 : T2 {

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `make_dyn_star::{opaque#0}` error[E0391]: cycle detected when computing type of `make_dyn_star::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/param-env-region-infer.rs:16:60 --> $DIR/param-env-region-infer.rs:16:60
| |
LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a { LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a {

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}` error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/auto-trait-leak.rs:11:16 --> $DIR/auto-trait-leak.rs:11:16
| |
LL | fn cycle1() -> impl Clone { LL | fn cycle1() -> impl Clone {
@ -34,7 +34,7 @@ LL | | Rc::new(String::from("foo"))
LL | | } LL | | }
| |_^ | |_^
error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}` error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/auto-trait-leak.rs:11:16 --> $DIR/auto-trait-leak.rs:11:16
| |
LL | fn cycle1() -> impl Clone { LL | fn cycle1() -> impl Clone {

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super predicates of `T1` error[E0391]: cycle detected when computing the super predicates of `T1`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/infinite-trait-alias-recursion.rs:3:12 --> $DIR/infinite-trait-alias-recursion.rs:3:12
| |
LL | trait T1 = T2; LL | trait T1 = T2;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when expanding type alias `X1` error[E0391]: cycle detected when expanding type alias `X1`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/infinite-type-alias-mutual-recursion.rs:1:11 --> $DIR/infinite-type-alias-mutual-recursion.rs:1:11
| |
LL | type X1 = X2; LL | type X1 = X2;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when expanding type alias `X` error[E0391]: cycle detected when expanding type alias `X`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/infinite-vec-type-recursion.rs:1:14 --> $DIR/infinite-vec-type-recursion.rs:1:14
| |
LL | type X = Vec<X>; LL | type X = Vec<X>;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `FOO` error[E0391]: cycle detected when const-evaluating + checking `FOO`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-17252.rs:1:20 --> $DIR/issue-17252.rs:1:20
| |
LL | const FOO: usize = FOO; LL | const FOO: usize = FOO;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super traits of `T` with associated type name `Item` error[E0391]: cycle detected when computing the super traits of `T` with associated type name `Item`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-20772.rs:1:1 --> $DIR/issue-20772.rs:1:1
| |
LL | trait T : Iterator<Item=Self::Item> LL | trait T : Iterator<Item=Self::Item>

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the bounds for type parameter `T` error[E0391]: cycle detected when computing the bounds for type parameter `T`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-21177.rs:6:21 --> $DIR/issue-21177.rs:6:21
| |
LL | fn foo<T: Trait<A = T::B>>() { } LL | fn foo<T: Trait<A = T::B>>() { }

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `X::A::{constant#0}` error[E0391]: cycle detected when const-evaluating + checking `X::A::{constant#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-23302-1.rs:4:9 --> $DIR/issue-23302-1.rs:4:9
| |
LL | A = X::A as isize, LL | A = X::A as isize,

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `Y::A::{constant#0}` error[E0391]: cycle detected when const-evaluating + checking `Y::A::{constant#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-23302-2.rs:4:9 --> $DIR/issue-23302-2.rs:4:9
| |
LL | A = Y::B as isize, LL | A = Y::B as isize,

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `A` error[E0391]: cycle detected when const-evaluating + checking `A`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-23302-3.rs:1:16 --> $DIR/issue-23302-3.rs:1:16
| |
LL | const A: i32 = B; LL | const A: i32 = B;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `Foo::T` error[E0391]: cycle detected when computing type of `Foo::T`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-34373.rs:7:30 --> $DIR/issue-34373.rs:7:30
| |
LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>; LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing layout of `core::option::Option<S>` error[E0391]: cycle detected when computing layout of `core::option::Option<S>`. 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>`...

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when const-evaluating + checking `FOO` error[E0391]: cycle detected when const-evaluating + checking `FOO`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/recursive-static-definition.rs:1:1 --> $DIR/recursive-static-definition.rs:1:1
| |
LL | pub static FOO: u32 = FOO; LL | pub static FOO: u32 = FOO;

View File

@ -38,7 +38,7 @@ LL | impl (Self, Self) {}
| |
= note: replace `Self` with a different type = note: replace `Self` with a different type
error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:19:1: 19:23>` error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:19:1: 19:23>`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/resolve-self-in-impl.rs:19:1 --> $DIR/resolve-self-in-impl.rs:19:1
| |
LL | impl Tr<Self::A> for S {} LL | impl Tr<Self::A> for S {}

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing layout of `Foo<()>` error[E0391]: cycle detected when computing layout of `Foo<()>`. 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 `<() as A>::Assoc`... = note: ...which requires computing layout of `<() as A>::Assoc`...
= note: ...which again requires computing layout of `Foo<()>`, completing the cycle = note: ...which again requires computing layout of `Foo<()>`, completing the cycle

View File

@ -1,5 +1,5 @@
trait A: B + A {} trait A: B + A {}
//~^ ERROR cycle detected when computing the super predicates of `A` [E0391] //~^ ERROR cycle detected when computing the super predicates of `A`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information. [E0391]
trait B {} trait B {}

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the super predicates of `A` error[E0391]: cycle detected when computing the super predicates of `A`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/cyclic-trait-resolution.rs:1:14 --> $DIR/cyclic-trait-resolution.rs:1:14
| |
LL | trait A: B + A {} LL | trait A: B + A {}

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when simplifying constant for the type system `Alpha::V3::{constant#0}` error[E0391]: cycle detected when simplifying constant for the type system `Alpha::V3::{constant#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/self-in-enum-definition.rs:5:10 --> $DIR/self-in-enum-definition.rs:5:10
| |
LL | V3 = Self::V1 {} as u8 + 2, LL | V3 = Self::V1 {} as u8 + 2,

View File

@ -5,8 +5,8 @@
mod m { mod m {
pub type Foo = impl std::fmt::Debug; pub type Foo = impl std::fmt::Debug;
//~^ ERROR: cycle detected when computing type of `m::Foo::{opaque#0}` [E0391] //~^ ERROR: cycle detected when computing type of `m::Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information. [E0391]
//~| ERROR: cycle detected when computing type of `m::Foo::{opaque#0}` [E0391] //~| ERROR: cycle detected when computing type of `m::Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information. [E0391]
pub fn foo() -> Foo { pub fn foo() -> Foo {
22_u32 22_u32

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/auto-trait-leakage3.rs:7:20 --> $DIR/auto-trait-leakage3.rs:7:20
| |
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
@ -17,7 +17,7 @@ note: cycle used when checking item types in module `m`
LL | mod m { LL | mod m {
| ^^^^^ | ^^^^^
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/auto-trait-leakage3.rs:7:20 --> $DIR/auto-trait-leakage3.rs:7:20
| |
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/inference-cycle.rs:5:20 --> $DIR/inference-cycle.rs:5:20
| |
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
@ -17,7 +17,7 @@ note: cycle used when checking item types in module `m`
LL | mod m { LL | mod m {
| ^^^^^ | ^^^^^
error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/inference-cycle.rs:5:20 --> $DIR/inference-cycle.rs:5:20
| |
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `Bug::{opaque#0}` error[E0391]: cycle detected when computing type of `Bug::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/issue-53092-2.rs:4:18 --> $DIR/issue-53092-2.rs:4:18
| |
LL | type Bug<T, U> = impl Fn(T) -> U + Copy; LL | type Bug<T, U> = impl Fn(T) -> U + Copy;

View File

@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing type of `Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/reveal_local.rs:5:12 --> $DIR/reveal_local.rs:5:12
| |
LL | type Foo = impl Debug; LL | type Foo = impl Debug;
@ -23,7 +23,7 @@ LL | |
LL | | fn main() {} LL | | fn main() {}
| |____________^ | |____________^
error[E0391]: cycle detected when computing type of `Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/reveal_local.rs:5:12 --> $DIR/reveal_local.rs:5:12
| |
LL | type Foo = impl Debug; LL | type Foo = impl Debug;
@ -69,7 +69,7 @@ note: required by a bound in `is_send`
LL | fn is_send<T: Send>() {} LL | fn is_send<T: Send>() {}
| ^^^^ required by this bound in `is_send` | ^^^^ required by this bound in `is_send`
error[E0391]: cycle detected when computing type of `Foo::{opaque#0}` error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`. see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information.
--> $DIR/reveal_local.rs:5:12 --> $DIR/reveal_local.rs:5:12
| |
LL | type Foo = impl Debug; LL | type Foo = impl Debug;