Skip to content

Assess the impact of rust-lang/rust#95295 #7

Open
@yvt

Description

@yvt

rust-lang/rust#95295 has made it a library UB to pass a size that does not fit in isize toLayout::from_size_align_unchecked.

  • We might be able to take advantage of this to remove a few overflow checks. However, it should be kept in mind that Rust versions prior to 1.65.0 are unaffected.
  • We should review our own uses of Layout::from_size_align[_unchecked].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions