Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Everything that's visible to the compiler is subject to automatic inlining. That is all code in the current crate (compilation unit), all concrete instantiations of generics (regardless where defined), and all functions marked inline (regardless which crate).

Stdlib containers are all in the generics category.



> all functions marked inline (regardless which crate).

Is this a problem is rust? Is too much/too little marked inline? What if you really need to inline some function from some library that was not marked inline by the author?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: