-
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
Add more span suggestions #89391
Add more span suggestions #89391
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nagisa (or someone else) soon. Please see the contribution instructions for more information. |
I was going to attempt to add something to the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
r? @estebank From my perspective a more descriptive PR title and description would be helfpul. Something like "Implement machine applicable suggestions for static closures and loop control flow constructs" for the title and describe why these are okay as machine-applicable hints in these situations. |
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.
Thanks for doing this! I left some inline comments asking for changes.
Also, you'll need to run |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You have a missing import after applying my suggested changes:
|
This comment has been minimized.
This comment has been minimized.
Kinda confused as I added the use in and it still fails? |
In the static closure case, perhaps a better suggestion would be to use
|
Hey - sorry I was gone, got caught up with something else. Let me fix this |
@Milo123459 the error is in compiler/rustc_ast_lowering/src/expr.rs, but you only added the import to compiler/rustc_typeck/src/check/pat.rs. I recommend running |
Please undo the changes to |
Hm.. running |
Yes, I have tried that with git rebase: can't figure out what's going on here, I'm questioning why this even changed as well |
Co-authored-by: Esteban Kuber <[email protected]>
Co-authored-by: Esteban Kuber <[email protected]>
I think something locally has broken my branch 🤔 |
The job Click to see the possible cause of the failure (guessed by this bot)
|
☔ The latest upstream changes (presumably #92560) made this pull request unmergeable. Please resolve the merge conflicts. |
Hey, first PR. This just adds some new span_suggestion's to some errors.