diff options
| author | bors <bors@rust-lang.org> | 2018-11-08 06:52:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-11-08 06:52:27 +0000 |
| commit | 1d834550d54e4c5211f03f877c1756425f24be98 (patch) | |
| tree | 95eaf84270dfacd46dc105b9ca33c4befe1915a1 /src/libstd | |
| parent | 9c304fb0cf7328b570b5696c9b486268a0828563 (diff) | |
| parent | 02d50de63e50423c9cbaf3daa46dde6c9c5c9dba (diff) | |
| download | rust-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')
| -rw-r--r-- | src/libstd/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index b55d12e4c8d..f27beb0b46c 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -310,6 +310,7 @@ #![feature(doc_keyword)] #![feature(panic_info_message)] #![feature(non_exhaustive)] +#![feature(alloc_layout_extra)] #![default_lib_allocator] |
