diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2018-05-18 00:07:31 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-05-18 01:00:22 -0700 |
| commit | 59782f4829db1afed5a3d50d03709711b8dd16e0 (patch) | |
| tree | f1bdade80cd28db670a0614d3ef5658901574de0 /src/rustllvm/RustWrapper.cpp | |
| parent | dfc07a48f6797a20b3ee04fcff6f6c64bf0443bc (diff) | |
| download | rust-59782f4829db1afed5a3d50d03709711b8dd16e0.tar.gz rust-59782f4829db1afed5a3d50d03709711b8dd16e0.zip | |
in which the unused shorthand field pattern debacle/saga continues
In e4b1a79 (#47922), we corrected erroneous suggestions for unused shorthand field pattern bindings, suggesting `field: _` where the previous suggestion of `_field` wouldn't even have compiled (#47390). Soon, it was revealed that this was insufficient (#50303), and the fix was extended to references, slices, &c. (#50327) But even this proved inadequate, as the erroneous suggestions were still being issued for patterns in local (`let`) bindings (#50804). Here, we yank the shorthand-detection and variable/node registration code into a new common function that can be called while visiting both match arms and `let` bindings. Resolves #50804.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
