From 6ab8fe223ec75b74c01b4e4fa84db12a5c62f648 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sat, 21 Nov 2020 20:25:09 -0300 Subject: [PATCH] Bless tests --- src/test/incremental/cyclic-trait-hierarchy.rs | 10 +++++----- .../cycle-trait/cycle-trait-supertrait-direct.stderr | 4 ++-- .../cycle-trait/cycle-trait-supertrait-indirect.stderr | 6 +++--- src/test/ui/issues/issue-12511.stderr | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/test/incremental/cyclic-trait-hierarchy.rs b/src/test/incremental/cyclic-trait-hierarchy.rs index 03bb5eea765c..b502e7207d56 100644 --- a/src/test/incremental/cyclic-trait-hierarchy.rs +++ b/src/test/incremental/cyclic-trait-hierarchy.rs @@ -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() {} diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr b/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr index 235f9088710c..3635803a1c57 100644 --- a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr +++ b/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 { @@ -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 | diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr b/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr index 2df311f282ad..74cc41665f52 100644 --- a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr +++ b/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr @@ -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 { @@ -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 { } @@ -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 | diff --git a/src/test/ui/issues/issue-12511.stderr b/src/test/ui/issues/issue-12511.stderr index 6450b7cad0c7..d1b0e63054f2 100644 --- a/src/test/ui/issues/issue-12511.stderr +++ b/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 { @@ -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 { @@ -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 |