We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62f76d2 commit 29c6c22Copy full SHA for 29c6c22
src/lib.rs
@@ -393,7 +393,8 @@ pub unsafe trait FromZeroes {
393
#[allow(clippy::as_conversions)]
394
let max_alloc = (isize::MAX as usize).saturating_sub(align);
395
assert!(size <= max_alloc);
396
- // TODO(https://github.com/rust-lang/rust/issues/55724): Use `Layout::repeat` once it's stabilized.
+ // TODO(https://github.com/rust-lang/rust/issues/55724): Use
397
+ // `Layout::repeat` once it's stabilized.
398
let layout =
399
Layout::from_size_align(size, align).expect("total allocation size overflows `isize`");
400
0 commit comments