3 ms·
But those annotations are for the function definition instead of the call site, or are there call site annotations as well? I think the author's idea is analogo
by mkishi 11y ago
But those annotations are for the function definition instead of the call site, or are there call site annotations as well? I think the author's idea is analogous to the user-defined (instead of type-defined) move/copy semantics.
- steveklabnik 11y agoThey're on the function definition, yes. There aren't ones at the call site.
- bronson 11y agoThen I'm left wondering how you interpreted the sentence you quoted and replied to...? > I’ve always thought it should be up to the caller to say which functions they’d like inlined,
- steveklabnik 11y agoI am ridiculously tired, after burning the candle from both ends for the last few weeks to get this release shipped. In the last four days, I've written almost 1700 lines of docs. I make mistakes sometimes :)
- kbenson 11y agoAs someone who just looked this up to confirm this and reply to someone else here, the docs[1] are fairly ambiguous in this respect. As someone soliciting feedback on the docs, that's a good spot to clarify. :) P.S. I considered submitting a PR, but I don't know enough about rust yet to accurately phrase it. 1: https://doc.rust-lang.org/reference.html#inline-attributes https://doc.rust-lang.org/reference.html#inline-attributes