Closure inlining

That makes sense, thanks.

How about the desugared functions? Is there any way to influence their inlining?
As they are a generated result I can't exactly annotate them directly.

I used to think I could just use an attribute on a let binding e.g. #[inline(always)] let my_closure = || { /* stuff*/ };, but recently those seem to have become illegal so now I'm inclined to believe that while it was syntactically valid, there were never any semantics attached at all to using attributes on locals.

1 Like