File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
//! Their definition should always match the ABI defined in
10
10
//! `rustc_middle::ty::layout`.
11
11
12
- /// The representation of a trait object like `&SomeTrait`.
12
+ /// The representation of a trait object like `&dyn SomeTrait`.
13
13
///
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
15
15
/// `Box<dyn AnotherTrait>`.
16
16
///
17
17
/// `TraitObject` is guaranteed to match layouts, but it is not the
18
18
/// 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
21
21
/// only designed to be used by unsafe code that needs to manipulate
22
22
/// the low-level details.
23
23
///
You can’t perform that action at this time.
0 commit comments