rust/src/librustc/middle
kennytm 7eb2e79ea8 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
2017-11-22 01:13:00 +08:00
..
allocator.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
borrowck.rs rustc: Remove used_mut_nodes from TyCtxt 2017-10-14 09:29:02 -07:00
const_val.rs rustc: evaluate fixed-length array length expressions lazily. 2017-09-11 08:41:16 +03:00
cstore.rs incr.comp.: Remove default serialization implementations for things in rustc::hir::def_id so that we get an ICE instead of silently doing the wrong thing. 2017-11-16 17:13:39 +01:00
dataflow.rs address more FIXME whose associated issues were marked as closed 2017-10-08 00:27:28 +03:00
dead.rs dead code lint to say "never constructed" for variants 2017-11-19 10:15:36 -08:00
dependency_format.rs Adjust dependency-resolution errors to be more consistent 2017-09-19 21:37:19 -05:00
entry.rs use field init shorthand in src/librustc 2017-07-05 22:37:10 -07:00
exported_symbols.rs incr.comp.: Fix rebase fallout. 2017-09-18 12:14:52 +02:00
expr_use_visitor.rs Introduce LocalDefId which provides a type-level guarantee that the DefId is from the local crate. 2017-11-16 14:04:01 +01:00
free_region.rs Fix impl Trait Lifetime Handling 2017-11-17 10:01:54 -08:00
intrinsicck.rs Use ItemLocalId as key for node_types, node_substs, and adjustments in TypeckTables. 2017-08-11 12:11:38 +02:00
lang_items.rs Auto merge of #45772 - leodasvacas:fix-auto-bounds-in-trait-objects, r=nikomatsakis 2017-11-11 09:56:22 +00:00
liveness.rs "avoid" is a better word here than "disable" 2017-09-14 17:23:47 +02:00
mem_categorization.rs rustc_mir: always downcast enums, even if univariant. 2017-11-18 20:52:38 +02:00
privacy.rs Replace FnvHasher use with FxHasher. 2016-11-08 15:14:59 +11:00
reachable.rs [Syntax Breaking] Rename DefaultImpl to AutoImpl 2017-11-03 16:13:20 -02:00
recursion_limit.rs limit the length of types in monomorphization 2016-12-02 00:54:22 +02:00
region.rs rename region_inference module to region_constraints 2017-11-16 05:57:43 -05:00
resolve_lifetime.rs Fix impl Trait Lifetime Handling 2017-11-17 10:01:54 -08:00
stability.rs rustc: add item name to deprecated lint warning 2017-11-02 16:10:09 +00:00
trans.rs incr.comp.: Fix rebase fallout. 2017-09-18 12:14:52 +02:00
weak_lang_items.rs rustc: Remove CrateStore::crates as a method 2017-09-07 08:13:41 -07:00