-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce reliance on await!(...)
macro
#62324
Conversation
This comment has been minimized.
This comment has been minimized.
r=me with rebase (and once the async closures change merges, since this is based on that) |
62725b6
to
3eef0cb
Compare
📌 Commit 3eef0cb has been approved by |
…, r=cramertj Reduce reliance on `await!(...)` macro Only the last commit is new. r? @cramertj
…, r=cramertj Reduce reliance on `await!(...)` macro Only the last commit is new. r? @cramertj
"`let` expressions in this position are experimental" | ||
)); | ||
|
||
for_each_in_lock(&sess.async_closure_spans, |span| gate_feature!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are these not for
loops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's terser and has less repetition this way and I don't really fancy for
loops since they invite using break
and continue
which seems preferable to avoid if possible in favor of a more functional-ish approach.
…, r=cramertj Reduce reliance on `await!(...)` macro Only the last commit is new. r? @cramertj
…, r=cramertj Reduce reliance on `await!(...)` macro Only the last commit is new. r? @cramertj
…, r=cramertj Reduce reliance on `await!(...)` macro Only the last commit is new. r? @cramertj
Rollup of 10 pull requests Successful merges: - #62123 ( Remove needless lifetimes (std)) - #62150 (Implement mem::{zeroed,uninitialized} in terms of MaybeUninit.) - #62169 (Derive which queries to save using the proc macro) - #62238 (Fix code block information icon position) - #62292 (Move `async || ...` closures into `#![feature(async_closure)]`) - #62323 (Clarify unaligned fields in ptr::{read,write}_unaligned) - #62324 (Reduce reliance on `await!(...)` macro) - #62371 (Add tracking issue for Box::into_pin) - #62383 (Improve error span for async type inference error) - #62388 (Break out of the correct number of scopes in loops) Failed merges: r? @ghost
Only the last commit is new.
r? @cramertj