Skip to content

Commit f233a4c

Browse files
author
James Munns
committed
Fix a minor grammar nit, update UI tests
1 parent 64c0969 commit f233a4c

16 files changed

+19
-19
lines changed

src/librustc/traits/select.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl IntercrateAmbiguityCause {
134134
String::new()
135135
};
136136
format!(
137-
"upstream crates may add new impl of trait `{}`{} \
137+
"upstream crates may add a new impl of trait `{}`{} \
138138
in future versions",
139139
trait_desc, self_desc
140140
)

src/test/ui/codemap_tests/overlapping_inherent_impls.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ LL | fn baz(&self) {}
2525
LL | fn baz(&self) {}
2626
| ---------------- other definition for `baz`
2727
|
28-
= note: upstream crates may add new impl of trait `std::marker::Copy` for type `std::vec::Vec<_>` in future versions
28+
= note: upstream crates may add a new impl of trait `std::marker::Copy` for type `std::vec::Vec<_>` in future versions
2929

3030
error: aborting due to 3 previous errors
3131

src/test/ui/coherence/coherence-overlap-upstream-inherent.old.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T> A<T> where T: Remote { fn dummy(&self) { } }
77
LL | impl A<i16> { fn dummy(&self) { } }
88
| ------------------- other definition for `dummy`
99
|
10-
= note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
10+
= note: upstream crates may add a new impl of trait `coherence_lib::Remote` for type `i16` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence-overlap-upstream-inherent.re.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T> A<T> where T: Remote { fn dummy(&self) { } }
77
LL | impl A<i16> { fn dummy(&self) { } }
88
| ------------------- other definition for `dummy`
99
|
10-
= note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
10+
= note: upstream crates may add a new impl of trait `coherence_lib::Remote` for type `i16` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence-overlap-upstream.old.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | impl<T> Foo for T where T: Remote {}
66
LL | impl Foo for i16 {}
77
| ^^^^^^^^^^^^^^^^ conflicting implementation for `i16`
88
|
9-
= note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
9+
= note: upstream crates may add a new impl of trait `coherence_lib::Remote` for type `i16` in future versions
1010

1111
error: aborting due to previous error
1212

src/test/ui/coherence/coherence-overlap-upstream.re.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | impl<T> Foo for T where T: Remote {}
66
LL | impl Foo for i16 {}
77
| ^^^^^^^^^^^^^^^^ conflicting implementation for `i16`
88
|
9-
= note: upstream crates may add new impl of trait `coherence_lib::Remote` for type `i16` in future versions
9+
= note: upstream crates may add a new impl of trait `coherence_lib::Remote` for type `i16` in future versions
1010

1111
error: aborting due to previous error
1212

src/test/ui/coherence/coherence-projection-conflict-orphan.old.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`:
33
|
44
LL | impl Foo<i32> for i32 { }
55
| --------------------- first implementation here
6-
LL |
6+
LL |
77
LL | impl<A:Iterator> Foo<A::Item> for A { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
99
|
10-
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `i32` in future versions
10+
= note: upstream crates may add a new impl of trait `std::iter::Iterator` for type `i32` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence-projection-conflict-orphan.re.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`:
33
|
44
LL | impl Foo<i32> for i32 { }
55
| --------------------- first implementation here
6-
LL |
6+
LL |
77
LL | impl<A:Iterator> Foo<A::Item> for A { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
99
|
10-
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `i32` in future versions
10+
= note: upstream crates may add a new impl of trait `std::iter::Iterator` for type `i32` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.old.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
77
LL | impl MyTrait for lib::MyFundamentalStruct<(MyType,)> { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyFundamentalStruct<(MyType,)>`
99
|
10-
= note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
10+
= note: upstream crates may add a new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.re.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
77
LL | impl MyTrait for lib::MyFundamentalStruct<(MyType,)> { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyFundamentalStruct<(MyType,)>`
99
|
10-
= note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
10+
= note: upstream crates may add a new impl of trait `lib::MyCopy` for type `lib::MyFundamentalStruct<(MyType,)>` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence_copy_like_err_struct.old.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
77
LL | impl MyTrait for lib::MyStruct<MyType> { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyStruct<MyType>`
99
|
10-
= note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
10+
= note: upstream crates may add a new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence_copy_like_err_struct.re.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
77
LL | impl MyTrait for lib::MyStruct<MyType> { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `lib::MyStruct<MyType>`
99
|
10-
= note: upstream crates may add new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
10+
= note: upstream crates may add a new impl of trait `lib::MyCopy` for type `lib::MyStruct<MyType>` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence_copy_like_err_tuple.old.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
77
LL | impl MyTrait for (MyType,) { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(MyType,)`
99
|
10-
= note: upstream crates may add new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
10+
= note: upstream crates may add a new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/coherence/coherence_copy_like_err_tuple.re.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T: lib::MyCopy> MyTrait for T { }
77
LL | impl MyTrait for (MyType,) { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(MyType,)`
99
|
10-
= note: upstream crates may add new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
10+
= note: upstream crates may add a new impl of trait `lib::MyCopy` for type `(MyType,)` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/issues/issue-48728.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | #[derive(Clone)]
77
LL | impl<T: Clone + ?Sized> Clone for Node<[T]> {
88
| ------------------------------------------- first implementation here
99
|
10-
= note: upstream crates may add new impl of trait `std::clone::Clone` for type `[_]` in future versions
10+
= note: upstream crates may add a new impl of trait `std::clone::Clone` for type `[_]` in future versions
1111

1212
error: aborting due to previous error
1313

src/test/ui/specialization/issue-52050.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ LL | | I: Iterator,
77
LL | | {
88
LL | | }
99
| |_- first implementation here
10-
LL |
10+
LL |
1111
LL | impl IntoPyDictPointer for ()
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
1313
|
14-
= note: upstream crates may add new impl of trait `std::iter::Iterator` for type `()` in future versions
14+
= note: upstream crates may add a new impl of trait `std::iter::Iterator` for type `()` in future versions
1515

1616
error: aborting due to previous error
1717

0 commit comments

Comments
 (0)