summary refs log tree commit diff
path: root/src/test/compile-fail/lint-dead-code-variant.rs
AgeCommit message (Collapse)AuthorLines
2017-11-19dead code lint to say "never constructed" for variantsZack M. Davis-1/+1
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.
2015-06-02Extend dead code lint to detect more unused enum variantsSeo Sanghyeon-0/+22
2015-03-14Revert "Extend dead code lint to detect more unused enum variants"Manish Goregaokar-42/+0
This reverts commit b042ffc4a768c2bd6d7588b1b2f47af22669c2cb. Conflicts: src/librustc/middle/pat_util.rs
2015-02-03Extend dead code lint to detect more unused enum variantsSeo Sanghyeon-0/+42