@@ -70,7 +70,7 @@ fn main() {
7070 test_abi_compat ( 0usize , 0u64 ) ;
7171 test_abi_compat ( 0isize , 0i64 ) ;
7272 }
73- test_abi_compat ( 42u32 , num:: NonZeroU32 :: new ( 1 ) . unwrap ( ) ) ;
73+ test_abi_compat ( 42u32 , num:: NonZero :: new ( 1u32 ) . unwrap ( ) ) ;
7474 // - `char` and `u32`.
7575 test_abi_compat ( 42u32 , 'x' ) ;
7676 // - Reference/pointer types with the same pointee.
@@ -86,9 +86,9 @@ fn main() {
8686 // - Guaranteed null-pointer-optimizations (RFC 3391).
8787 test_abi_compat ( & 0u32 as * const u32 , Some ( & 0u32 ) ) ;
8888 test_abi_compat ( main as fn ( ) , Some ( main as fn ( ) ) ) ;
89- test_abi_compat ( 0u32 , Some ( num:: NonZeroU32 :: new ( 1 ) . unwrap ( ) ) ) ;
89+ test_abi_compat ( 0u32 , Some ( num:: NonZero :: new ( 1u32 ) . unwrap ( ) ) ) ;
9090 test_abi_compat ( & 0u32 as * const u32 , Some ( Wrapper ( & 0u32 ) ) ) ;
91- test_abi_compat ( 0u32 , Some ( Wrapper ( num:: NonZeroU32 :: new ( 1 ) . unwrap ( ) ) ) ) ;
91+ test_abi_compat ( 0u32 , Some ( Wrapper ( num:: NonZero :: new ( 1u32 ) . unwrap ( ) ) ) ) ;
9292
9393 // These must work for *any* type, since we guarantee that `repr(transparent)` is ABI-compatible
9494 // with the wrapped field.
@@ -102,7 +102,7 @@ fn main() {
102102 test_abi_newtype :: < [ u32 ; 2 ] > ( ) ;
103103 test_abi_newtype :: < [ u32 ; 32 ] > ( ) ;
104104 test_abi_newtype :: < Option < i32 > > ( ) ;
105- test_abi_newtype :: < Option < num:: NonZeroU32 > > ( ) ;
105+ test_abi_newtype :: < Option < num:: NonZero < u32 > > > ( ) ;
106106
107107 // Extra test for assumptions made by arbitrary-self-dyn-receivers.
108108 // This is interesting since these types are not `repr(transparent)`. So this is not part of our
0 commit comments