Skip to content

Commit 67b4e2b

Browse files
authored
Rollup merge of #72532 - ratijas:dyn-trait-object-doc, r=jonas-schievink
Use `dyn` trait syntax in more comments and docs Probably missed it out during earlier dyn refactoring. 033cbfe#diff-a0ba6bbf82d9ee83a4c9525873f85b04
2 parents cdeef96 + d1f4796 commit 67b4e2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/raw.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
//! Their definition should always match the ABI defined in
1010
//! `rustc_middle::ty::layout`.
1111
12-
/// The representation of a trait object like `&SomeTrait`.
12+
/// The representation of a trait object like `&dyn SomeTrait`.
1313
///
14-
/// This struct has the same layout as types like `&SomeTrait` and
14+
/// This struct has the same layout as types like `&dyn SomeTrait` and
1515
/// `Box<dyn AnotherTrait>`.
1616
///
1717
/// `TraitObject` is guaranteed to match layouts, but it is not the
1818
/// type of trait objects (e.g., the fields are not directly accessible
19-
/// on a `&SomeTrait`) nor does it control that layout (changing the
20-
/// definition will not change the layout of a `&SomeTrait`). It is
19+
/// on a `&dyn SomeTrait`) nor does it control that layout (changing the
20+
/// definition will not change the layout of a `&dyn SomeTrait`). It is
2121
/// only designed to be used by unsafe code that needs to manipulate
2222
/// the low-level details.
2323
///

0 commit comments

Comments
 (0)