File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,6 @@ impl<T> Box<T> {
269
269
/// ```
270
270
/// #![feature(allocator_api, new_uninit)]
271
271
///
272
- ///
273
272
/// let mut five = Box::<u32>::try_new_uninit()?;
274
273
///
275
274
/// let five = unsafe {
@@ -284,6 +283,7 @@ impl<T> Box<T> {
284
283
/// ```
285
284
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
286
285
// #[unstable(feature = "new_uninit", issue = "63291")]
286
+ #[ inline]
287
287
pub fn try_new_uninit ( ) -> Result < Box < mem:: MaybeUninit < T > > , AllocError > {
288
288
Box :: try_new_uninit_in ( Global )
289
289
}
@@ -309,6 +309,7 @@ impl<T> Box<T> {
309
309
/// [zeroed]: mem::MaybeUninit::zeroed
310
310
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
311
311
// #[unstable(feature = "new_uninit", issue = "63291")]
312
+ #[ inline]
312
313
pub fn try_new_zeroed ( ) -> Result < Box < mem:: MaybeUninit < T > > , AllocError > {
313
314
Box :: try_new_zeroed_in ( Global )
314
315
}
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ impl<T> Arc<T> {
557
557
/// # Ok::<(), std::alloc::AllocError>(())
558
558
/// ```
559
559
///
560
- /// [zeroed]: ../../std/ mem/union. MaybeUninit.html#method. zeroed
560
+ /// [zeroed]: mem:: MaybeUninit:: zeroed
561
561
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
562
562
// #[unstable(feature = "new_uninit", issue = "63291")]
563
563
pub fn try_new_zeroed ( ) -> Result < Arc < mem:: MaybeUninit < T > > , AllocError > {
You can’t perform that action at this time.
0 commit comments