Skip to content

Commit f336213

Browse files
committed
Bless query cycle tests
The new cycles seem much more informative to me.
1 parent 95308ca commit f336213

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

tests/ui/query-system/query-cycle-printing-issue-151358.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//~ ERROR: cycle detected when looking up span for `Default`
1+
//~ ERROR: cycle detected when getting the resolver for lowering
22
trait Default {}
33
use std::num::NonZero;
44
fn main() {

tests/ui/query-system/query-cycle-printing-issue-151358.stderr

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
error[E0391]: cycle detected when looking up span for `Default`
1+
error[E0391]: cycle detected when getting the resolver for lowering
22
|
3-
= note: ...which immediately requires looking up span for `Default` again
4-
= note: cycle used when perform lints prior to AST lowering
3+
= note: ...which requires getting HIR ID of `Default`...
4+
= note: ...which requires getting the crate HIR...
5+
= note: ...which requires perform lints prior to AST lowering...
6+
= note: ...which again requires getting the resolver for lowering, completing the cycle
57
= 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
68

79
error: aborting due to 1 previous error

tests/ui/resolve/query-cycle-issue-124901.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//~ ERROR: cycle detected when looking up span for `Default`
1+
//~ ERROR: cycle detected when getting the resolver for lowering
22
trait Default {
33
type Id;
44

tests/ui/resolve/query-cycle-issue-124901.stderr

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
error[E0391]: cycle detected when looking up span for `Default`
1+
error[E0391]: cycle detected when getting the resolver for lowering
22
|
3-
= note: ...which immediately requires looking up span for `Default` again
4-
= note: cycle used when perform lints prior to AST lowering
3+
= note: ...which requires getting HIR ID of `Default`...
4+
= note: ...which requires getting the crate HIR...
5+
= note: ...which requires perform lints prior to AST lowering...
6+
= note: ...which again requires getting the resolver for lowering, completing the cycle
57
= 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
68

79
error: aborting due to 1 previous error

0 commit comments

Comments
 (0)