]> git.lizzy.rs Git - rust.git/commit
Auto merge of #55366 - Amanieu:stable_layout, r=Amanieu
authorbors <bors@rust-lang.org>
Thu, 8 Nov 2018 06:52:27 +0000 (06:52 +0000)
committerbors <bors@rust-lang.org>
Thu, 8 Nov 2018 06:52:27 +0000 (06:52 +0000)
commit1d834550d54e4c5211f03f877c1756425f24be98
tree95eaf84270dfacd46dc105b9ca33c4befe1915a1
parent9c304fb0cf7328b570b5696c9b486268a0828563
parent02d50de63e50423c9cbaf3daa46dde6c9c5c9dba
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<Layout, LayoutErr>;
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<Layout, LayoutErr>;
pub fn extend_packed(&self, next: Layout) -> Result<Layout, LayoutErr>;
pub fn array<T>(n: usize) -> Result<Layout, LayoutErr>;
```

cc #32838

r? @SimonSapin
src/liballoc/lib.rs
src/libstd/lib.rs