about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-11-22 01:13:00 +0800
committerGitHub <noreply@github.com>2017-11-22 01:13:00 +0800
commit7eb2e79ea87cc45d70dc1fc34d4e3b822b6a6d88 (patch)
tree9a8dfda1cd2efd3103e8f5c6faea30987079250d /src/rustllvm/RustWrapper.cpp
parent0af67a4df0219d518ecba6711ff8ff6680a9a2ec (diff)
parent1a9dc2e9023ffd42d7c1b06bf149a98df7a911af (diff)
downloadrust-7eb2e79ea87cc45d70dc1fc34d4e3b822b6a6d88.tar.gz
rust-7eb2e79ea87cc45d70dc1fc34d4e3b822b6a6d88.zip
Rollup merge of #46103 - zackmdavis:dead_code_lint_should_say_never_constructed_for_variants, r=arielb1
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.

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