about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-05-19 23:41:03 +0800
committerkennytm <kennytm@gmail.com>2018-05-20 04:16:06 +0800
commit907288c73ffb59a9ce2b2a5804a83044302810f2 (patch)
tree7c2ffb003e50ad2e7598c64c1b562a33568c1e01 /src/rustllvm/RustWrapper.cpp
parent611dafcf061538e9ab3bb0ac00c18a27ffb6bdb9 (diff)
parent59782f4829db1afed5a3d50d03709711b8dd16e0 (diff)
downloadrust-907288c73ffb59a9ce2b2a5804a83044302810f2.tar.gz
rust-907288c73ffb59a9ce2b2a5804a83044302810f2.zip
Rollup merge of #50854 - zackmdavis:and_the_case_of_the_unused_field_pattern_3_straight_to_video, r=estebank
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.

r? @estebank
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions