Files
rust/library/alloc/src
Matthias Krüger e8134a3380 Rollup merge of #137641 - kpreid:dealloc, r=Amanieu
More precisely document `Global::deallocate()`'s safety.

There is a subtlety which "other conditions must be upheld by the caller" does not capture: `GlobalAlloc`/`alloc::dealloc()` require that the provided layout will be *equal*, not just that it "fits", the layout used to allocate. This is always true here due to how `allocate()`, `grow()`, and `shrink()` are implemented (they never return a larger allocation than requested), but that is a non-local property of the implementation, so it should be documented explicitly.

r? libs

`@rustbot` label A-allocators
2025-03-02 22:44:24 +01:00
..
2024-11-27 12:10:21 +00:00
2025-02-09 17:11:13 +00:00
2024-12-02 18:16:36 +00:00
2025-01-22 09:19:24 +02:00
2024-12-05 21:48:01 +01:00
2025-02-18 08:50:21 -08:00
2025-02-08 22:12:13 +00:00
2024-12-05 14:14:17 -08:00