-
Notifications
You must be signed in to change notification settings - Fork 13.4k
StructField span should include pub
#26084
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
There's no great way to test these span bugs, which is why they keep cropping up. You can do something specific if you can find an error which gives the whole field as the span in the error message then you can write a test like:
And test that you get the error on the line with Anyway, usually we just don't bother ( :-( ) |
@bors r+ |
📌 Commit a722838 has been approved by |
⌛ Testing commit a722838 with merge d4c0cea... |
Ah, the line break is a clever solution. I was disappointed that you couldn't use How does this test look? |
Test looks good, modulo nits. Could you submit as a new PR please? bors is already testing this one. |
Re-submitted as #26091 |
Issue: #26083
I could use help creating a test for this change.