Unofficial Hacker News client - receive Push Notifications on replies.

The state of Rust allocators in 2026: stabilised (opens external site)

200 points by fanf2 2 days ago | cetra3.github.io | 82 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (1)

  1. I think what they're seeing is the deallocation layout does "fit" but it has a different size. Rust's design for Allocator says that's fine, but if your code needs to know the size to find an allocation that's an issue for you because Rust doesn't promise it has the same size.

    Rust says allocation A will "fit" in allocation B if A's alignment is equal to B's and A's size is no larger than B's size.