Commit 0fc8bb5
authored
Rollup merge of rust-lang#153018 - WaffleLapkin:must_use_improvements, r=jdonszelmann
`unused_must_use` lint improvements
The main purpose of this is to allow clippy to use `is_ty_must_use` from rustc, rather than making their own (outdated) copy. This also adds changes from rust-lang#148214 under a function flag, so clippy can start linting with the new semantics in mind, while rustc doesn't yet (see rust-lang#148214 (comment)).
I've also done some refactoring while I was at it.
r? @jdonszelmannFile tree
3 files changed
+654
-566
lines changed- compiler/rustc_lint/src
- unused
3 files changed
+654
-566
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
0 commit comments