Skip to content

Commit

Permalink
Rollup merge of #104359 - Nilstrieb:plus-one, r=fee1-dead
Browse files Browse the repository at this point in the history
Refactor must_use lint into two parts

Before, the lint did the checking for `must_use` and pretty printing the types in a special format in one pass, causing quite complex and untranslatable code.
Now the collection and printing is split in two. That should also make it easier to translate or extract the type pretty printing in the future.

Also fixes an integer overflow in the array length pluralization
calculation.

fixes #104352
  • Loading branch information
Manishearth authored Nov 23, 2022
2 parents 53eab24 + 4e9ceef commit a673364
Show file tree
Hide file tree
Showing 5 changed files with 259 additions and 146 deletions.
Loading

0 comments on commit a673364

Please sign in to comment.