]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #55764 - murarth:fix-rc-alloc, r=RalfJung
authorPietro Albini <pietro@pietroalbini.org>
Sat, 10 Nov 2018 23:21:13 +0000 (00:21 +0100)
committerGitHub <noreply@github.com>
Sat, 10 Nov 2018 23:21:13 +0000 (00:21 +0100)
Fix Rc/Arc allocation layout

* Rounds allocation layout up to a multiple of alignment
* Adds a convenience method `Layout::pad_to_align` to perform rounding

Closes #55747

cc #55724


Trivial merge