about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorCesar Eduardo Barros <cesarb@cesarb.eti.br>2017-01-19 18:16:11 -0200
committerCesar Eduardo Barros <cesarb@cesarb.eti.br>2017-01-19 18:16:11 -0200
commit465d24e1a03f21c1c7685f5105a32ffc52bdd68c (patch)
tree81e8b69c47357ca54b5aaa989236220117d2f861 /src/test/incremental/thinlto
parentbd8e9b0c828bce489eb948853a6cf86b69b26799 (diff)
downloadrust-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