]> git.lizzy.rs Git - rust.git/commit
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)
commitd2aeef06f2f41c0b7f4d13cd59cd07ad8a377e83
treee690a983ab0484984882a62328b5d4c212b58fa9
parentf0a6e3a583bc19bdb21e4403d7235488d02b883d
parent317f494c72aead3fecd73788569983fd2f8ea8a3
Rollup merge of #55764 - murarth:fix-rc-alloc, r=RalfJung

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