diff options
| author | bors <bors@rust-lang.org> | 2020-01-15 21:17:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-15 21:17:21 +0000 |
| commit | be09bb47db3b1f1f5a9587f07169515164a6303f (patch) | |
| tree | 8a4be6d5f0647a24b40378101180cc80e3c5615c /src/test/incremental/thinlto | |
| parent | d13b678e37113900b98cadad947f482aa2d49343 (diff) | |
| parent | 44fb8b5e8834a89e0d9f925b8ff235eec10526e3 (diff) | |
| download | rust-be09bb47db3b1f1f5a9587f07169515164a6303f.tar.gz rust-be09bb47db3b1f1f5a9587f07169515164a6303f.zip | |
Auto merge of #5034 - ThibsG:MatchWildErrArmImprove5024, r=flip1995
Match wild err arm improvements This lint should trigger on other identifiers which have `_` prefix (such as `_e`) and only if they are unused in the panic block. _Note_: the `is_unused` function is greatly inspired from `pat_is_wild` function in [loops lints](https://github.com/rust-lang/rust-clippy/blob/43ac9416d935942d6c7d2b2e0c876c551652c4ec/clippy_lints/src/loops.rs#L1689). I've been considering doing some refactoring, maybe in utils. Maybe this PR or a new one. What do you think ? fixes #5024 changelog: none
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
