Skip to content

Commit 7aa65bf

Browse files
authored
Rollup merge of #64591 - jamesmunns:grammar-fix, r=jonas-schievink
Fix a minor grammar nit, update UI tests Minor fix, but I noticed it while debugging some code
2 parents aac0301 + 333230f commit 7aa65bf

16 files changed

+16
-16
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ 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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ 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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ 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)