-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Convert to inline diagnostics in rustc_lint
#152217
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
55b2e8a to
c8724d7
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c8724d7 to
ba4db2d
Compare
| #[help] | ||
| #[diag("`#[{$name}]` attribute cannot be used on {$target}")] | ||
| #[warning( | ||
| "this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!" |
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.
Some messages, especially this one are duplicated a few times because there is no good way to make a constant out of these with the current derive code yet.
I'm planning to go through all the messages and seeing what I can dedup after all crates are converted
This comment has been minimized.
This comment has been minimized.
ba4db2d to
c2010ee
Compare
This comment has been minimized.
This comment has been minimized.
c2010ee to
b92c838
Compare
|
cc @davidtwco, @TaKO8Ki |
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
99a9586 to
c2d6d93
Compare
This comment has been minimized.
This comment has been minimized.
|
Rebased again because of conflicts, now the entire diff should be clean :) |
|
Ok looked it over, pretty sure this is all okay. It's big but nothing too weird I think and this one would be great to have merged so let's go :3 |
|
@bors r+ |
…onszelmann Convert to inline diagnostics in `rustc_lint` For rust-lang#151366 r? @jdonszelmann This was a big one! Second to last one, `rustc_parse` is the last one and even bigger :P
This comment has been minimized.
This comment has been minimized.
c2d6d93 to
e304c21
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=jdonszelmann |
…onszelmann Convert to inline diagnostics in `rustc_lint` For rust-lang#151366 r? @jdonszelmann This was a big one! Second to last one, `rustc_parse` is the last one and even bigger :P
…uwer Rollup of 7 pull requests Successful merges: - #151745 (Remove a couple of unnecessary flags and env vars in bootstrap) - #152217 (Convert to inline diagnostics in `rustc_lint`) - #152056 (RwLock: refine documentation to emphasize non-reentrancy guarantees) - #152261 (Introduce helper `ty::Generics::has_own_self`) - #152288 (Allow only a single accepter per attribute) - #152292 (Minor change for readability) - #152300 (Port `rustc_regions` to the new attribute parser)
e304c21 to
580c8d3
Compare
|
|
|
@bors r=jdonszelmann |
…uwer Rollup of 7 pull requests Successful merges: - #151745 (Remove a couple of unnecessary flags and env vars in bootstrap) - #152217 (Convert to inline diagnostics in `rustc_lint`) - #152056 (RwLock: refine documentation to emphasize non-reentrancy guarantees) - #152261 (Introduce helper `ty::Generics::has_own_self`) - #152288 (Allow only a single accepter per attribute) - #152292 (Minor change for readability) - #152300 (Port `rustc_regions` to the new attribute parser)
…uwer Rollup of 7 pull requests Successful merges: - #151745 (Remove a couple of unnecessary flags and env vars in bootstrap) - #152217 (Convert to inline diagnostics in `rustc_lint`) - #152056 (RwLock: refine documentation to emphasize non-reentrancy guarantees) - #152261 (Introduce helper `ty::Generics::has_own_self`) - #152288 (Allow only a single accepter per attribute) - #152292 (Minor change for readability) - #152300 (Port `rustc_regions` to the new attribute parser)
…uwer Rollup of 7 pull requests Successful merges: - #151745 (Remove a couple of unnecessary flags and env vars in bootstrap) - #152217 (Convert to inline diagnostics in `rustc_lint`) - #152056 (RwLock: refine documentation to emphasize non-reentrancy guarantees) - #152261 (Introduce helper `ty::Generics::has_own_self`) - #152288 (Allow only a single accepter per attribute) - #152292 (Minor change for readability) - #152300 (Port `rustc_regions` to the new attribute parser)
Rollup merge of #152217 - JonathanBrouwer:convert_line, r=jdonszelmann Convert to inline diagnostics in `rustc_lint` For #151366 r? @jdonszelmann This was a big one! Second to last one, `rustc_parse` is the last one and even bigger :P
For #151366
r? @jdonszelmann
This was a big one! Second to last one,
rustc_parseis the last one and even bigger :P