]> git.lizzy.rs Git - rust.git/commitdiff
Fix a minor grammar nit, update UI tests
authorJames Munns <james.munns@ferrous-systems.com>
Wed, 18 Sep 2019 22:16:16 +0000 (00:16 +0200)
committerJames Munns <james.munns@ferrous-systems.com>
Wed, 18 Sep 2019 22:16:16 +0000 (00:16 +0200)
16 files changed:
src/librustc/traits/select.rs
src/test/ui/codemap_tests/overlapping_inherent_impls.stderr
src/test/ui/coherence/coherence-overlap-upstream-inherent.old.stderr
src/test/ui/coherence/coherence-overlap-upstream-inherent.re.stderr
src/test/ui/coherence/coherence-overlap-upstream.old.stderr
src/test/ui/coherence/coherence-overlap-upstream.re.stderr
src/test/ui/coherence/coherence-projection-conflict-orphan.old.stderr
src/test/ui/coherence/coherence-projection-conflict-orphan.re.stderr
src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.old.stderr
src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.re.stderr
src/test/ui/coherence/coherence_copy_like_err_struct.old.stderr
src/test/ui/coherence/coherence_copy_like_err_struct.re.stderr
src/test/ui/coherence/coherence_copy_like_err_tuple.old.stderr
src/test/ui/coherence/coherence_copy_like_err_tuple.re.stderr
src/test/ui/issues/issue-48728.stderr
src/test/ui/specialization/issue-52050.stderr

index 217c887d5254eb66bcee93b126fb557500af9db7..a54bc05f169615917beae66bd191b58209457937 100644 (file)
@@ -134,7 +134,7 @@ pub fn intercrate_ambiguity_hint(&self) -> String {
                     String::new()
                 };
                 format!(
-                    "upstream crates may add new impl of trait `{}`{} \
+                    "upstream crates may add new impl of trait `{}`{} \
                      in future versions",
                     trait_desc, self_desc
                 )
index 70c1093e9ed483bfddaac5e137c146be3b28a6a4..8fe24bae7c6ca1e995cca02707235bf511608406 100644 (file)
@@ -25,7 +25,7 @@ LL |     fn baz(&self) {}
 LL |     fn baz(&self) {}
    |     ---------------- other definition for `baz`
    |
-   = note: upstream crates may add new impl of trait `std::marker::Copy` for type `std::vec::Vec<_>` in future versions
+   = note: upstream crates may add new impl of trait `std::marker::Copy` for type `std::vec::Vec<_>` in future versions
 
 error: aborting due to 3 previous errors
 
index 928b65e003918323b570ea07e61f43c316115872..3a3e1a4afc3bb9596b4f7cb004e2cffe25491a91 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T> A<T> where T: Remote { fn dummy(&self) { } }
 LL | impl A<i16> { fn dummy(&self) { } }
    |               ------------------- other definition for `dummy`
    |
-   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
+   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
 
 error: aborting due to previous error
 
index 928b65e003918323b570ea07e61f43c316115872..3a3e1a4afc3bb9596b4f7cb004e2cffe25491a91 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T> A<T> where T: Remote { fn dummy(&self) { } }
 LL | impl A<i16> { fn dummy(&self) { } }
    |               ------------------- other definition for `dummy`
    |
-   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
+   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
 
 error: aborting due to previous error
 
index 6c3484c2d8c4df3ca0ac3d9deee704c982ea70dc..bd6f59f346b6d6937e0329c8ec2c2b7f1aed913a 100644 (file)
@@ -6,7 +6,7 @@ LL | impl<T> Foo for T where T: Remote {}
 LL | impl Foo for i16 {}
    | ^^^^^^^^^^^^^^^^ conflicting implementation for `i16`
    |
-   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
+   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
 
 error: aborting due to previous error
 
index 6c3484c2d8c4df3ca0ac3d9deee704c982ea70dc..bd6f59f346b6d6937e0329c8ec2c2b7f1aed913a 100644 (file)
@@ -6,7 +6,7 @@ LL | impl<T> Foo for T where T: Remote {}
 LL | impl Foo for i16 {}
    | ^^^^^^^^^^^^^^^^ conflicting implementation for `i16`
    |
-   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
+   = note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
 
 error: aborting due to previous error
 
