about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-11-08 06:52:27 +0000
committerbors <bors@rust-lang.org>2018-11-08 06:52:27 +0000
commit1d834550d54e4c5211f03f877c1756425f24be98 (patch)
tree95eaf84270dfacd46dc105b9ca33c4befe1915a1 /src/libstd/sys/unix/stack_overflow.rs
parent9c304fb0cf7328b570b5696c9b486268a0828563 (diff)
parent02d50de63e50423c9cbaf3daa46dde6c9c5c9dba (diff)
downloadrust-1d834550d54e4c5211f03f877c1756425f24be98.tar.gz
rust-1d834550d54e4c5211f03f877c1756425f24be98.zip
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
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions