-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
E0267 is used twice in different struct_span_err
calls
#63712
Comments
@rustbot claim I'm not sure why it's |
It seems to me that calling it an async closure instead would be reasonable. It would also be nice to point at the rust/src/librustc_passes/loops.rs Lines 140 to 147 in 1e02bc6
That way the output wouldn't be
but rather
|
It appears that there is a good reason for calling it Regular closure:
Async closure (note: closure block is highlighted, not the closure itself):
Async block:
So in this case leaving it as |
That's fine. |
The following code
rust/src/librustc_passes/loops.rs
Lines 175 to 184 in 1e02bc6
Should either assign a new error code to the
AsyncClosure
case, or move the common code to a closure and call it from those two branches to avoid using the same error code twice:This issue has been assigned to @u32i64 via this comment.
The text was updated successfully, but these errors were encountered: