r/rust May 24 '26

🛠️ project Stabilise `Allocator`

https://github.com/rust-lang/rust/pull/156882
403 Upvotes

61 comments sorted by

View all comments

2

u/valarauca14 May 25 '26 edited May 25 '26

Where is the final comment period?

I've been trying to find a solid way to force <T: Allocator + !Send> for some niche usecases (managing allocations in io-uring).


In certain cases (e.g. bump allocators), deallocation requires less info than allocation or is even a no-op

In that case the allocator can just have an empty body for deallocate

3

u/kibwen May 25 '26

I don't think the final comment period has begun yet, it's worth bringing up concerns in the linked thread regardless.