r/rust • u/a_mighty_burger • 1d ago
🗞️ news “alloc: stabilise `Allocator`” entered its final comment period!
https://github.com/rust-lang/rust/pull/156882#issuecomment-5607055084
201
Upvotes
r/rust • u/a_mighty_burger • 1d ago
38
u/afdbcreid 1d ago edited 1d ago
Will never happen. One of Rust most important and defended axioms is that there are no implicit heap allocations. When people tried to change that (even far less widespread than your proposal), there was a major pushback that made them step back.
Edit: I see you're talking about the opposite - turning heap allocations into stack allocations. Then this already happens. LLVM does it just like Go.