Skip to content

Commit c429a72

Browse files
add links to query documentation for E0391
1 parent 745efcc commit c429a72

File tree

50 files changed

+60
-56
lines changed

Some content is hidden

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

50 files changed

+60
-56
lines changed

compiler/rustc_error_codes/src/error_codes/E0391.md

Lines changed: 3 additions & 0 deletions

compiler/rustc_query_system/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
query_system_cycle = cycle detected when {$stack_bottom}
1+
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.
22
33
query_system_cycle_recursive_trait_alias = trait aliases cannot be recursive
44

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0391]: cycle detected when expanding type alias `Bar`
1+
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.
22
--> $DIR/issue-110629-private-type-cycle-dyn.rs:1:38
33
|
44
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0391]: cycle detected when const-evaluating + checking `Tr::A`
1+
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.
22
--> $DIR/defaults-cyclic-fail.rs:5:19
33
|
44
LL | const A: u8 = Self::B;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`
1+
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.
22
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:22
33
|
44
LL | const BAR: u32 = IMPL_REF_BAR;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0391]: cycle detected when elaborating drops for `FooDefault::BAR`
1+
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.
22
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:22
33
|
44
LL | const BAR: u32 = DEFAULT_REF_BAR;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 11:28>::BAR`
1+
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.
22
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:22
33
|
44
LL | const BAR: u32 = TRAIT_REF_BAR;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0391]: cycle detected when computing predicates of `Foo`
1+
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.
22
--> $DIR/cycle-iat-inside-of-adt.rs:7:1
33
|
44
LL | struct Foo {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0391]: cycle detected when computing predicates of `user`
1+
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.
22
--> $DIR/cycle-iat-inside-of-where-predicate.rs:8:1
33
|
44
LL | fn user<T>() where S<T>::P: std::fmt::Debug {}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ trait Bar<T> {
55
type Item;
66
}
77
trait Baz: Foo + Bar<Self::Item> {}
8-
//~^ ERROR cycle detected when computing the super traits of `Baz` with associated type name `Item` [E0391]
8+
//~^ 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]
9+
910

1011
fn main() {}

0 commit comments

Comments
 (0)