Skip to content

Commit 2bc436e

Browse files
committed
Add missing files
1 parent d6ffd88 commit 2bc436e

File tree

100 files changed

+1008
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1008
-127
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
pub trait Backend{}
3+
pub trait SupportsDefaultKeyword {}
4+
5+
impl SupportsDefaultKeyword for Postgres {}
6+
7+
pub struct Postgres;
8+
9+
impl Backend for Postgres {}
10+
11+
pub struct AstPass<DB>(::std::marker::PhantomData<DB>);
12+
13+
pub trait QueryFragment<DB: Backend> {}
14+
15+
16+
#[derive(Debug, Clone, Copy)]
17+
pub struct BatchInsert<'a, T: 'a, Tab> {
18+
_marker: ::std::marker::PhantomData<(&'a T, Tab)>,
19+
}
20+
21+
impl<'a, T:'a, Tab, DB> QueryFragment<DB> for BatchInsert<'a, T, Tab>
22+
where DB: SupportsDefaultKeyword + Backend,
23+
{}

src/test/ui/coherence/coherence-all-remote.stderr renamed to src/test/ui/coherence/coherence-all-remote.old.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2-
--> $DIR/coherence-all-remote.rs:6:1
2+
--> $DIR/coherence-all-remote.rs:9:1
33
|
44
LL | impl<T> Remote1<T> for isize { }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2+
--> $DIR/coherence-all-remote.rs:9:1
3+
|
4+
LL | impl<T> Remote1<T> for isize { }
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type
6+
|
7+
= note: only traits defined in the current crate can be implemented for a type parameter
8+
9+
error: aborting due to previous error
10+
11+
For more information about this error, try `rustc --explain E0210`.

src/test/ui/coherence/coherence-bigint-param.stderr renamed to src/test/ui/coherence/coherence-bigint-param.old.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2-
--> $DIR/coherence-bigint-param.rs:8:1
2+
--> $DIR/coherence-bigint-param.rs:11:1
33
|
44
LL | impl<T> Remote1<BigInt> for T { }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2+
--> $DIR/coherence-bigint-param.rs:11:1
3+
|
4+
LL | impl<T> Remote1<BigInt> for T { }
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type
6+
|
7+
= note: only traits defined in the current crate can be implemented for a type parameter
8+
9+
error: aborting due to previous error
10+
11+
For more information about this error, try `rustc --explain E0210`.

src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.stderr renamed to src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0119]: conflicting implementations of trait `MyTrait`:
2-
--> $DIR/coherence-blanket-conflicts-with-blanket-implemented.rs:24:1
2+
--> $DIR/coherence-blanket-conflicts-with-blanket-implemented.rs:28:1
33
|
44
LL | impl<T:Even> MyTrait for T {
55
| -------------------------- first implementation here
66
...
7-
LL | impl<T:Odd> MyTrait for T { //~ ERROR E0119
7+
LL | impl<T:Odd> MyTrait for T {
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
99

1010
error: aborting due to previous error
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0119]: conflicting implementations of trait `MyTrait`:
2+
--> $DIR/coherence-blanket-conflicts-with-blanket-implemented.rs:28:1
3+
|
4+
LL | impl<T:Even> MyTrait for T {
5+
| -------------------------- first implementation here
6+
...
7+
LL | impl<T:Odd> MyTrait for T {
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.stderr renamed to src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0119]: conflicting implementations of trait `MyTrait`:
2-
--> $DIR/coherence-blanket-conflicts-with-blanket-unimplemented.rs:20:1
2+
--> $DIR/coherence-blanket-conflicts-with-blanket-unimplemented.rs:24:1
33
|
44
LL | impl<T:Even> MyTrait for T {
55
| -------------------------- first implementation here
66
...
7-
LL | impl<T:Odd> MyTrait for T { //~ ERROR E0119
7+
LL | impl<T:Odd> MyTrait for T {
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
99

1010
error: aborting due to previous error
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0119]: conflicting implementations of trait `MyTrait`:
2+
--> $DIR/coherence-blanket-conflicts-with-blanket-unimplemented.rs:24:1
3+
|
4+
LL | impl<T:Even> MyTrait for T {
5+
| -------------------------- first implementation here
6+
...
7+
LL | impl<T:Odd> MyTrait for T {
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.stderr renamed to src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0119]: conflicting implementations of trait `go_trait::GoMut` for type `MyThingy`:
2-
--> $DIR/coherence-blanket-conflicts-with-specific-cross-crate.rs:15:1
2+
--> $DIR/coherence-blanket-conflicts-with-specific-cross-crate.rs:18:1
33
|
4-
LL | impl GoMut for MyThingy { //~ ERROR conflicting implementations
4+
LL | impl GoMut for MyThingy {
55
| ^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: conflicting implementation in crate `go_trait`:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error[E0119]: conflicting implementations of trait `go_trait::GoMut` for type `MyThingy`:
2+
--> $DIR/coherence-blanket-conflicts-with-specific-cross-crate.rs:18:1
3+
|
4+
LL | impl GoMut for MyThingy {
5+
| ^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: conflicting implementation in crate `go_trait`:
8+
- impl<G> go_trait::GoMut for G
9+
where G: go_trait::Go;
10+
11+
error: aborting due to previous error
12+
13+
For more information about this error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.stderr renamed to src/test/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0119]: conflicting implementations of trait `MyTrait<MyType>` for type `MyType`:
2-
--> $DIR/coherence-blanket-conflicts-with-specific-multidispatch.rs:22:1
2+
--> $DIR/coherence-blanket-conflicts-with-specific-multidispatch.rs:26:1
33
|
44
LL | impl<T> MyTrait<T> for T {
55
| ------------------------ first implementation here
66
...
7-
LL | impl MyTrait<MyType> for MyType { //~ ERROR E0119
7+
LL | impl MyTrait<MyType> for MyType {
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType`
99

1010
error: aborting due to previous error
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0119]: conflicting implementations of trait `MyTrait<MyType>` for type `MyType`:
2+
--> $DIR/coherence-blanket-conflicts-with-specific-multidispatch.rs:26:1
3+
|
4+
LL | impl<T> MyTrait<T> for T {
5+
| ------------------------ first implementation here
6+
...
7+
LL | impl MyTrait<MyType> for MyType {
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType`
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-blanket-conflicts-with-specific-trait.stderr renamed to src/test/ui/coherence/coherence-blanket-conflicts-with-specific-trait.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0119]: conflicting implementations of trait `MyTrait` for type `MyType`:
2-
--> $DIR/coherence-blanket-conflicts-with-specific-trait.rs:20:1
2+
--> $DIR/coherence-blanket-conflicts-with-specific-trait.rs:24:1
33
|
44
LL | impl<T:OtherTrait> MyTrait for T {
55
| -------------------------------- first implementation here
66
...
7-
LL | impl MyTrait for MyType { //~ ERROR E0119
7+
LL | impl MyTrait for MyType {
88
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType`
99

1010
error: aborting due to previous error
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0119]: conflicting implementations of trait `MyTrait` for type `MyType`:
2+
--> $DIR/coherence-blanket-conflicts-with-specific-trait.rs:24:1
3+
|
4+
LL | impl<T:OtherTrait> MyTrait for T {
5+
| -------------------------------- first implementation here
6+
...
7+
LL | impl MyTrait for MyType {
8+
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType`
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-blanket-conflicts-with-specific.stderr renamed to src/test/ui/coherence/coherence-blanket-conflicts-with-specific.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0119]: conflicting implementations of trait `MyTrait` for type `MyType`:
2-
--> $DIR/coherence-blanket-conflicts-with-specific.rs:19:1
2+
--> $DIR/coherence-blanket-conflicts-with-specific.rs:23:1
33
|
44
LL | impl<T> MyTrait for T {
55
| --------------------- first implementation here
66
...
7-
LL | impl MyTrait for MyType { //~ ERROR E0119
7+
LL | impl MyTrait for MyType {
88
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType`
99

1010
error: aborting due to previous error
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0119]: conflicting implementations of trait `MyTrait` for type `MyType`:
2+
--> $DIR/coherence-blanket-conflicts-with-specific.rs:23:1
3+
|
4+
LL | impl<T> MyTrait for T {
5+
| --------------------- first implementation here
6+
...
7+
LL | impl MyTrait for MyType {
8+
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyType`
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-conflicting-negative-trait-impl.stderr renamed to src/test/ui/coherence/coherence-conflicting-negative-trait-impl.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<_>`:
2-
--> $DIR/coherence-conflicting-negative-trait-impl.rs:10:1
2+
--> $DIR/coherence-conflicting-negative-trait-impl.rs:13:1
33
|
44
LL | unsafe impl<T: MyTrait+'static> Send for TestType<T> {}
55
| ---------------------------------------------------- first implementation here
@@ -8,7 +8,7 @@ LL | impl<T: MyTrait> !Send for TestType<T> {}
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
99

1010
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<i32>`:
11-
--> $DIR/coherence-conflicting-negative-trait-impl.rs:15:1
11+
--> $DIR/coherence-conflicting-negative-trait-impl.rs:19:1
1212
|
1313
LL | unsafe impl<T:'static> Send for TestType<T> {}
1414
| ------------------------------------------- first implementation here
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<_>`:
2+
--> $DIR/coherence-conflicting-negative-trait-impl.rs:13:1
3+
|
4+
LL | unsafe impl<T: MyTrait+'static> Send for TestType<T> {}
5+
| ---------------------------------------------------- first implementation here
6+
LL |
7+
LL | impl<T: MyTrait> !Send for TestType<T> {}
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
9+
10+
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<i32>`:
11+
--> $DIR/coherence-conflicting-negative-trait-impl.rs:19:1
12+
|
13+
LL | unsafe impl<T:'static> Send for TestType<T> {}
14+
| ------------------------------------------- first implementation here
15+
LL |
16+
LL | impl !Send for TestType<i32> {}
17+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<i32>`
18+
19+
error: aborting due to 2 previous errors
20+
21+
For more information about this error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-cow.a.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2-
--> $DIR/coherence-cow.rs:28:1
2+
--> $DIR/coherence-cow.rs:18:1
33
|
44
LL | impl<T> Remote for Pair<T,Cover<T>> { }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type

src/test/ui/coherence/coherence-cow.b.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2-
--> $DIR/coherence-cow.rs:33:1
2+
--> $DIR/coherence-cow.rs:23:1
33
|
44
LL | impl<T> Remote for Pair<Cover<T>,T> { }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type

src/test/ui/coherence/coherence-cow.c.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2-
--> $DIR/coherence-cow.rs:38:1
2+
--> $DIR/coherence-cow.rs:28:1
33
|
44
LL | impl<T,U> Remote for Pair<Cover<T>,U> { }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` must be used as the type parameter for some local type
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
2+
--> $DIR/coherence-cow.rs:18:1
3+
|
4+
LL | impl<T> Remote for Pair<T,Cover<T>> { }
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
6+
|
7+
= note: the impl does not reference any types defined in this crate
8+
= note: define and implement a trait or new type instead
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0117`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
2+
--> $DIR/coherence-cow.rs:23:1
3+
|
4+
LL | impl<T> Remote for Pair<Cover<T>,T> { }
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
6+
|
7+
= note: the impl does not reference any types defined in this crate
8+
= note: define and implement a trait or new type instead
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0117`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
2+
--> $DIR/coherence-cow.rs:28:1
3+
|
4+
LL | impl<T,U> Remote for Pair<Cover<T>,U> { }
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
6+
|
7+
= note: the impl does not reference any types defined in this crate
8+
= note: define and implement a trait or new type instead
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0117`.

src/test/ui/coherence/coherence-cross-crate-conflict.stderr renamed to src/test/ui/coherence/coherence-cross-crate-conflict.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0119]: conflicting implementations of trait `trait_impl_conflict::Foo` for type `isize`:
2-
--> $DIR/coherence-cross-crate-conflict.rs:8:1
2+
--> $DIR/coherence-cross-crate-conflict.rs:12:1
33
|
44
LL | impl<A> Foo for A {
55
| ^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | impl<A> Foo for A {
88
- impl trait_impl_conflict::Foo for isize;
99

1010
error[E0210]: type parameter `A` must be used as the type parameter for some local type (e.g., `MyStruct<A>`)
11-
--> $DIR/coherence-cross-crate-conflict.rs:8:1
11+
--> $DIR/coherence-cross-crate-conflict.rs:12:1
1212
|
1313
LL | impl<A> Foo for A {
1414
| ^^^^^^^^^^^^^^^^^ type parameter `A` must be used as the type parameter for some local type
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
error[E0119]: conflicting implementations of trait `trait_impl_conflict::Foo` for type `isize`:
2+
--> $DIR/coherence-cross-crate-conflict.rs:12:1
3+
|
4+
LL | impl<A> Foo for A {
5+
| ^^^^^^^^^^^^^^^^^
6+
|
7+
= note: conflicting implementation in crate `trait_impl_conflict`:
8+
- impl trait_impl_conflict::Foo for isize;
9+
10+
error[E0210]: type parameter `A` must be used as the type parameter for some local type (e.g., `MyStruct<A>`)
11+
--> $DIR/coherence-cross-crate-conflict.rs:12:1
12+
|
13+
LL | impl<A> Foo for A {
14+
| ^^^^^^^^^^^^^^^^^ type parameter `A` must be used as the type parameter for some local type
15+
|
16+
= note: only traits defined in the current crate can be implemented for a type parameter
17+
18+
error: aborting due to 2 previous errors
19+
20+
Some errors occurred: E0119, E0210.
21+
For more information about an error, try `rustc --explain E0119`.

src/test/ui/coherence/coherence-default-trait-impl.stderr renamed to src/test/ui/coherence/coherence-default-trait-impl.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0199]: implementing the trait `MySafeTrait` is not unsafe
2-
--> $DIR/coherence-default-trait-impl.rs:7:1
2+
--> $DIR/coherence-default-trait-impl.rs:10:1
33
|
44
LL | unsafe impl MySafeTrait for Foo {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

77
error[E0200]: the trait `MyUnsafeTrait` requires an `unsafe impl` declaration
8-
--> $DIR/coherence-default-trait-impl.rs:12:1
8+
--> $DIR/coherence-default-trait-impl.rs:16:1
99
|
1010
LL | impl MyUnsafeTrait for Foo {}
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
error[E0199]: implementing the trait `MySafeTrait` is not unsafe
2+
--> $DIR/coherence-default-trait-impl.rs:10:1
3+
|
4+
LL | unsafe impl MySafeTrait for Foo {}
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
7+
error[E0200]: the trait `MyUnsafeTrait` requires an `unsafe impl` declaration
8+
--> $DIR/coherence-default-trait-impl.rs:16:1
9+
|
10+
LL | impl MyUnsafeTrait for Foo {}
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12+
13+
error: aborting due to 2 previous errors
14+
15+
Some errors occurred: E0199, E0200.
16+
For more information about an error, try `rustc --explain E0199`.

src/test/ui/coherence/coherence-error-suppression.stderr renamed to src/test/ui/coherence/coherence-error-suppression.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0412]: cannot find type `DoesNotExist` in this scope
2-
--> $DIR/coherence-error-suppression.rs:9:14
2+
--> $DIR/coherence-error-suppression.rs:13:14
33
|
4-
LL | impl Foo for DoesNotExist {} //~ ERROR cannot find type `DoesNotExist` in this scope
4+
LL | impl Foo for DoesNotExist {}
55
| ^^^^^^^^^^^^ not found in this scope
66

77
error: aborting due to previous error

0 commit comments

Comments
 (0)