Skip to content

Commit 7a46f88

Browse files
authored
Rename "object safe" to "dyn compatible" (#2083)
1 parent e79615d commit 7a46f88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traits/unsize.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pointers, and there are rules about when a type is allowed to implement
1616
# [`Unsize`](https://doc.rust-lang.org/std/marker/trait.Unsize.html)
1717

1818
To contrast, the `Unsize` trait is concerned the actual types that are allowed
19-
to be unsized.
19+
to be unsized.
2020

2121
This is not intended to be implemented by users ever, since `Unsize` does not
2222
instruct the compiler (namely codegen) *how* to unsize a type, just whether it
@@ -27,7 +27,7 @@ which must understand how types are represented and unsized.
2727

2828
Built-in implementations are provided for:
2929
* `T` -> `dyn Trait + 'a` when `T: Trait` (and `T: Sized + 'a`, and `Trait`
30-
is object safe).
30+
is dyn-compatible[^2]).
3131
* `[T; N]` -> `[T]`
3232

3333
## Structural implementations
@@ -82,4 +82,4 @@ Specifically, (3.) prevents a choice of projection bound to guide inference
8282
unnecessarily, though it may guide inference when it is unambiguous.
8383

8484
[^1]: The principal is the one non-auto trait of a `dyn Trait`.
85-
85+
[^2]: Formerly known as "object safe".

0 commit comments

Comments
 (0)