I am quite new to Rust, and was looking at compiled code to see how does it look like. The first thing I noticed, thanks to godbolt, is that small functions that are optimized to not to use the stack, still save and restore it through (in x86_64) rbp and push/pop. A very simple demonstration can be found here.
Are we missing a possible elision optimization, or am I missing something?