diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2017-11-19 10:15:36 -0800 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2017-11-19 10:15:36 -0800 |
| commit | 1a9dc2e9023ffd42d7c1b06bf149a98df7a911af (patch) | |
| tree | d7c5ecbccf48e72a85fcbfbffb4e4806af4e6951 /src/rustllvm/RustWrapper.cpp | |
| parent | d8d5b6180f56e4aaddc9492b891f85f9ca4a3c64 (diff) | |
| download | rust-1a9dc2e9023ffd42d7c1b06bf149a98df7a911af.tar.gz rust-1a9dc2e9023ffd42d7c1b06bf149a98df7a911af.zip | |
dead code lint to say "never constructed" for variants
As reported in #19140, #44083, and #44565, some users were confused when the dead-code lint reported an enum variant to be "unused" when it was matched on (but not constructed). This wording change makes it clearer that the lint is in fact checking for construction. We continue to say "used" for all other items (it's tempting to say "called" for functions and methods, but this turns out not to be correct: functions can be passed as arguments and the dead-code lint isn't special-casing that or anything). Resolves #19140.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
