-
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 primary label to incorrect doc comments #57382
Comments
@estebank I came up with this change (
|
@JohnTitor that seems correct to me. I believe there are a couple of other places where we check for incorrect doc comments that will also need to have the |
@estebank Okay. This is stderr after changing.
This may be unfavorable since first error doesn't abort processing. |
That's less than ideal. Could you show the diff from your change? It would be unusual the change from |
|
@estebank I found the cause, so I can add spans. But I cannot find other place to add spans, could you tell me? |
@JohnTitor I'm not sure I understand the problem, could you expand? |
@estebank Sure. rust/src/librustc_errors/lib.rs Lines 646 to 651 in e2f221c
When I added |
@estebank Is my solution good, or is there better solution? |
@JohnTitor I would like to avoid having a |
@JohnTitor it is related. Given that you'd start returning the DiagnosticBuilder up the call chain, you could attach a label pointing at the following token's span fairly easily. |
@estebank Okay, I want to solve this issue for now. |
…estebank Add span for bad doc comment Fixes rust-lang#57382 r? @estebank
Desired output:
The text was updated successfully, but these errors were encountered: