Uh oh!
There was an error while loading. Please reload this page.
feat(config): Add ChangeId enum for suppressing warnings - #138986
Conversation
rustbot
commented
Mar 26, 2025
rustbot
commented
Mar 26, 2025
This PR modifies If appropriate, please update |
bit-aloo
commented
Mar 26, 2025
Interesting stuff—TOML only supports |
This comment has been minimized.
This comment has been minimized.
3d54f33 to
d58b5d5Comparejieyouxu
commented
Mar 26, 2025
My |
I believe deserialize_with and serialize_with can only be applied to struct or enum fields, not directly to types themselves. That said, if we're only ever deserializing ChangeId through ChangeIdWrapper, then this approach could work. I was just assuming that ChangeId might also need to be deserialized independently, in which case implementing Deserialize directly for it made more sense. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
3cbe872 to
2579dd1CompareIntroduces the `ChangeId` enum to allow suppressing `change_id` warnings. Now, `ChangeId` supports both numeric values and the string literal `"ignore"`. Numeric values behave as expected, while `"ignore"` is used to suppress warning messages.
2579dd1 to
0244432Comparebit-aloo
commented
Mar 27, 2025
Hello @Kobzol , all suggestions have been addressed. |
There was a problem hiding this comment.
Tried this locally, seems to work well. The code is also nicer, thanks! Left a few remaining nits.
Also, to make this new option a bit more discovereable, could you please modify the "to silence this warning" message, to mention this new option? Something like NOTE: to silence this warning, update bootstrap.tomlto usechange-id = 138986orchange-id = "ignore" instead. Thanks!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rustbot
commented
Mar 27, 2025
This PR modifies If appropriate, please update |
bit-aloo
commented
Mar 27, 2025
Hello @Kobzol, I've updated the descriptions. Thanks a lot for the review |
Uh oh!
There was an error while loading. Please reload this page.
…nge-id description references
7a55d91 to
b24083bComparebit-aloo
commented
Mar 28, 2025
@bors r=kobzol |
bors
commented
Mar 28, 2025
@Shourya742: 🔑 Insufficient privileges: Not in reviewers |
Kobzol
commented
Mar 28, 2025
Looks like bors missed my command, sorry. Thank you for the PR! @bors r+ rollup |
bors
commented
Mar 28, 2025
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#137889 (update outdated doc with new example) - rust-lang#138104 (Greatly simplify doctest parsing and information extraction) - rust-lang#138678 (rustc_resolve: fix instability in lib.rmeta contents) - rust-lang#138986 (feat(config): Add ChangeId enum for suppressing warnings) - rust-lang#139038 (Update target maintainers for thumb targets to reflect new REWG Arm team name) - rust-lang#139045 (bootstrap: update `test_find` test) - rust-lang#139047 (Remove ScopeDepth) Failed merges: - rust-lang#139044 (bootstrap: Avoid cloning `change-id` list) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#137889 (update outdated doc with new example) - rust-lang#138104 (Greatly simplify doctest parsing and information extraction) - rust-lang#138678 (rustc_resolve: fix instability in lib.rmeta contents) - rust-lang#138986 (feat(config): Add ChangeId enum for suppressing warnings) - rust-lang#139038 (Update target maintainers for thumb targets to reflect new REWG Arm team name) - rust-lang#139045 (bootstrap: update `test_find` test) - rust-lang#139047 (Remove ScopeDepth) Failed merges: - rust-lang#139044 (bootstrap: Avoid cloning `change-id` list) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#138986 - Shourya742:2025-03-25-add-ignore-to-change-id, r=Kobzol feat(config): Add ChangeId enum for suppressing warnings closes: rust-lang#138925
closes: #138925