We may need some sort of #[flatten]

I'd like to see this feature, if only as a way to control inlining of standard library functions.

However, it would probably require an LLVM change. Clang currently doesn't seem to respect the recursive aspect of __attribute__((flatten)). It only forces a single level of inlining, unlike GCC.

4 Likes