diff options
| author | Kevin Leimkuhler <kevin@kleimkuhler.com> | 2018-10-01 22:32:26 -0700 |
|---|---|---|
| committer | Kevin Leimkuhler <kevin@kleimkuhler.com> | 2018-10-09 21:10:27 -0700 |
| commit | 8552c61c5a8e91b30bd35e4711d39d470c83cbb1 (patch) | |
| tree | 211dd2a0c6adb37e1a702809e7535f4be27fdb9c /src/rustllvm/RustWrapper.cpp | |
| parent | eae47a40484a085f699c3175d51e74901c607e65 (diff) | |
| download | rust-8552c61c5a8e91b30bd35e4711d39d470c83cbb1.tar.gz rust-8552c61c5a8e91b30bd35e4711d39d470c83cbb1.zip | |
Add initial impl of check_pat() for UnusedParens
This uses a copied version of `check_unused_parens_expr` that is specific to `ast::Pat`. `check_unused_parens_` could possibly be made more generic to work with any `ast::*` that has `node` and `span` fields. This also only checks for the case of parens around the wildcard pattern. It covers the case highlighted in the issue, but could check for a lot more.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
