@@ -333,10 +333,7 @@ impl<T: ?Sized> NonNull<T> {
333333 #[ must_use]
334334 #[ inline]
335335 #[ stable( feature = "strict_provenance" , since = "1.84.0" ) ]
336- <<<<<<< HEAD
337336 #[ ensures( |result| result. get( ) == self . as_ptr( ) as * const ( ) as usize ) ]
338- =======
339- >>>>>>> 16 d4ed08dbd3f6db3007def332f925f9ca7e6b78
340337 pub fn addr ( self ) -> NonZero < usize > {
341338 // SAFETY: The pointer is guaranteed by the type to be non-null,
342339 // meaning that the address will be non-zero.
@@ -365,10 +362,7 @@ impl<T: ?Sized> NonNull<T> {
365362 #[ must_use]
366363 #[ inline]
367364 #[ stable( feature = "strict_provenance" , since = "1.84.0" ) ]
368- <<<<<<< HEAD
369365 #[ ensures( |result: & Self | !result. as_ptr( ) . is_null( ) && result. addr( ) == addr) ]
370- =======
371- >>>>>>> 16 d4ed08dbd3f6db3007def332f925f9ca7e6b78
372366 pub fn with_addr ( self , addr : NonZero < usize > ) -> Self {
373367 // SAFETY: The result of `ptr::from::with_addr` is non-null because `addr` is guaranteed to be non-zero.
374368 unsafe { NonNull :: new_unchecked ( self . as_ptr ( ) . with_addr ( addr. get ( ) ) as * mut _ ) }
@@ -383,10 +377,7 @@ impl<T: ?Sized> NonNull<T> {
383377 #[ must_use]
384378 #[ inline]
385379 #[ stable( feature = "strict_provenance" , since = "1.84.0" ) ]
386- <<<<<<< HEAD
387380 #[ ensures( |result: & Self | !result. as_ptr( ) . is_null( ) ) ]
388- =======
389- >>>>>>> 16 d4ed08dbd3f6db3007def332f925f9ca7e6b78
390381 pub fn map_addr ( self , f : impl FnOnce ( NonZero < usize > ) -> NonZero < usize > ) -> Self {
391382 self . with_addr ( f ( self . addr ( ) ) )
392383 }
@@ -746,15 +737,12 @@ impl<T: ?Sized> NonNull<T> {
746737 #[ must_use = "returns a new pointer rather than modifying its argument" ]
747738 #[ stable( feature = "non_null_convenience" , since = "1.80.0" ) ]
748739 #[ rustc_const_stable( feature = "non_null_convenience" , since = "1.80.0" ) ]
749- <<<<<<< HEAD
750740 #[ requires(
751741 count. checked_mul( core:: mem:: size_of:: <T >( ) ) . is_some( ) &&
752742 count * core:: mem:: size_of:: <T >( ) <= isize :: MAX as usize &&
753743 core:: ub_checks:: same_allocation( self . as_ptr( ) , self . as_ptr( ) . wrapping_sub( count) )
754744 ) ]
755745 #[ ensures( |result: & NonNull <T >| result. as_ptr( ) == self . as_ptr( ) . offset( -( count as isize ) ) ) ]
756- =======
757- >>>>>>> 16 d4ed08dbd3f6db3007def332f925f9ca7e6b78
758746 pub const unsafe fn sub ( self , count : usize ) -> Self
759747 where
760748 T : Sized ,
@@ -1324,12 +1312,9 @@ impl<T: ?Sized> NonNull<T> {
13241312 #[ inline( always) ]
13251313 #[ stable( feature = "non_null_convenience" , since = "1.80.0" ) ]
13261314 #[ rustc_const_stable( feature = "const_swap" , since = "1.85.0" ) ]
1327- <<<<<<< HEAD
13281315 #[ cfg_attr( kani, kani:: modifies( self . as_ptr( ) , with. as_ptr( ) ) ) ]
13291316 #[ requires( ub_checks:: can_dereference( self . as_ptr( ) ) && ub_checks:: can_write( self . as_ptr( ) ) ) ]
13301317 #[ requires( ub_checks:: can_dereference( with. as_ptr( ) ) && ub_checks:: can_write( with. as_ptr( ) ) ) ]
1331- =======
1332- >>>>>>> 16 d4ed08dbd3f6db3007def332f925f9ca7e6b78
13331318 pub const unsafe fn swap ( self , with : NonNull < T > )
13341319 where
13351320 T : Sized ,
0 commit comments