File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,9 @@ impl<T: ?Sized> NonNull<T> {
452
452
453
453
/// See [`pointer::add`] for semantics and safety requirements.
454
454
#[ inline]
455
- pub ( crate ) const unsafe fn add ( self , delta : usize ) -> Self
455
+ #[ doc( hidden) ]
456
+ #[ unstable( feature = "std_internals" , issue = "none" ) ]
457
+ pub const unsafe fn add ( self , delta : usize ) -> Self
456
458
where
457
459
T : Sized ,
458
460
{
@@ -465,7 +467,9 @@ impl<T: ?Sized> NonNull<T> {
465
467
466
468
/// See [`pointer::sub`] for semantics and safety requirements.
467
469
#[ inline]
468
- pub ( crate ) const unsafe fn sub ( self , delta : usize ) -> Self
470
+ #[ doc( hidden) ]
471
+ #[ unstable( feature = "std_internals" , issue = "none" ) ]
472
+ pub const unsafe fn sub ( self , delta : usize ) -> Self
469
473
where
470
474
T : Sized ,
471
475
{
@@ -478,7 +482,9 @@ impl<T: ?Sized> NonNull<T> {
478
482
479
483
/// See [`pointer::sub_ptr`] for semantics and safety requirements.
480
484
#[ inline]
481
- pub ( crate ) const unsafe fn sub_ptr ( self , subtrahend : Self ) -> usize
485
+ #[ doc( hidden) ]
486
+ #[ unstable( feature = "std_internals" , issue = "none" ) ]
487
+ pub const unsafe fn sub_ptr ( self , subtrahend : Self ) -> usize
482
488
where
483
489
T : Sized ,
484
490
{
You can’t perform that action at this time.
0 commit comments