@@ -167,7 +167,7 @@ impl Layout {
167
167
/// Returns an error if the combination of `self.size()` and the given
168
168
/// `align` violates the conditions listed in
169
169
/// [`Layout::from_size_align`](#method.from_size_align).
170
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
170
+ #[ unstable( feature = "alloc_layout_extra " , issue = "55724 " ) ]
171
171
#[ inline]
172
172
pub fn align_to ( & self , align : usize ) -> Result < Self , LayoutErr > {
173
173
Layout :: from_size_align ( self . size ( ) , cmp:: max ( self . align ( ) , align) )
@@ -189,7 +189,7 @@ impl Layout {
189
189
/// to be less than or equal to the alignment of the starting
190
190
/// address for the whole allocated block of memory. One way to
191
191
/// satisfy this constraint is to ensure `align <= self.align()`.
192
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
192
+ #[ unstable( feature = "alloc_layout_extra " , issue = "55724 " ) ]
193
193
#[ inline]
194
194
pub fn padding_needed_for ( & self , align : usize ) -> usize {
195
195
let len = self . size ( ) ;
@@ -226,7 +226,7 @@ impl Layout {
226
226
/// of each element in the array.
227
227
///
228
228
/// On arithmetic overflow, returns `LayoutErr`.
229
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
229
+ #[ unstable( feature = "alloc_layout_extra " , issue = "55724 " ) ]
230
230
#[ inline]
231
231
pub fn repeat ( & self , n : usize ) -> Result < ( Self , usize ) , LayoutErr > {
232
232
let padded_size = self . size ( ) . checked_add ( self . padding_needed_for ( self . align ( ) ) )
@@ -255,7 +255,7 @@ impl Layout {
255
255
/// (assuming that the record itself starts at offset 0).
256
256
///
257
257
/// On arithmetic overflow, returns `LayoutErr`.
258
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
258
+ #[ unstable( feature = "alloc_layout_extra " , issue = "55724 " ) ]
259
259
#[ inline]
260
260
pub fn extend ( & self , next : Self ) -> Result < ( Self , usize ) , LayoutErr > {
261
261
let new_align = cmp:: max ( self . align ( ) , next. align ( ) ) ;
@@ -282,7 +282,7 @@ impl Layout {
282
282
/// aligned.
283
283
///
284
284
/// On arithmetic overflow, returns `LayoutErr`.
285
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
285
+ #[ unstable( feature = "alloc_layout_extra " , issue = "55724 " ) ]
286
286
#[ inline]
287
287
pub fn repeat_packed ( & self , n : usize ) -> Result < Self , LayoutErr > {
288
288
let size = self . size ( ) . checked_mul ( n) . ok_or ( LayoutErr { private : ( ) } ) ?;
@@ -295,7 +295,7 @@ impl Layout {
295
295
/// and is not incorporated *at all* into the resulting layout.
296
296
///
297
297
/// On arithmetic overflow, returns `LayoutErr`.
298
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
298
+ #[ unstable( feature = "alloc_layout_extra " , issue = "55724 " ) ]
299
299
#[ inline]
300
300
pub fn extend_packed ( & self , next : Self ) -> Result < Self , LayoutErr > {
301
301
let new_size = self . size ( ) . checked_add ( next. size ( ) )
@@ -307,7 +307,7 @@ impl Layout {
307
307
/// Creates a layout describing the record for a `[T; n]`.
308
308
///
309
309
/// On arithmetic overflow, returns `LayoutErr`.
310
- #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
310
+ #[ unstable( feature = "alloc_layout_extra " , issue = "55724 " ) ]
311
311
#[ inline]
312
312
pub fn array < T > ( n : usize ) -> Result < Self , LayoutErr > {
313
313
Layout :: new :: < T > ( )
0 commit comments