-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Span is too large for unused rest @ ..
pattern warning
#81314
Comments
This is where the suggestion is emitted: rust/compiler/rustc_passes/src/liveness.rs Lines 1536 to 1583 in 4d0dd02
However, I think the issue is in the rust/compiler/rustc_passes/src/liveness.rs Lines 1503 to 1511 in 4d0dd02
You might have to hunt around a bit to find the spot where the spans are created. |
Feel free to ask in |
For working on this you won't need stage 2, stage 1 will suffice. |
I guess I can give this issue a shot I have the setup ready and stage one works fine. I am new to rust so forgive me for asking too many questions |
Since it has been more than 2 weeks since the last update I guess this is free to pick? In case someone is still working on this let me know @rustbot claim |
The compiler suggests replacing
rest @ ..
with_rest
, when in fact it should suggest_rest @ ..
:(Playground)
Errors:
The span should point to just
rest
.The text was updated successfully, but these errors were encountered: