From 4edd2ced62cddfeb3f370c9fd1a7edb0bfa6df9a Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Wed, 17 Sep 2025 03:54:08 +0200 Subject: [PATCH] docs/design: object-safe has been named to dyn-compatible (#6081) Just a small fix to docs/design. Co-authored-by: Burak Emir --- docs/design/generics/appendix-witness.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/design/generics/appendix-witness.md b/docs/design/generics/appendix-witness.md index f70566f3b810..dbaa28ab4fec 100644 --- a/docs/design/generics/appendix-witness.md +++ b/docs/design/generics/appendix-witness.md @@ -99,7 +99,7 @@ arguments and return values with a size only known at runtime. For this reason, Rust's dynamic trait dispatch system, trait objects, only works with traits that are -["object safe,"](https://doc.rust-lang.org/reference/items/traits.html#object-safety) +["dyn-compatible,"](https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility) which includes a requirement that [all the associated types have specified values](https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md#trait-objects). This reduces the expressivity of Rust traits to the subset that could be