Skip to content

Commit

Permalink
Rollup merge of #104575 - lcnr:dedup-tests, r=jackh726
Browse files Browse the repository at this point in the history
deduplicate tests

originally added in #100514. Using revisions for this reduces the amount of tests in the repo
  • Loading branch information
Dylan-DPC committed Nov 19, 2022
2 parents 3c6fc06 + 4e504c7 commit 686c170
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 39 deletions.
12 changes: 0 additions & 12 deletions src/test/ui/coherence/issue-100191-2.rs

This file was deleted.

21 changes: 0 additions & 21 deletions src/test/ui/coherence/issue-100191.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
--> $DIR/issue-43037.rs:17:6
--> $DIR/issue-43037.rs:19:6
|
LL | impl<T> From<<A<T> as Z>::Assoc> for T {}
| ^ type parameter `T` must be used as the type parameter for some local type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
--> $DIR/issue-100191.rs:18:6
--> $DIR/issue-43037.rs:19:6
|
LL | impl<T> From<<A<T> as Z>::Assoc> for T {}
| ^ type parameter `T` must be used as the type parameter for some local type
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/specialization/issue-43037.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// revisions: current negative
#![feature(specialization)]
#![cfg_attr(negative, feature(with_negative_coherence))]
#![allow(incomplete_features)]

trait X {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0275]: overflow evaluating the requirement `T: Trait<_>`
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`issue_45814`)
note: required for `T` to implement `Trait<_>`
--> $DIR/issue-45814.rs:8:20
--> $DIR/issue-45814.rs:9:20
|
LL | default impl<T, U> Trait<T> for U {}
| ^^^^^^^^ ^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error[E0275]: overflow evaluating the requirement `T: Trait<_>`
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`issue_100191_2`)
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`issue_45814`)
note: required for `T` to implement `Trait<_>`
--> $DIR/issue-100191-2.rs:8:20
--> $DIR/issue-45814.rs:9:20
|
LL | default impl<T, U> Trait<T> for U {}
| ^^^^^^^^ ^
Expand Down
3 changes: 2 additions & 1 deletion src/test/ui/specialization/issue-45814.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//~ ERROR overflow evaluating the requirement `T: Trait<_>`

// revisions: current negative
#![feature(specialization)]
#![cfg_attr(negative, feature(with_negative_coherence))]
#![allow(incomplete_features)]

pub trait Trait<T> {}
Expand Down

0 comments on commit 686c170

Please sign in to comment.