Skip to content

Commit 7172834

Browse files
committed
tidy
1 parent d55105d commit 7172834

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

compiler/rustc_middle/src/traits/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ impl DynCompatibilityViolation {
785785
match self {
786786
DynCompatibilityViolation::SizedSelf(_) => "it requires `Self: Sized`".into(),
787787
DynCompatibilityViolation::ExplicitlyDynIncompatible(_) => {
788-
"it opted out of dyn-compatbility".into()
788+
"it opted out of dyn-compatibility".into()
789789
}
790790
DynCompatibilityViolation::SupertraitSelf(spans) => {
791791
if spans.iter().any(|sp| *sp != DUMMY_SP) {

tests/ui/traits/deny-builtin-object-impl.current.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
1515
--> $DIR/deny-builtin-object-impl.rs:17:1
1616
|
1717
LL | #[rustc_dyn_incompatible_trait]
18-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
18+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
1919
LL | trait YesImplNotObject2 {}
2020
| ----------------- this trait is not dyn compatible...
2121

@@ -30,7 +30,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
3030
--> $DIR/deny-builtin-object-impl.rs:11:1
3131
|
3232
LL | #[rustc_dyn_incompatible_trait]
33-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
33+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
3434
LL | trait NotImplNotObject {}
3535
| ---------------- this trait is not dyn compatible...
3636

@@ -45,7 +45,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
4545
--> $DIR/deny-builtin-object-impl.rs:14:1
4646
|
4747
LL | #[rustc_dyn_incompatible_trait]
48-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
48+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
4949
LL | trait YesImplNotObject {}
5050
| ---------------- this trait is not dyn compatible...
5151

@@ -60,7 +60,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
6060
--> $DIR/deny-builtin-object-impl.rs:17:1
6161
|
6262
LL | #[rustc_dyn_incompatible_trait]
63-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
63+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
6464
LL | trait YesImplNotObject2 {}
6565
| ----------------- this trait is not dyn compatible...
6666

tests/ui/traits/deny-builtin-object-impl.next.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
1515
--> $DIR/deny-builtin-object-impl.rs:17:1
1616
|
1717
LL | #[rustc_dyn_incompatible_trait]
18-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
18+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
1919
LL | trait YesImplNotObject2 {}
2020
| ----------------- this trait is not dyn compatible...
2121

@@ -30,7 +30,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
3030
--> $DIR/deny-builtin-object-impl.rs:11:1
3131
|
3232
LL | #[rustc_dyn_incompatible_trait]
33-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
33+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
3434
LL | trait NotImplNotObject {}
3535
| ---------------- this trait is not dyn compatible...
3636

@@ -45,7 +45,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
4545
--> $DIR/deny-builtin-object-impl.rs:14:1
4646
|
4747
LL | #[rustc_dyn_incompatible_trait]
48-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
48+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
4949
LL | trait YesImplNotObject {}
5050
| ---------------- this trait is not dyn compatible...
5151

@@ -60,7 +60,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
6060
--> $DIR/deny-builtin-object-impl.rs:17:1
6161
|
6262
LL | #[rustc_dyn_incompatible_trait]
63-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatbility
63+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it opted out of dyn-compatibility
6464
LL | trait YesImplNotObject2 {}
6565
| ----------------- this trait is not dyn compatible...
6666

tests/ui/traits/ice-with-dyn-pointee-errors.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
88
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
99
--> $SRC_DIR/core/src/ptr/metadata.rs:LL:COL
1010
|
11-
= note: the trait is not dyn compatible because it opted out of dyn-compatbility
11+
= note: the trait is not dyn compatible because it opted out of dyn-compatibility
1212

1313
error[E0038]: the trait `Pointee` is not dyn compatible
1414
--> $DIR/ice-with-dyn-pointee-errors.rs:10:5
@@ -20,7 +20,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
2020
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
2121
--> $SRC_DIR/core/src/ptr/metadata.rs:LL:COL
2222
|
23-
= note: the trait is not dyn compatible because it opted out of dyn-compatbility
23+
= note: the trait is not dyn compatible because it opted out of dyn-compatibility
2424

2525
error[E0038]: the trait `Pointee` is not dyn compatible
2626
--> $DIR/ice-with-dyn-pointee-errors.rs:15:20
@@ -32,7 +32,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
3232
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
3333
--> $SRC_DIR/core/src/ptr/metadata.rs:LL:COL
3434
|
35-
= note: the trait is not dyn compatible because it opted out of dyn-compatbility
35+
= note: the trait is not dyn compatible because it opted out of dyn-compatibility
3636

3737
error: aborting due to 3 previous errors
3838

tests/ui/unsized/issue-71659.current.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
88
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
99
--> $SRC_DIR/core/src/marker.rs:LL:COL
1010
|
11-
= note: ...because it opted out of dyn-compatbility
11+
= note: ...because it opted out of dyn-compatibility
1212
|
1313
::: $DIR/issue-71659.rs:29:11
1414
|

tests/ui/unsized/issue-71659.next.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ note: for a trait to be dyn compatible it needs to allow building a vtable
88
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
99
--> $SRC_DIR/core/src/marker.rs:LL:COL
1010
|
11-
= note: ...because it opted out of dyn-compatbility
11+
= note: ...because it opted out of dyn-compatibility
1212
|
1313
::: $DIR/issue-71659.rs:29:11
1414
|

0 commit comments

Comments
 (0)