Commit 4e9ceef
committed
Refactor
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.must_use lint into two parts1 parent 62c627c commit 4e9ceef
File tree
5 files changed
+259
-146
lines changed- compiler/rustc_lint/src
- src/test/ui/lint/unused
5 files changed
+259
-146
lines changed
0 commit comments