Revert doc attribute parsing errors to future warnings#151952
Revert doc attribute parsing errors to future warnings#151952rust-bors[bot] merged 3 commits intorust-lang:mainfrom
Conversation
|
Some changes occurred in compiler/rustc_attr_parsing |
This comment has been minimized.
This comment has been minimized.
746bbbd to
5e7c152
Compare
This comment has been minimized.
This comment has been minimized.
|
Ah, so it's still flaky. |
|
@rustbot author |
|
I think there are a few options then
My proposal would be merge #3 into nightly, backport it, then on nightly do #4 |
|
I’m confused. Why is modifying a lint a problem? Isn’t cap-lints supposed to solve this, even for deny-by-default lints? |
|
I was not aware of that option, that makes life slightly better. However, a new deny-by-default lint does still break users, as they need to fix the problem or set These cases will immediately go from being silently ignored to deny-by-default linted, meaning users don't get time to fix the problem If I'm wrong and the consensus is that what I'm describing is considered acceptable breakage, lmk |
|
The important part is that Cargo sets cap-lints=allow by default for your dependencies. This means you only get an error if a crate in your own workspace triggers it, and, if it does, you can immediately fix it by slapping |
|
Ah I see, in that case I think making the lint deny by default is reasonably acceptable user breakage. Thanks for explaining! |
There was a problem hiding this comment.
r=me after #151944 merged & this pr is rebased on that
5e7c152 to
c910511
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=JonathanBrouwer rollup |
…uwer Rollup of 12 pull requests Successful merges: - #150992 (link modifier `export-symbols`: export all global symbols from selected uptream c static libraries) - #151534 (target: fix destabilising target-spec-json) - #152088 (rustbook/README.md: add missing `)`) - #151526 (Fix autodiff codegen tests) - #151810 (citool: report debuginfo test statistics) - #151952 (Revert doc attribute parsing errors to future warnings) - #152065 (Convert to inline diagnostics in `rustc_ty_utils`) - #152066 (Convert to inline diagnostics in `rustc_session`) - #152069 (Convert to inline diagnostics in `rustc_privacy`) - #152072 (Convert to inline diagnostics in `rustc_monomorphize`) - #152083 (Fix set_times_nofollow for directory on windows) - #152102 (Convert to inline diagnostics in all codegen backends) Failed merges: - #152068 (Convert to inline diagnostics in `rustc_resolve`) - #152070 (Convert to inline diagnostics in `rustc_pattern_analysis`)
Rollup merge of #151952 - GuillaumeGomez:revert-error-to-future-warning, r=JonathanBrouwer Revert doc attribute parsing errors to future warnings Part of #151865 (hopefully fixes it). r? @JonathanBrouwer
Part of #151865 (hopefully fixes it).
r? @JonathanBrouwer