Skip to content

Commit

Permalink
Update TODO comment to link directly to Rust issue
Browse files Browse the repository at this point in the history
Doesn't actually resolve #2 in the sense of doing the task listed in the TODO, but closes it since we don't need a separate issue to track this.

Closes #2
  • Loading branch information
joshlf authored Aug 14, 2023
1 parent 5f83f24 commit 9a3625d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ pub unsafe trait FromZeroes {
#[allow(clippy::as_conversions)]
let max_alloc = (isize::MAX as usize).saturating_sub(align);
assert!(size <= max_alloc);
// TODO(#2): Use `Layout::repeat` when `alloc_layout_extra` is
// stabilized.
// TODO(https://github.com/rust-lang/rust/issues/55724): Use `Layout::repeat` once it's stabilized.
let layout =
Layout::from_size_align(size, align).expect("total allocation size overflows `isize`");

Expand Down

0 comments on commit 9a3625d

Please sign in to comment.