Unofficial Hacker News companion — get notified on comment replies, and more.

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

219 points by fanf2 5 days ago | cetra3.github.io | 90 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. > Last time I tried

    For the benefit of the reader, this was two years ago.

    The OP references updates made in Rust 1.100, released three weeks ago.

    Replies (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.