feat: make unused_format_specs catch width issues#16542
feat: make unused_format_specs catch width issues#16542llogiq merged 1 commit intorust-lang:masterfrom
unused_format_specs catch width issues#16542Conversation
|
r? @llogiq rustbot has assigned @llogiq. Use Why was this reviewer chosen?The reviewer was selected based on:
|
1030a17 to
de64518
Compare
|
|
de64518 to
0ec3cda
Compare
This comment has been minimized.
This comment has been minimized.
|
Thanks, fixed |
0ec3cda to
c186148
Compare
format_width_ignored lintuseless_format_width lint
|
I think adding this to the |
c186148 to
f37caa7
Compare
This comment has been minimized.
This comment has been minimized.
useless_format_width lintunused_format_specs catch width issues
This comment has been minimized.
This comment has been minimized.
f37caa7 to
1565ae2
Compare
This comment has been minimized.
This comment has been minimized.
|
Error: Parsing assign command in comment failed: ...'' | error: specify user to assign to at >| ''... Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip. |
This comment has been minimized.
This comment has been minimized.
Warn when a format width is less than the minimum output size for the
format trait (e.g. `{:#02x}` yields "0x1", so width 2 is ignored).
Help suggests removing the width or increasing it above the minimum.
1565ae2 to
10eb2e7
Compare
|
This PR was rebased onto a different master 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. |
|
@llogiq friendly ping, or do you want someone else to review it? |
|
Please don't target me specifically unless I have manifested an explicit and clear interest in a particular PR. Moreover, I am out of rotation for around two weeks. r? clippy |
implements #15039
Improve [
unused_format_specs] lint to detect format width that is below the minimum output size for certain format traits (e.g.{:#02x}outputs "0x1", so width 2 is ignored). The lint suggests removing the width or increasing it above the minimum.changelog: [
unused_format_specs]: detect format width below minimum output size for #x/#o/#b, exponent, and pointer