Skip to content

Commit c0378ae

Browse files
committed
Bless tests because new queryies
1 parent 41ec351 commit c0378ae

21 files changed

Lines changed: 228 additions & 80 deletions

tests/ui/associated-type-bounds/return-type-notation/impl-trait-in-trait.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ note: ...which requires computing function signature of `IntFactory::stream`...
99
|
1010
LL | fn stream(self) -> impl IntFactory<stream(..): Send>;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12+
note: ...which requires computing function signature and type-dependent definitions of `IntFactory::stream`...
13+
--> $DIR/impl-trait-in-trait.rs:4:5
14+
|
15+
LL | fn stream(self) -> impl IntFactory<stream(..): Send>;
16+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1217
note: ...which requires looking up late bound vars inside `IntFactory::stream`...
1318
--> $DIR/impl-trait-in-trait.rs:4:5
1419
|

tests/ui/const-generics/not_wf_param_in_rpitit.stderr

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ LL | trait Trait<const N: dyn Trait = bar> {
55
| ^^^ not found in this scope
66

77
error[E0391]: cycle detected when computing type of `Trait::N`
8+
--> $DIR/not_wf_param_in_rpitit.rs:3:13
9+
|
10+
LL | trait Trait<const N: dyn Trait = bar> {
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^
12+
|
13+
note: ...which requires computing type and type-dependent definitions of `Trait::N`...
814
--> $DIR/not_wf_param_in_rpitit.rs:3:26
915
|
1016
LL | trait Trait<const N: dyn Trait = bar> {
1117
| ^^^^^
12-
|
13-
= note: ...which immediately requires computing type of `Trait::N` again
18+
= note: ...which again requires computing type of `Trait::N`, completing the cycle
1419
note: cycle used when checking that `Trait` is well-formed
1520
--> $DIR/not_wf_param_in_rpitit.rs:3:1
1621
|

tests/ui/consts/issue-103790.stderr

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ LL | struct S<const S: (), const S: S<S> = { S }>;
2323
| +++
2424

2525
error[E0391]: cycle detected when computing type of `S::S`
26+
--> $DIR/issue-103790.rs:4:23
27+
|
28+
LL | struct S<const S: (), const S: S = { S }>;
29+
| ^^^^^^^^^^^^^^^^^^
30+
|
31+
note: ...which requires computing type and type-dependent definitions of `S::S`...
2632
--> $DIR/issue-103790.rs:4:32
2733
|
2834
LL | struct S<const S: (), const S: S = { S }>;
2935
| ^
30-
|
31-
= note: ...which immediately requires computing type of `S::S` again
36+
= note: ...which again requires computing type of `S::S`, completing the cycle
3237
note: cycle used when checking that `S` is well-formed
3338
--> $DIR/issue-103790.rs:4:1
3439
|

tests/ui/cycle-trait/cycle-trait-default-type-trait.stderr

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
error[E0391]: cycle detected when computing type of `Foo::X`
2+
--> $DIR/cycle-trait-default-type-trait.rs:4:11
3+
|
4+
LL | trait Foo<X = Box<dyn Foo>> {
5+
| ^^^^^^^^^^^^^^^^
6+
|
7+
note: ...which requires computing type and type-dependent definitions of `Foo::X`...
28
--> $DIR/cycle-trait-default-type-trait.rs:4:23
39
|
410
LL | trait Foo<X = Box<dyn Foo>> {
511
| ^^^
6-
|
7-
= note: ...which immediately requires computing type of `Foo::X` again
12+
= note: ...which again requires computing type of `Foo::X`, completing the cycle
813
note: cycle used when checking that `Foo` is well-formed
914
--> $DIR/cycle-trait-default-type-trait.rs:4:1
1015
|

tests/ui/delegation/unsupported.current.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsup
44
LL | reuse to_reuse::opaque_ret;
55
| ^^^^^^^^^^
66
|
7+
note: ...which requires computing type and type-dependent definitions of `opaque::<impl at $DIR/unsupported.rs:29:5: 29:24>::opaque_ret::{anon_assoc#0}`...
8+
--> $DIR/unsupported.rs:30:25
9+
|
10+
LL | reuse to_reuse::opaque_ret;
11+
| ^^^^^^^^^^
712
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
813
--> $DIR/unsupported.rs:30:25
914
|
@@ -23,6 +28,11 @@ error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsup
2328
LL | reuse ToReuse::opaque_ret;
2429
| ^^^^^^^^^^
2530
|
31+
note: ...which requires computing type and type-dependent definitions of `opaque::<impl at $DIR/unsupported.rs:32:5: 32:25>::opaque_ret::{anon_assoc#0}`...
32+
--> $DIR/unsupported.rs:33:24
33+
|
34+
LL | reuse ToReuse::opaque_ret;
35+
| ^^^^^^^^^^
2636
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
2737
--> $DIR/unsupported.rs:33:24
2838
|

tests/ui/delegation/unsupported.next.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsup
44
LL | reuse to_reuse::opaque_ret;
55
| ^^^^^^^^^^
66
|
7+
note: ...which requires computing type and type-dependent definitions of `opaque::<impl at $DIR/unsupported.rs:29:5: 29:24>::opaque_ret::{anon_assoc#0}`...
8+
--> $DIR/unsupported.rs:30:25
9+
|
10+
LL | reuse to_reuse::opaque_ret;
11+
| ^^^^^^^^^^
712
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
813
--> $DIR/unsupported.rs:30:25
914
|
@@ -23,6 +28,11 @@ error[E0391]: cycle detected when computing type of `opaque::<impl at $DIR/unsup
2328
LL | reuse ToReuse::opaque_ret;
2429
| ^^^^^^^^^^
2530
|
31+
note: ...which requires computing type and type-dependent definitions of `opaque::<impl at $DIR/unsupported.rs:32:5: 32:25>::opaque_ret::{anon_assoc#0}`...
32+
--> $DIR/unsupported.rs:33:24
33+
|
34+
LL | reuse ToReuse::opaque_ret;
35+
| ^^^^^^^^^^
2636
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
2737
--> $DIR/unsupported.rs:33:24
2838
|

tests/ui/generic-associated-types/unknown-lifetime-ice-119827.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ LL | trait Foo {
77
note: ...which requires computing type of `<impl at $DIR/unknown-lifetime-ice-119827.rs:8:1: 8:26>`...
88
--> $DIR/unknown-lifetime-ice-119827.rs:8:1
99
|
10+
LL | impl Foo for Box<dyn Foo> {}
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
12+
note: ...which requires computing type and type-dependent definitions of `<impl at $DIR/unknown-lifetime-ice-119827.rs:8:1: 8:26>`...
13+
--> $DIR/unknown-lifetime-ice-119827.rs:8:1
14+
|
1015
LL | impl Foo for Box<dyn Foo> {}
1116
| ^^^^^^^^^^^^^^^^^^^^^^^^^
1217
= note: ...which again requires finding trait impls of `Foo`, completing the cycle

tests/ui/impl-trait/auto-trait-leakage/auto-trait-leak.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ LL | send(cycle1().clone());
7272
| ^^^^^^^^^^^^^^^^^^^^^^
7373
= note: ...which requires evaluating trait selection obligation `cycle1::{opaque#0}: core::marker::Send`...
7474
= note: ...which again requires computing type of opaque `cycle1::{opaque#0}`, completing the cycle
75-
note: cycle used when computing type of `cycle1::{opaque#0}`
75+
note: cycle used when computing type and type-dependent definitions of `cycle1::{opaque#0}`
7676
--> $DIR/auto-trait-leak.rs:11:16
7777
|
7878
LL | fn cycle1() -> impl Clone {

tests/ui/impl-trait/in-trait/method-compatability-via-leakage-cycle.current.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ error[E0391]: cycle detected when computing type of `<impl at $DIR/method-compat
44
LL | fn foo(b: bool) -> impl Sized {
55
| ^^^^^^^^^^
66
|
7+
note: ...which requires computing type and type-dependent definitions of `<impl at $DIR/method-compatability-via-leakage-cycle.rs:17:1: 17:19>::foo::{anon_assoc#0}`...
8+
--> $DIR/method-compatability-via-leakage-cycle.rs:21:24
9+
|
10+
LL | fn foo(b: bool) -> impl Sized {
11+
| ^^^^^^^^^^
712
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
813
--> $DIR/method-compatability-via-leakage-cycle.rs:21:24
914
|

tests/ui/impl-trait/in-trait/method-compatability-via-leakage-cycle.next.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ error[E0391]: cycle detected when computing type of `<impl at $DIR/method-compat
44
LL | fn foo(b: bool) -> impl Sized {
55
| ^^^^^^^^^^
66
|
7+
note: ...which requires computing type and type-dependent definitions of `<impl at $DIR/method-compatability-via-leakage-cycle.rs:17:1: 17:19>::foo::{anon_assoc#0}`...
8+
--> $DIR/method-compatability-via-leakage-cycle.rs:21:24
9+
|
10+
LL | fn foo(b: bool) -> impl Sized {
11+
| ^^^^^^^^^^
712
note: ...which requires comparing an impl and trait method signature, inferring any hidden `impl Trait` types in the process...
813
--> $DIR/method-compatability-via-leakage-cycle.rs:21:5
914
|
@@ -14,6 +19,11 @@ note: ...which requires computing type of `<impl at $DIR/method-compatability-vi
1419
|
1520
LL | fn foo(b: bool) -> impl Sized {
1621
| ^^^^^^^^^^
22+
note: ...which requires computing type and type-dependent definitions of `<impl at $DIR/method-compatability-via-leakage-cycle.rs:17:1: 17:19>::foo::{opaque#0}`...
23+
--> $DIR/method-compatability-via-leakage-cycle.rs:21:24
24+
|
25+
LL | fn foo(b: bool) -> impl Sized {
26+
| ^^^^^^^^^^
1727
note: ...which requires computing type of opaque `<impl at $DIR/method-compatability-via-leakage-cycle.rs:17:1: 17:19>::foo::{opaque#0}`...
1828
--> $DIR/method-compatability-via-leakage-cycle.rs:21:24
1929
|

0 commit comments

Comments
 (0)