Skip to content

Commit 4406805

Browse files
committed
Update tests
1 parent 2ca4964 commit 4406805

9 files changed

+31
-61
lines changed

src/test/ui/cycle-projection-based-on-where-clause.rs

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/test/ui/cycle-projection-based-on-where-clause.stderr

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
error[E0391]: cycle detected when computing the supertraits of `Chromosome`
2+
--> $DIR/cycle-trait-supertrait-direct.rs:3:1
3+
|
4+
LL | trait Chromosome: Chromosome {
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
note: ...which requires computing the supertraits of `Chromosome`...
28
--> $DIR/cycle-trait-supertrait-direct.rs:3:19
39
|
410
LL | trait Chromosome: Chromosome {
511
| ^^^^^^^^^^
6-
|
712
= note: ...which again requires computing the supertraits of `Chromosome`, completing the cycle
813
note: cycle used when collecting item types in top-level module
914
--> $DIR/cycle-trait-supertrait-direct.rs:3:1

src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
error[E0391]: cycle detected when computing the supertraits of `B`
2+
--> $DIR/cycle-trait-supertrait-indirect.rs:7:1
3+
|
4+
LL | trait B: C {
5+
| ^^^^^^^^^^
6+
|
7+
note: ...which requires computing the supertraits of `B`...
28
--> $DIR/cycle-trait-supertrait-indirect.rs:7:10
39
|
410
LL | trait B: C {
511
| ^
12+
note: ...which requires computing the supertraits of `C`...
13+
--> $DIR/cycle-trait-supertrait-indirect.rs:11:1
614
|
15+
LL | trait C: B { }
16+
| ^^^^^^^^^^
717
note: ...which requires computing the supertraits of `C`...
818
--> $DIR/cycle-trait-supertrait-indirect.rs:11:10
919
|

src/test/ui/issues/issue-12511.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
error[E0391]: cycle detected when computing the supertraits of `T1`
2+
--> $DIR/issue-12511.rs:1:1
3+
|
4+
LL | trait T1 : T2 {
5+
| ^^^^^^^^^^^^^
6+
|
7+
note: ...which requires computing the supertraits of `T1`...
28
--> $DIR/issue-12511.rs:1:12
39
|
410
LL | trait T1 : T2 {
511
| ^^
12+
note: ...which requires computing the supertraits of `T2`...
13+
--> $DIR/issue-12511.rs:5:1
614
|
15+
LL | trait T2 : T1 {
16+
| ^^^^^^^^^^^^^
717
note: ...which requires computing the supertraits of `T2`...
818
--> $DIR/issue-12511.rs:5:12
919
|

src/test/ui/issues/issue-20772.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | | {}
77
| |__^
88
|
99
= note: ...which again requires computing the supertraits of `T`, completing the cycle
10-
note: cycle used when collecting item types in top-level module
10+
note: cycle used when computing the supertraits of `T`
1111
--> $DIR/issue-20772.rs:1:1
1212
|
1313
LL | / trait T : Iterator<Item=Self::Item>

src/test/ui/issues/issue-20825.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | pub trait Processor: Subscriber<Input = Self::Input> {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: ...which again requires computing the supertraits of `Processor`, completing the cycle
8-
note: cycle used when collecting item types in top-level module
8+
note: cycle used when computing the supertraits of `Processor`
99
--> $DIR/issue-20825.rs:5:1
1010
|
1111
LL | pub trait Processor: Subscriber<Input = Self::Input> {

src/test/ui/issues/issue-22673.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
trait Expr : PartialEq<Self::Item> {
2-
//~^ ERROR: cycle detected
1+
// check-pass
2+
3+
trait Expr: PartialEq<Self::Item> {
34
type Item;
45
}
56

src/test/ui/issues/issue-22673.stderr

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)