1
Fork 0

moved note as unspanned note, moved note to the bottom of the msg

This commit is contained in:
nxya 2023-07-18 21:53:34 -04:00
parent e6e8892051
commit a54a66830d
47 changed files with 54 additions and 244 deletions

View file

@ -46,7 +46,6 @@ pub struct CycleUsage {
#[derive(Diagnostic)] #[derive(Diagnostic)]
#[diag(query_system_cycle, code = "E0391")] #[diag(query_system_cycle, code = "E0391")]
pub struct Cycle { pub struct Cycle {
#[note]
#[primary_span] #[primary_span]
pub span: Span, pub span: Span,
pub stack_bottom: String, pub stack_bottom: String,
@ -58,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

@ -607,6 +607,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

@ -1,8 +1,8 @@
error[E0391]: cycle detected when computing layout of `S<S<()>>` error[E0391]: cycle detected when computing layout of `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
= 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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `Tr::A`
LL | const A: u8 = Self::B; LL | const A: u8 = Self::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
--> $DIR/defaults-cyclic-fail.rs:5:19
|
LL | const A: u8 = Self::B;
| ^^^^^^^
note: ...which requires const-evaluating + checking `Tr::B`... note: ...which requires const-evaluating + checking `Tr::B`...
--> $DIR/defaults-cyclic-fail.rs:8:19 --> $DIR/defaults-cyclic-fail.rs:8:19
| |
@ -20,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-249
LL | const BAR: u32 = IMPL_REF_BAR; LL | const BAR: u32 = IMPL_REF_BAR;
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
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
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:22
|
LL | const BAR: u32 = IMPL_REF_BAR;
| ^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `IMPL_REF_BAR`... note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
| |
@ -31,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when elaborating drops for `FooDefault::BAR`
LL | const BAR: u32 = DEFAULT_REF_BAR; LL | const BAR: u32 = DEFAULT_REF_BAR;
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
| |
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
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:22
|
LL | const BAR: u32 = DEFAULT_REF_BAR;
| ^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `DEFAULT_REF_BAR`... note: ...which requires const-evaluating + checking `DEFAULT_REF_BAR`...
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1
| |
@ -31,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-249
LL | const BAR: u32 = TRAIT_REF_BAR; LL | const BAR: u32 = TRAIT_REF_BAR;
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
| |
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
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:22
|
LL | const BAR: u32 = TRAIT_REF_BAR;
| ^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `TRAIT_REF_BAR`... note: ...which requires const-evaluating + checking `TRAIT_REF_BAR`...
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
| |
@ -31,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing predicates of `Foo`
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
--> $DIR/cycle-iat-inside-of-adt.rs:7:1
|
LL | struct Foo {
| ^^^^^^^^^^
note: ...which requires computing predicates of `Foo`... note: ...which requires computing predicates of `Foo`...
--> $DIR/cycle-iat-inside-of-adt.rs:7:1 --> $DIR/cycle-iat-inside-of-adt.rs:7:1
| |
@ -42,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing predicates of `user`
LL | fn user<T>() where S<T>::P: std::fmt::Debug {} LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
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
--> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
|
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires computing predicates of `user`... note: ...which requires computing predicates of `user`...
--> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1 --> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
| |
@ -36,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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when computing the super traits of `Baz` with assoc
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
--> $DIR/ambiguous-associated-type2.rs:7:1
|
LL | trait Baz: Foo + Bar<Self::Item> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: ...which immediately requires computing the super traits of `Baz` with associated type name `Item` again = note: ...which immediately requires computing the super traits of `Baz` with associated type name `Item` again
note: cycle used when computing the super predicates of `Baz` note: cycle used when computing the super predicates of `Baz`
--> $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> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when computing the super traits of `Processor` with
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
--> $DIR/issue-20825.rs:5:1
|
LL | pub trait Processor: Subscriber<Input = Self::Input> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: ...which immediately requires computing the super traits of `Processor` with associated type name `Input` again = note: ...which immediately requires computing the super traits of `Processor` with associated type name `Input` again
note: cycle used when computing the super predicates of `Processor` note: cycle used when computing the super predicates of `Processor`
--> $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> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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

@ -14,17 +14,13 @@ error[E0391]: cycle detected when building specialization graph 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
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
|
LL | trait Trait<T> { type Assoc; }
| ^^^^^^^^^^^^^^
= note: ...which immediately requires building specialization graph of trait `Trait` again = note: ...which immediately requires building specialization graph of trait `Trait` again
note: cycle used when coherence checking all impls of trait `Trait` note: cycle used when coherence checking all impls of trait `Trait`
--> $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; }
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= 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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when building an abstract representation for `test:
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
--> $DIR/closures.rs:3:35
|
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
| ^^^^^^^^^^^^^
note: ...which requires building THIR for `test::{constant#0}`... note: ...which requires building THIR for `test::{constant#0}`...
--> $DIR/closures.rs:3:35 --> $DIR/closures.rs:3:35
| |
@ -25,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when resolving instance `<LazyUpdim<'_, T, <T as Te
LL | const DIM: usize; LL | const DIM: usize;
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
| |
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
--> $DIR/issue-83765.rs:5:5
|
LL | const DIM: usize;
| ^^^^^^^^^^^^^^^^
note: ...which requires computing candidate for `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>`... note: ...which requires computing candidate for `<LazyUpdim<'_, T, <T as TensorDimension>::DIM, DIM> as TensorDimension>`...
--> $DIR/issue-83765.rs:4:1 --> $DIR/issue-83765.rs:4:1
| |
@ -20,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when evaluating type-level constant
LL | bytes: [u8; std::mem::size_of::<Foo>()] LL | bytes: [u8; std::mem::size_of::<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
--> $DIR/const-size_of-cycle.rs:4:17
|
LL | bytes: [u8; std::mem::size_of::<Foo>()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`... note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`...
--> $DIR/const-size_of-cycle.rs:4:17 --> $DIR/const-size_of-cycle.rs:4:17
| |
@ -28,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

@ -28,17 +28,13 @@ error[E0391]: cycle detected when computing type of `S::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
--> $DIR/issue-103790.rs:4:32
|
LL | struct S<const S: (), const S: S = { S }>;
| ^
= note: ...which immediately requires computing type of `S::S` again = note: ...which immediately requires computing type of `S::S` again
note: cycle used when computing type of `S` note: cycle used when computing type of `S`
--> $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 }>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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
@ -46,11 +42,6 @@ error[E0391]: cycle detected 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
--> $DIR/issue-103790.rs:4:1
|
LL | struct S<const S: (), const S: S = { S }>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires computing type of `S::S`... note: ...which requires computing type of `S::S`...
--> $DIR/issue-103790.rs:4:32 --> $DIR/issue-103790.rs:4:32
| |
@ -68,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `Foo::B::{constant
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
--> $DIR/issue-36163.rs:4:9
|
LL | B = A,
| ^
note: ...which requires const-evaluating + checking `A`... note: ...which requires const-evaluating + checking `A`...
--> $DIR/issue-36163.rs:1:18 --> $DIR/issue-36163.rs:1:18
| |
@ -20,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when evaluating type-level constant
LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }], LL | bytes: [u8; unsafe { intrinsics::size_of::<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
--> $DIR/issue-44415.rs:6:17
|
LL | bytes: [u8; unsafe { intrinsics::size_of::<Foo>() }],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`... note: ...which requires const-evaluating + checking `Foo::bytes::{constant#0}`...
--> $DIR/issue-44415.rs:6:17 --> $DIR/issue-44415.rs:6:17
| |
@ -28,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `FOO`
LL | static FOO: () = FOO; LL | static FOO: () = 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
--> $DIR/recursive-zst-static.rs:10:1
|
LL | static FOO: () = FOO;
| ^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `FOO`... note: ...which requires const-evaluating + checking `FOO`...
--> $DIR/recursive-zst-static.rs:10:18 --> $DIR/recursive-zst-static.rs:10:18
| |
@ -24,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `FOO`
LL | static FOO: () = FOO; LL | static FOO: () = 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
--> $DIR/recursive-zst-static.rs:10:1
|
LL | static FOO: () = FOO;
| ^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `FOO`... note: ...which requires const-evaluating + checking `FOO`...
--> $DIR/recursive-zst-static.rs:10:18 --> $DIR/recursive-zst-static.rs:10:18
| |
@ -24,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

@ -10,11 +10,6 @@ error[E0391]: cycle detected when const-evaluating + checking `C`
LL | pub static mut C: u32 = unsafe { C = 1; 0 }; LL | pub static mut C: u32 = unsafe { C = 1; 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
--> $DIR/write-to-static-mut-in-static.rs:5:1
|
LL | pub static mut C: u32 = unsafe { C = 1; 0 };
| ^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `C`... note: ...which requires const-evaluating + checking `C`...
--> $DIR/write-to-static-mut-in-static.rs:5:34 --> $DIR/write-to-static-mut-in-static.rs:5:34
| |
@ -32,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `Foo::X`
LL | trait Foo<X = Box<dyn Foo>> { LL | trait Foo<X = Box<dyn 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
--> $DIR/cycle-trait-default-type-trait.rs:4:23
|
LL | trait Foo<X = Box<dyn Foo>> {
| ^^^
= note: ...which immediately requires computing type of `Foo::X` again = note: ...which immediately requires computing type of `Foo::X` again
note: cycle used when collecting item types in top-level module note: cycle used when collecting item types in top-level module
--> $DIR/cycle-trait-default-type-trait.rs:4:1 --> $DIR/cycle-trait-default-type-trait.rs:4:1
@ -19,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing the super predicates of `Chromosome`
LL | trait Chromosome: Chromosome { LL | trait Chromosome: Chromosome {
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
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
--> $DIR/cycle-trait-supertrait-direct.rs:3:19
|
LL | trait Chromosome: Chromosome {
| ^^^^^^^^^^
= note: ...which immediately requires computing the super predicates of `Chromosome` again = note: ...which immediately requires computing the super predicates of `Chromosome` again
note: cycle used when collecting item types in top-level module note: cycle used when collecting item types in top-level module
--> $DIR/cycle-trait-supertrait-direct.rs:3:1 --> $DIR/cycle-trait-supertrait-direct.rs:3:1
@ -17,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing the super predicates of `B`
LL | trait B: C { LL | trait B: C {
| ^ | ^
| |
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
--> $DIR/cycle-trait-supertrait-indirect.rs:7:10
|
LL | trait B: C {
| ^
note: ...which requires computing the super predicates of `C`... note: ...which requires computing the super predicates of `C`...
--> $DIR/cycle-trait-supertrait-indirect.rs:11:10 --> $DIR/cycle-trait-supertrait-indirect.rs:11:10
| |
@ -20,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing the super predicates of `T1`
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
--> $DIR/issue-12511.rs:1:12
|
LL | trait T1 : T2 {
| ^^
note: ...which requires computing the super predicates of `T2`... note: ...which requires computing the super predicates of `T2`...
--> $DIR/issue-12511.rs:5:12 --> $DIR/issue-12511.rs:5:12
| |
@ -22,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `make_dyn_star::{opaque#0}`
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 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
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
--> $DIR/param-env-region-infer.rs:16:60
|
LL | fn make_dyn_star<'a, T: PointerLike + Debug + 'a>(t: T) -> impl PointerLike + Debug + 'a {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `make_dyn_star`... note: ...which requires type-checking `make_dyn_star`...
--> $DIR/param-env-region-infer.rs:16:1 --> $DIR/param-env-region-infer.rs:16:1
| |
@ -28,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}`
LL | fn cycle1() -> impl Clone { LL | fn cycle1() -> impl Clone {
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
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
--> $DIR/auto-trait-leak.rs:11:16
|
LL | fn cycle1() -> impl Clone {
| ^^^^^^^^^^
note: ...which requires type-checking `cycle1`... note: ...which requires type-checking `cycle1`...
--> $DIR/auto-trait-leak.rs:14:5 --> $DIR/auto-trait-leak.rs:14:5
| |
@ -38,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
@ -45,11 +41,6 @@ error[E0391]: cycle detected when computing type of `cycle1::{opaque#0}`
LL | fn cycle1() -> impl Clone { LL | fn cycle1() -> impl Clone {
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
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
--> $DIR/auto-trait-leak.rs:11:16
|
LL | fn cycle1() -> impl Clone {
| ^^^^^^^^^^
note: ...which requires type-checking `cycle1`... note: ...which requires type-checking `cycle1`...
--> $DIR/auto-trait-leak.rs:14:5 --> $DIR/auto-trait-leak.rs:14:5
| |
@ -78,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing the super predicates of `T1`
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
--> $DIR/infinite-trait-alias-recursion.rs:3:12
|
LL | trait T1 = T2;
| ^^
note: ...which requires computing the super predicates of `T2`... note: ...which requires computing the super predicates of `T2`...
--> $DIR/infinite-trait-alias-recursion.rs:6:12 --> $DIR/infinite-trait-alias-recursion.rs:6:12
| |
@ -26,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when expanding type alias `X1`
LL | type X1 = X2; LL | type X1 = X2;
| ^^ | ^^
| |
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
--> $DIR/infinite-type-alias-mutual-recursion.rs:1:11
|
LL | type X1 = X2;
| ^^
note: ...which requires expanding type alias `X2`... note: ...which requires expanding type alias `X2`...
--> $DIR/infinite-type-alias-mutual-recursion.rs:3:11 --> $DIR/infinite-type-alias-mutual-recursion.rs:3:11
| |
@ -33,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when expanding type alias `X`
LL | type X = Vec<X>; LL | type X = Vec<X>;
| ^ | ^
| |
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
--> $DIR/infinite-vec-type-recursion.rs:1:14
|
LL | type X = Vec<X>;
| ^
= note: ...which immediately requires expanding type alias `X` again = note: ...which immediately requires expanding type alias `X` again
= note: type aliases cannot be recursive = note: type aliases cannot be recursive
= help: consider using a struct, enum, or union instead to break the cycle = help: consider using a struct, enum, or union instead to break the cycle
@ -21,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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when const-evaluating + checking `FOO`
LL | const FOO: usize = FOO; LL | const FOO: usize = 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
--> $DIR/issue-17252.rs:1:20
|
LL | const FOO: usize = FOO;
| ^^^
= note: ...which immediately requires const-evaluating + checking `FOO` again = note: ...which immediately requires const-evaluating + checking `FOO` again
note: cycle used when const-evaluating + checking `main::{constant#0}` note: cycle used when const-evaluating + checking `main::{constant#0}`
--> $DIR/issue-17252.rs:4:18 --> $DIR/issue-17252.rs:4:18
| |
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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when computing the super traits of `T` with associa
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
--> $DIR/issue-20772.rs:1:1
|
LL | trait T : Iterator<Item=Self::Item>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: ...which immediately requires computing the super traits of `T` with associated type name `Item` again = note: ...which immediately requires computing the super traits of `T` with associated type name `Item` again
note: cycle used when computing the super predicates of `T` note: cycle used when computing the super predicates of `T`
--> $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>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= 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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when computing the bounds for type parameter `T`
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
--> $DIR/issue-21177.rs:6:21
|
LL | fn foo<T: Trait<A = T::B>>() { }
| ^^^^
= note: ...which immediately requires computing the bounds for type parameter `T` again = note: ...which immediately requires computing the bounds for type parameter `T` again
note: cycle used when computing explicit predicates of `foo` note: cycle used when computing explicit predicates of `foo`
--> $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>>() { }
| ^^^^ | ^^^^
= 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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when const-evaluating + checking `X::A::{constant#0
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
--> $DIR/issue-23302-1.rs:4:9
|
LL | A = X::A as isize,
| ^^^^^^^^^^^^^
= note: ...which immediately requires const-evaluating + checking `X::A::{constant#0}` again = note: ...which immediately requires const-evaluating + checking `X::A::{constant#0}` again
note: cycle used when simplifying constant for the type system `X::A::{constant#0}` note: cycle used when simplifying constant for the type system `X::A::{constant#0}`
--> $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,
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
= 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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when const-evaluating + checking `Y::A::{constant#0
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
--> $DIR/issue-23302-2.rs:4:9
|
LL | A = Y::B as isize,
| ^^^^^^^^^^^^^
= note: ...which immediately requires const-evaluating + checking `Y::A::{constant#0}` again = note: ...which immediately requires const-evaluating + checking `Y::A::{constant#0}` again
note: cycle used when simplifying constant for the type system `Y::A::{constant#0}` note: cycle used when simplifying constant for the type system `Y::A::{constant#0}`
--> $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,
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
= 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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `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
--> $DIR/issue-23302-3.rs:1:16
|
LL | const A: i32 = B;
| ^
note: ...which requires const-evaluating + checking `B`... note: ...which requires const-evaluating + checking `B`...
--> $DIR/issue-23302-3.rs:3:16 --> $DIR/issue-23302-3.rs:3:16
| |
@ -20,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `Foo::T`
LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>; LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>;
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
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
--> $DIR/issue-34373.rs:7:30
|
LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>;
| ^^^^^^^^^^
note: ...which requires expanding type alias `DefaultFoo`... note: ...which requires expanding type alias `DefaultFoo`...
--> $DIR/issue-34373.rs:8:19 --> $DIR/issue-34373.rs:8:19
| |
@ -26,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,10 +1,10 @@
error[E0391]: cycle detected when computing layout of `core::option::Option<S>` error[E0391]: 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
= 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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when const-evaluating + checking `FOO`
LL | pub static FOO: u32 = FOO; LL | pub static FOO: u32 = 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
--> $DIR/recursive-static-definition.rs:1:1
|
LL | pub static FOO: u32 = FOO;
| ^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `FOO`... note: ...which requires const-evaluating + checking `FOO`...
--> $DIR/recursive-static-definition.rs:1:23 --> $DIR/recursive-static-definition.rs:1:23
| |
@ -23,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

@ -44,11 +44,6 @@ error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/
LL | impl Tr<Self::A> for S {} LL | impl Tr<Self::A> for 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
--> $DIR/resolve-self-in-impl.rs:19:1
|
LL | impl Tr<Self::A> for S {}
| ^^^^^^^^^^^^^^^^^^^^^^
= note: ...which immediately requires computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:19:1: 19:23>` again = note: ...which immediately requires computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:19:1: 19:23>` again
note: cycle used when collecting item types in top-level module note: cycle used when collecting item types in top-level module
--> $DIR/resolve-self-in-impl.rs:1:1 --> $DIR/resolve-self-in-impl.rs:1:1
@ -61,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

@ -1,6 +1,5 @@
error[E0391]: cycle detected when computing layout of `Foo<()>` error[E0391]: cycle detected when computing layout of `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
= 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
note: cycle used when elaborating drops for `main` note: cycle used when elaborating drops for `main`
@ -8,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

@ -4,17 +4,13 @@ error[E0391]: cycle detected when computing the super predicates of `A`
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
--> $DIR/cyclic-trait-resolution.rs:1:14
|
LL | trait A: B + A {}
| ^
= note: ...which immediately requires computing the super predicates of `A` again = note: ...which immediately requires computing the super predicates of `A` again
note: cycle used when collecting item types in top-level module note: cycle used when collecting item types in top-level module
--> $DIR/cyclic-trait-resolution.rs:1:1 --> $DIR/cyclic-trait-resolution.rs:1:1
| |
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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when simplifying constant for the type system `Alph
LL | V3 = Self::V1 {} as u8 + 2, LL | V3 = Self::V1 {} as u8 + 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
--> $DIR/self-in-enum-definition.rs:5:10
|
LL | V3 = Self::V1 {} as u8 + 2,
| ^^^^^^^^^^^^^^^^^^^^^
note: ...which requires simplifying constant for the type system `Alpha::V3::{constant#0}`... note: ...which requires simplifying constant for the type system `Alpha::V3::{constant#0}`...
--> $DIR/self-in-enum-definition.rs:5:10 --> $DIR/self-in-enum-definition.rs:5:10
| |
@ -72,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
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
--> $DIR/auto-trait-leakage3.rs:7:20
|
LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `m::bar`... note: ...which requires type-checking `m::bar`...
--> $DIR/auto-trait-leakage3.rs:16:9 --> $DIR/auto-trait-leakage3.rs:16:9
| |
@ -21,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
@ -28,11 +24,6 @@ error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
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
--> $DIR/auto-trait-leakage3.rs:7:20
|
LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `m::bar`... note: ...which requires type-checking `m::bar`...
--> $DIR/auto-trait-leakage3.rs:15:5 --> $DIR/auto-trait-leakage3.rs:15:5
| |
@ -44,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
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
--> $DIR/inference-cycle.rs:5:20
|
LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `m::bar`... note: ...which requires type-checking `m::bar`...
--> $DIR/inference-cycle.rs:16:9 --> $DIR/inference-cycle.rs:16:9
| |
@ -21,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
@ -28,11 +24,6 @@ error[E0391]: cycle detected when computing type of `m::Foo::{opaque#0}`
LL | pub type Foo = impl std::fmt::Debug; LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
| |
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
--> $DIR/inference-cycle.rs:5:20
|
LL | pub type Foo = impl std::fmt::Debug;
| ^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `m::bar`... note: ...which requires type-checking `m::bar`...
--> $DIR/inference-cycle.rs:15:5 --> $DIR/inference-cycle.rs:15:5
| |
@ -44,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `Bug::{opaque#0}`
LL | type Bug<T, U> = impl Fn(T) -> U + Copy; LL | type Bug<T, U> = impl Fn(T) -> U + Copy;
| ^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^
| |
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
--> $DIR/issue-53092-2.rs:4:18
|
LL | type Bug<T, U> = impl Fn(T) -> U + Copy;
| ^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `CONST_BUG`... note: ...which requires type-checking `CONST_BUG`...
--> $DIR/issue-53092-2.rs:6:1 --> $DIR/issue-53092-2.rs:6:1
| |
@ -28,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

@ -4,11 +4,6 @@ error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`
LL | type Foo = impl Debug; LL | type Foo = impl Debug;
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
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
--> $DIR/reveal_local.rs:5:12
|
LL | type Foo = impl Debug;
| ^^^^^^^^^^
note: ...which requires type-checking `not_good`... note: ...which requires type-checking `not_good`...
--> $DIR/reveal_local.rs:15:5 --> $DIR/reveal_local.rs:15:5
| |
@ -27,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
@ -34,11 +30,6 @@ error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`
LL | type Foo = impl Debug; LL | type Foo = impl Debug;
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
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
--> $DIR/reveal_local.rs:5:12
|
LL | type Foo = impl Debug;
| ^^^^^^^^^^
note: ...which requires type-checking `not_good`... note: ...which requires type-checking `not_good`...
--> $DIR/reveal_local.rs:12:1 --> $DIR/reveal_local.rs:12:1
| |
@ -56,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
@ -85,11 +77,6 @@ error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`
LL | type Foo = impl Debug; LL | type Foo = impl Debug;
| ^^^^^^^^^^ | ^^^^^^^^^^
| |
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
--> $DIR/reveal_local.rs:5:12
|
LL | type Foo = impl Debug;
| ^^^^^^^^^^
note: ...which requires type-checking `not_gooder`... note: ...which requires type-checking `not_gooder`...
--> $DIR/reveal_local.rs:19:1 --> $DIR/reveal_local.rs:19:1
| |
@ -107,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