logoalt Hacker News

throwaway17_17 • yesterday at 3:33 PM • 1 reply • view on HN

Can Rust’s borrow checker actually take notice of those transformations. I was not aware that using a bump allocator via the allocator API would allow for the static checks to reason about all intra-region allocations as a single entity.

If you know where there is any information on the borrow checker’s ability to check ‘under’ an allocator Id love to read about their strategy.


Replies

steveklabnik • yesterday at 4:18 PM

Yes, this is already possible and done in crates like bumpalo.