Skip to content

Commit ce9e561

Browse files
committed
Fix lint.
1 parent 085cbdd commit ce9e561

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/num/nonzero.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ impl_zeroable_primitive!(
103103
/// ```
104104
#[unstable(feature = "generic_nonzero", issue = "120257")]
105105
#[repr(transparent)]
106+
#[rustc_nonnull_optimization_guaranteed]
106107
#[rustc_diagnostic_item = "NonZero"]
107108
pub struct NonZero<T: ZeroablePrimitive>(T::NonZeroInner);
108109

0 commit comments

Comments
 (0)