Rollup merge of #126809 - estebank:wording-tweak, r=oli-obk · rust-lang/rust@539090e (original) (raw)

File tree

4 files changed

lines changed

4 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -194,7 +194,7 @@ hir_analysis_inherent_ty_outside = cannot define inherent `impl` for a type outs
194 194 .span_help = alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
195 195
196 196 hir_analysis_inherent_ty_outside_new = cannot define inherent `impl` for a type outside of the crate where the type is defined
197 - .label = impl for type defined outside of crate.
197 + .label = impl for type defined outside of crate
198 198 .note = define and implement a trait or new type instead
199 199
200 200 hir_analysis_inherent_ty_outside_primitive = cannot define inherent `impl` for primitive types outside of `core`
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ error[E0116]: cannot define inherent `impl` for a type outside of the crate wher
2 2 --> $DIR/E0116.rs:1:1
3 3 |
4 4 LL | impl Vec {}
5 - | ^^^^^^^^^^^^ impl for type defined outside of crate.
5 + | ^^^^^^^^^^^^ impl for type defined outside of crate
6 6 |
7 7 = note: define and implement a trait or new type instead
8 8
Original file line number Diff line number Diff line change
@@ -2,31 +2,31 @@ error[E0116]: cannot define inherent `impl` for a type outside of the crate wher
2 2 --> $DIR/no-attr-empty-impl.rs:4:1
3 3 |
4 4 LL | impl extern_crate::StructWithAttr {}
5 - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
5 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
6 6 |
7 7 = note: define and implement a trait or new type instead
8 8
9 9 error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
10 10 --> $DIR/no-attr-empty-impl.rs:7:1
11 11 |
12 12 LL | impl extern_crate::StructNoAttr {}
13 - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
13 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
14 14 |
15 15 = note: define and implement a trait or new type instead
16 16
17 17 error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
18 18 --> $DIR/no-attr-empty-impl.rs:10:1
19 19 |
20 20 LL | impl extern_crate::EnumWithAttr {}
21 - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
21 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
22 22 |
23 23 = note: define and implement a trait or new type instead
24 24
25 25 error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
26 26 --> $DIR/no-attr-empty-impl.rs:13:1
27 27 |
28 28 LL | impl extern_crate::EnumNoAttr {}
29 - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
29 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
30 30 |
31 31 = note: define and implement a trait or new type instead
32 32
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ error[E0116]: cannot define inherent `impl` for a type outside of the crate wher
2 2 --> $DIR/trait-or-new-type-instead.rs:1:1
3 3 |
4 4 LL | impl Option {
5 - | ^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
5 + | ^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
6 6 |
7 7 = note: define and implement a trait or new type instead
8 8