Skip to content

pre-fallout: Apply uninlined_format-args lint #9525

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Sep 23, 2022

This change is needed for the uninlined_format-args lint to be merged. See #9233

changelog: none

This change is needed for the uninlined_format-args lint to be merged.
See rust-lang#9233
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Alexendoo (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 23, 2022
@nyurik nyurik changed the title Apply uninlined_format-args to clippy_lints pre-fallout: Apply uninlined_format-args lint Sep 23, 2022
@llogiq
Copy link
Contributor

llogiq commented Sep 23, 2022

I'll take this.

r? @llogiq

@rust-highfive rust-highfive assigned llogiq and unassigned Alexendoo Sep 23, 2022
@llogiq
Copy link
Contributor

llogiq commented Sep 23, 2022

Looks ok. Hope there aren't too many merge conflicts following this.

@bors r+

@bors
Copy link
Contributor

bors commented Sep 23, 2022

📌 Commit 59d0e8c has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 23, 2022

⌛ Testing commit 59d0e8c with merge c2d4266...

@bors
Copy link
Contributor

bors commented Sep 23, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing c2d4266 to master...

@bors bors merged commit c2d4266 into rust-lang:master Sep 23, 2022
@nyurik nyurik deleted the apply-lints branch September 23, 2022 21:26
bors added a commit that referenced this pull request Sep 24, 2022
fallout2: rework clippy_dev & _lints fmt inlining

Continuing #9525 -- a few more inlining, but this time with some code changes to simplify format strings:

* Inline format args where possible
* simplify a few complex macros into format str
* use formatdoc!() instead format!(indoc!(...))

changelog: none

cc: `@llogiq`
bors added a commit that referenced this pull request Oct 4, 2022
fallout: fix tests to allow uninlined_format_args

In order to switch `clippy::uninlined_format_args` from pedantic to style, all existing tests must not raise a warning. I did not want to change the actual tests, so this is a relatively minor change that:

* add `#![allow(clippy::uninlined_format_args)]` where needed
* normalizes all allow/deny/warn attributes
   * all allow attributes are grouped together
   * sorted alphabetically
   * the `clippy::*` attributes are listed separate from the other ones.
   * deny and warn attributes are listed before the allowed ones

See also #9233, #9525, #9527

cc: `@llogiq` `@Alexendoo`

changelog: none
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants