logoalt Hacker News

AlotOfReadingtoday at 4:10 PM1 replyview on HN

If you're manually calling malloc in Rust, your code is almost certainly wrong. It might be called as an implementation detail when you create new objects, but std can generally be used as if it were managed automatically.


Replies

quotemstrtoday at 7:43 PM

I'm using malloc as synecdoche for all forms of allocation, including Arc<Box<T>> stuff.