index cde9360ddf2c8f92b56611fc39c694df9a4b533e..26dadec5bba7ed72fb7f38650e86b635d48711e2 100644 (file)
@@ -3,11 +3,11 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`:
    |
 LL | impl Foo<i32> for i32 { }
    | --------------------- first implementation here
-LL | 
+LL |
 LL | impl<A:Iterator> Foo<A::Item> for A { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
    |
-   = note: upstream crates may add new impl of trait `std::iter::Iterator` for type `i32` in future versions
+   = note: upstream crates may add new impl of trait `std::iter::Iterator` for type `i32` in future versions
 
 error: aborting due to previous error
 
index cde9360ddf2c8f92b56611fc39c694df9a4b533e..26dadec5bba7ed72fb7f38650e86b635d48711e2 100644 (file)
@@ -3,11 +3,11 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`:
    |
 LL | impl Foo<i32> for i32 { }
    | --------------------- first implementation here
-LL | 
+LL |
 LL | impl<A:Iterator> Foo<A::Item> for A { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
    |
-   = note: upstream crates may add new impl of trait `std::iter::Iterator` for type `i32` in future versions
+   = note: upstream crates may add new impl of trait `std::iter::Iterator` for type `i32` in future versions
 
 error: aborting due to previous error
 
index 12c7a1f977c3fefdd878d8b73309af7ee6b1077a..4d9f55c1215471cc99eb97190130b9bdafb1337f 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
 LL | impl MyTrait for lib::MyFundamentalStruct<(MyType,)> { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyFundamentalStruct<(MyType,)>`
    |
-   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
+   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
 
 error: aborting due to previous error
 
index 12c7a1f977c3fefdd878d8b73309af7ee6b1077a..4d9f55c1215471cc99eb97190130b9bdafb1337f 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
 LL | impl MyTrait for lib::MyFundamentalStruct<(MyType,)> { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyFundamentalStruct<(MyType,)>`
    |
-   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
+   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
 
 error: aborting due to previous error
 
index 1b6c62e9bf3a802b7c21b36102200be6eec0d172..f0bcf659bb696946741bdccbdf5dd9af2b727ccd 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
 LL | impl MyTrait for lib::MyStruct<MyType> { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyStruct<MyType>`
    |
-   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
+   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
 
 error: aborting due to previous error
 
index 1b6c62e9bf3a802b7c21b36102200be6eec0d172..f0bcf659bb696946741bdccbdf5dd9af2b727ccd 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
 LL | impl MyTrait for lib::MyStruct<MyType> { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyStruct<MyType>`
    |
-   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
+   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
 
 error: aborting due to previous error
 
index 11bd788c761530cdedc7182762d1d4414e167a1e..a40153af2cf30daf331b75e2086eab64f2375402 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
 LL | impl MyTrait for (MyType,) { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(MyType,)`
    |
-   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
+   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
 
 error: aborting due to previous error
 
index 11bd788c761530cdedc7182762d1d4414e167a1e..a40153af2cf30daf331b75e2086eab64f2375402 100644 (file)
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
 LL | impl MyTrait for (MyType,) { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(MyType,)`
    |
-   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
+   = note: upstream crates may add new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
 
 error: aborting due to previous error
 
index 99a9bf9903e25702deef4acc6f25d4550ccf61af..84c10d8fbc47728c0dabb807ae250f7f75ab35d7 100644 (file)
@@ -7,7 +7,7 @@ LL | #[derive(Clone)]
 LL | impl<T: Clone + ?Sized> Clone for Node<[T]> {
    | ------------------------------------------- first implementation here
    |
-   = note: upstream crates may add new impl of trait `std::clone::Clone` for type `[_]` in future versions
+   = note: upstream crates may add new impl of trait `std::clone::Clone` for type `[_]` in future versions
 
 error: aborting due to previous error
 
index dcb34f3ad4836518aad8be94b7fd533d51f91a47..2a0f127bdaf60bc002b9876ce24979f0df83e1d8 100644 (file)
@@ -7,11 +7,11 @@ LL | |     I: Iterator,
 LL | | {
 LL | | }
    | |_- first implementation here
-LL | 
+LL |
 LL |   impl IntoPyDictPointer for ()
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
    |
-   = note: upstream crates may add new impl of trait `std::iter::Iterator` for type `()` in future versions
+   = note: upstream crates may add new impl of trait `std::iter::Iterator` for type `()` in future versions
 
 error: aborting due to previous error