rust/src/librustc/middle
bors fe278a8a32 Auto merge of #36252 - joshtriplett:union-field-never-used, r=sanxiyn
Fix "field is never used" warning to take unions into account

When compiling code containing a union with an unused field, rustc says
"struct field is never used".

Rather than saying "struct or union", or adding logic to determine the
type of the item, just change the message to "field is never used",
dropping the "struct".

Update tests accordingly.
2016-09-06 20:06:34 -07:00
..
astconv_util.rs Rollup merge of #35374 - mrabault:e0229_format, r=jonathandturner 2016-08-06 15:01:22 +03:00
const_qualif.rs
const_val.rs
cstore.rs rustc: use Vec<Kind> in Substs, where Kind is a &TyS | &Region tagged pointer. 2016-08-27 01:15:07 +03:00
dataflow.rs prefer if let to match with None => {} arm in some places 2016-07-03 16:27:02 -07:00
dead.rs Auto merge of #36252 - joshtriplett:union-field-never-used, r=sanxiyn 2016-09-06 20:06:34 -07:00
dependency_format.rs rustc: Implement custom derive (macros 1.1) 2016-09-02 12:52:56 -07:00
effect.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
entry.rs Update E0138 to new format 2016-08-11 10:18:23 +08:00
expr_use_visitor.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
free_region.rs turn the RFC1592 warnings into hard errors 2016-09-01 13:34:56 +03:00
intrinsicck.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
lang_items.rs Refactor away AttrMetaMethods. 2016-08-25 20:41:40 +00:00
liveness.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
mem_categorization.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
privacy.rs rustc: Fix outdated comment 2016-08-22 00:21:13 +03:00
reachable.rs Replace _, _, _ with .. 2016-09-04 12:27:01 +03:00
recursion_limit.rs Refactor away AttrMetaMethods. 2016-08-25 20:41:40 +00:00
region.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
resolve_lifetime.rs Rollup merge of #36065 - acrrd:new_format_E0496, r=GuillaumeGomez 2016-09-05 14:53:08 +08:00
stability.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
weak_lang_items.rs rustc: Implement custom derive (macros 1.1) 2016-09-02 12:52:56 -07:00