From: bors Date: Thu, 8 Nov 2018 06:52:27 +0000 (+0000) Subject: Auto merge of #55366 - Amanieu:stable_layout, r=Amanieu X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1d834550d54e4c5211f03f877c1756425f24be98;p=rust.git Auto merge of #55366 - Amanieu:stable_layout, r=Amanieu Add tracking issue for Layout methods (and some API changes) These methods are already useful when used with the stable global allocator API (stabilized in #51241). ```rust pub fn align_to(&self, align: usize) -> Result; pub fn padding_needed_for(&self, align: usize) -> usize; pub fn repeat(&self, n: usize) -> Result<(Layout, usize), LayoutErr>; pub fn extend(&self, next: Layout) -> Result<(Layout, usize), LayoutErr>; pub fn repeat_packed(&self, n: usize) -> Result; pub fn extend_packed(&self, next: Layout) -> Result; pub fn array(n: usize) -> Result; ``` cc #32838 r? @SimonSapin --- 1d834550d54e4c5211f03f877c1756425f24be98