diff options
| author | Cesar Eduardo Barros <cesarb@cesarb.eti.br> | 2017-01-19 18:16:11 -0200 |
|---|---|---|
| committer | Cesar Eduardo Barros <cesarb@cesarb.eti.br> | 2017-01-19 18:16:11 -0200 |
| commit | 465d24e1a03f21c1c7685f5105a32ffc52bdd68c (patch) | |
| tree | 81e8b69c47357ca54b5aaa989236220117d2f861 /src/test/incremental/thinlto | |
| parent | bd8e9b0c828bce489eb948853a6cf86b69b26799 (diff) | |
| download | rust-465d24e1a03f21c1c7685f5105a32ffc52bdd68c.tar.gz rust-465d24e1a03f21c1c7685f5105a32ffc52bdd68c.zip | |
book: size and align in trait object vtables are used
The book currently claims that the `size` and `align` fields in the trait object vtable are not used, but this is false. These two fields are used by the stable `mem::size_of_val` and `mem::align_of_val` functions. See the `ty::TyDynamic` case of the `glue::size_and_align_of_dst` function in librustc_trans, which is used to implement both intrinsics in the unsized case.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
