Where is #[rustc_box] implemented?

⚓ rust    📅 2025-05-11    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 50 days ago. The information described in this article may have changed.

The implementation of box_new, contains an attribute #[rustc_box] and a call to Box::new, which then again ends up calling box_new.

So, when I read the solution for a similar post, it did not explain anything more than the fact that compiler needs to do more. However, what exactly does the compiler need to do and where is it doing it?

4 posts - 2 participants

Read full topic

🏷️ rust_feed