Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
100 changed files
with
1,008 additions
and
127 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/test/ui/coherence/auxiliary/re_rebalance_coherence_lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
pub trait Backend{} | ||
pub trait SupportsDefaultKeyword {} | ||
|
||
impl SupportsDefaultKeyword for Postgres {} | ||
|
||
pub struct Postgres; | ||
|
||
impl Backend for Postgres {} | ||
|
||
pub struct AstPass<DB>(::std::marker::PhantomData<DB>); | ||
|
||
pub trait QueryFragment<DB: Backend> {} | ||
|
||
|
||
#[derive(Debug, Clone, Copy)] | ||
pub struct BatchInsert<'a, T: 'a, Tab> { | ||
_marker: ::std::marker::PhantomData<(&'a T, Tab)>, | ||
} | ||
|
||
impl<'a, T:'a, Tab, DB> QueryFragment<DB> for BatchInsert<'a, T, Tab> | ||
where DB: SupportsDefaultKeyword + Backend, | ||
{} |
2 changes: 1 addition & 1 deletion
2
.../ui/coherence/coherence-all-remote.stderr → ...coherence/coherence-all-remote.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`) | ||
--> $DIR/coherence-all-remote.rs:9:1 | ||
| | ||
LL | impl<T> Remote1<T> for isize { } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type | ||
| | ||
= note: only traits defined in the current crate can be implemented for a type parameter | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0210`. |
2 changes: 1 addition & 1 deletion
2
...i/coherence/coherence-bigint-param.stderr → ...herence/coherence-bigint-param.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`) | ||
--> $DIR/coherence-bigint-param.rs:11:1 | ||
| | ||
LL | impl<T> Remote1<BigInt> for T { } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type | ||
| | ||
= note: only traits defined in the current crate can be implemented for a type parameter | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0210`. |
4 changes: 2 additions & 2 deletions
4
...conflicts-with-blanket-implemented.stderr → ...licts-with-blanket-implemented.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0119]: conflicting implementations of trait `MyTrait`: | ||
--> $DIR/coherence-blanket-conflicts-with-blanket-implemented.rs:28:1 | ||
| | ||
LL | impl<T:Even> MyTrait for T { | ||
| -------------------------- first implementation here | ||
... | ||
LL | impl<T:Odd> MyTrait for T { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
4 changes: 2 additions & 2 deletions
4
...nflicts-with-blanket-unimplemented.stderr → ...cts-with-blanket-unimplemented.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0119]: conflicting implementations of trait `MyTrait`: | ||
--> $DIR/coherence-blanket-conflicts-with-blanket-unimplemented.rs:24:1 | ||
| | ||
LL | impl<T:Even> MyTrait for T { | ||
| -------------------------- first implementation here | ||
... | ||
LL | impl<T:Odd> MyTrait for T { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
4 changes: 2 additions & 2 deletions
4
...onflicts-with-specific-cross-crate.stderr → ...icts-with-specific-cross-crate.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
error[E0119]: conflicting implementations of trait `go_trait::GoMut` for type `MyThingy`: | ||
--> $DIR/coherence-blanket-conflicts-with-specific-cross-crate.rs:18:1 | ||
| | ||
LL | impl GoMut for MyThingy { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: conflicting implementation in crate `go_trait`: | ||
- impl<G> go_trait::GoMut for G | ||
where G: go_trait::Go; | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
4 changes: 2 additions & 2 deletions
4
...flicts-with-specific-multidispatch.stderr → ...ts-with-specific-multidispatch.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/test/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0119]: conflicting implementations of trait `MyTrait<MyType>` for type `MyType`: | ||
--> $DIR/coherence-blanket-conflicts-with-specific-multidispatch.rs:26:1 | ||
| | ||
LL | impl<T> MyTrait<T> for T { | ||
| ------------------------ first implementation here | ||
... | ||
LL | impl MyTrait<MyType> for MyType { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
4 changes: 2 additions & 2 deletions
4
...nket-conflicts-with-specific-trait.stderr → ...-conflicts-with-specific-trait.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/test/ui/coherence/coherence-blanket-conflicts-with-specific-trait.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0119]: conflicting implementations of trait `MyTrait` for type `MyType`: | ||
--> $DIR/coherence-blanket-conflicts-with-specific-trait.rs:24:1 | ||
| | ||
LL | impl<T:OtherTrait> MyTrait for T { | ||
| -------------------------------- first implementation here | ||
... | ||
LL | impl MyTrait for MyType { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
4 changes: 2 additions & 2 deletions
4
...ce-blanket-conflicts-with-specific.stderr → ...lanket-conflicts-with-specific.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/test/ui/coherence/coherence-blanket-conflicts-with-specific.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0119]: conflicting implementations of trait `MyTrait` for type `MyType`: | ||
--> $DIR/coherence-blanket-conflicts-with-specific.rs:23:1 | ||
| | ||
LL | impl<T> MyTrait for T { | ||
| --------------------- first implementation here | ||
... | ||
LL | impl MyTrait for MyType { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/test/ui/coherence/coherence-conflicting-negative-trait-impl.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<_>`: | ||
--> $DIR/coherence-conflicting-negative-trait-impl.rs:13:1 | ||
| | ||
LL | unsafe impl<T: MyTrait+'static> Send for TestType<T> {} | ||
| ---------------------------------------------------- first implementation here | ||
LL | | ||
LL | impl<T: MyTrait> !Send for TestType<T> {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>` | ||
|
||
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<i32>`: | ||
--> $DIR/coherence-conflicting-negative-trait-impl.rs:19:1 | ||
| | ||
LL | unsafe impl<T:'static> Send for TestType<T> {} | ||
| ------------------------------------------- first implementation here | ||
LL | | ||
LL | impl !Send for TestType<i32> {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<i32>` | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types | ||
--> $DIR/coherence-cow.rs:18:1 | ||
| | ||
LL | impl<T> Remote for Pair<T,Cover<T>> { } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate | ||
| | ||
= note: the impl does not reference any types defined in this crate | ||
= note: define and implement a trait or new type instead | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0117`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types | ||
--> $DIR/coherence-cow.rs:23:1 | ||
| | ||
LL | impl<T> Remote for Pair<Cover<T>,T> { } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate | ||
| | ||
= note: the impl does not reference any types defined in this crate | ||
= note: define and implement a trait or new type instead | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0117`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types | ||
--> $DIR/coherence-cow.rs:28:1 | ||
| | ||
LL | impl<T,U> Remote for Pair<Cover<T>,U> { } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate | ||
| | ||
= note: the impl does not reference any types defined in this crate | ||
= note: define and implement a trait or new type instead | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0117`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/test/ui/coherence/coherence-cross-crate-conflict.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
error[E0119]: conflicting implementations of trait `trait_impl_conflict::Foo` for type `isize`: | ||
--> $DIR/coherence-cross-crate-conflict.rs:12:1 | ||
| | ||
LL | impl<A> Foo for A { | ||
| ^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: conflicting implementation in crate `trait_impl_conflict`: | ||
- impl trait_impl_conflict::Foo for isize; | ||
|
||
error[E0210]: type parameter `A` must be used as the type parameter for some local type (e.g., `MyStruct<A>`) | ||
--> $DIR/coherence-cross-crate-conflict.rs:12:1 | ||
| | ||
LL | impl<A> Foo for A { | ||
| ^^^^^^^^^^^^^^^^^ type parameter `A` must be used as the type parameter for some local type | ||
| | ||
= note: only traits defined in the current crate can be implemented for a type parameter | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Some errors occurred: E0119, E0210. | ||
For more information about an error, try `rustc --explain E0119`. |
4 changes: 2 additions & 2 deletions
4
...rence/coherence-default-trait-impl.stderr → ...e/coherence-default-trait-impl.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/test/ui/coherence/coherence-default-trait-impl.re.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
error[E0199]: implementing the trait `MySafeTrait` is not unsafe | ||
--> $DIR/coherence-default-trait-impl.rs:10:1 | ||
| | ||
LL | unsafe impl MySafeTrait for Foo {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0200]: the trait `MyUnsafeTrait` requires an `unsafe impl` declaration | ||
--> $DIR/coherence-default-trait-impl.rs:16:1 | ||
| | ||
LL | impl MyUnsafeTrait for Foo {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Some errors occurred: E0199, E0200. | ||
For more information about an error, try `rustc --explain E0199`. |
4 changes: 2 additions & 2 deletions
4
...erence/coherence-error-suppression.stderr → ...ce/coherence-error-suppression.old.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.