Skip to content

Commit

Permalink
Bless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Nov 27, 2020
1 parent dd267fe commit 6ab8fe2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/test/incremental/cyclic-trait-hierarchy.rs
Expand Up @@ -3,11 +3,11 @@
// revisions: rpass1 cfail2

#[cfg(rpass1)]
pub trait T2 { }
pub trait T2 {}
#[cfg(cfail2)]
pub trait T2: T1 { }
//[cfail2]~^ ERROR cycle detected when computing the supertraits of `T2`
pub trait T2: T1 {}
//[cfail2]~^ ERROR cycle detected when computing the super predicates of `T2`

pub trait T1: T2 { }
pub trait T1: T2 {}

fn main() { }
fn main() {}
4 changes: 2 additions & 2 deletions src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr
@@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the supertraits of `Chromosome`
error[E0391]: cycle detected when computing the super predicates of `Chromosome`
--> $DIR/cycle-trait-supertrait-direct.rs:3:1
|
LL | trait Chromosome: Chromosome {
Expand All @@ -9,7 +9,7 @@ note: ...which requires computing the supertraits of `Chromosome`...
|
LL | trait Chromosome: Chromosome {
| ^^^^^^^^^^
= note: ...which again requires computing the supertraits of `Chromosome`, completing the cycle
= note: ...which again requires computing the super predicates of `Chromosome`, completing the cycle
note: cycle used when collecting item types in top-level module
--> $DIR/cycle-trait-supertrait-direct.rs:3:1
|
Expand Down
@@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the supertraits of `B`
error[E0391]: cycle detected when computing the super predicates of `B`
--> $DIR/cycle-trait-supertrait-indirect.rs:7:1
|
LL | trait B: C {
Expand All @@ -9,7 +9,7 @@ note: ...which requires computing the supertraits of `B`...
|
LL | trait B: C {
| ^
note: ...which requires computing the supertraits of `C`...
note: ...which requires computing the super predicates of `C`...
--> $DIR/cycle-trait-supertrait-indirect.rs:11:1
|
LL | trait C: B { }
Expand All @@ -19,7 +19,7 @@ note: ...which requires computing the supertraits of `C`...
|
LL | trait C: B { }
| ^
= note: ...which again requires computing the supertraits of `B`, completing the cycle
= note: ...which again requires computing the super predicates of `B`, completing the cycle
note: cycle used when computing the supertraits of `A`
--> $DIR/cycle-trait-supertrait-indirect.rs:4:10
|
Expand Down
6 changes: 3 additions & 3 deletions src/test/ui/issues/issue-12511.stderr
@@ -1,4 +1,4 @@
error[E0391]: cycle detected when computing the supertraits of `T1`
error[E0391]: cycle detected when computing the super predicates of `T1`
--> $DIR/issue-12511.rs:1:1
|
LL | trait T1 : T2 {
Expand All @@ -9,7 +9,7 @@ note: ...which requires computing the supertraits of `T1`...
|
LL | trait T1 : T2 {
| ^^
note: ...which requires computing the supertraits of `T2`...
note: ...which requires computing the super predicates of `T2`...
--> $DIR/issue-12511.rs:5:1
|
LL | trait T2 : T1 {
Expand All @@ -19,7 +19,7 @@ note: ...which requires computing the supertraits of `T2`...
|
LL | trait T2 : T1 {
| ^^
= note: ...which again requires computing the supertraits of `T1`, completing the cycle
= note: ...which again requires computing the super predicates of `T1`, completing the cycle
note: cycle used when collecting item types in top-level module
--> $DIR/issue-12511.rs:1:1
|
Expand Down

0 comments on commit 6ab8fe2

Please sign in to comment.