logoalt Hacker News

couchand • yesterday at 1:57 PM • 1 reply • view on HN

> 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

tialaramex • yesterday at 2:44 PM

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.