We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88e5bc6 commit 7bb4e82Copy full SHA for 7bb4e82
1 file changed
src/layout.rs
@@ -127,7 +127,7 @@ impl Layout {
127
assert_unsafe_precondition!(
128
"`Layout::array_unchecked` requires that `T::SZ * n` rounded up to `T::ALN` will not \
129
exceed `USIZE_MAX_NO_HIGH_BIT`.",
130
- <T>(n: usize = n) => [T::SZ != 0 || n <= (USIZE_HIGH_BIT - T::ALN) / T::SZ]
+ <T>(n: usize = n) => [T::SZ == 0 || n <= (USIZE_HIGH_BIT - T::ALN) / T::SZ]
131
);
132
Layout::from_size_align_unchecked(T::SZ * n, T::ALN)
133
}
0 commit comments