News for hackers. Stuff that matters.
Re:You can't Rust that by pcwalton on Saturday March 31, 2018 @03:27PM (#16724728)
> AFAIK at least currently the compiler doesn't hoist objects directly to the callee's stack frame.

Yes, it does. This is the "retptr" optimization.

Re:You can't Rust that by oconnor663 on Saturday March 31, 2018 @04:12PM (#16724948)
Doesn't the LLVM backend make tons of similar optimizations under the hood?
Re:You can't Rust that by pcwalton on Saturday March 31, 2018 @04:28PM (#16725020)
Yes, especially if callees are inlined.