Hey. You guys aware of the issue with
static move closures at present?
yield for that matter)
no, what are static closures?
https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser/expr.rs#L887-L889 discusses static closures.
It seems to be for making automatically
I must say that I have never seen that syntax before, and it feels like it has been superceded by
Pin. @Zoxc seems to have made that PR - can you shed any more light?
static is for immovable generators (used for async), while leaving it off gives a regular movable generator
I didn't even know we had immovable types still - I thought that was all supplanted by Pin
I thought I understood it, but perhaps I don't :P. It is very subtle
Generators without the
Unpin, the ones with it do not.
Oh no! I've just lost all my understanding of how you can't just create a Pin, then let the pin drop and use the reference again.
Not that's it's your job to try and teach me.
Oh never mind, making a Pin from an &mut is unsafe.
Thanks @Zoxc! I guess we need to clarify our unstable syntax tracking. Perhaps we are at a point where we can add support for #![feature] crate attributes
Ah right. Would be good to document this syntax more. It's not in the Unstable Book, is it @Zoxc ?