about summary refs log tree commit diff
path: root/src/libstd/sys/unix/net.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-09-06 20:06:34 -0700
committerGitHub <noreply@github.com>2016-09-06 20:06:34 -0700
commitfe278a8a3218fd83d8bf21e82e2c0cc975d2fb64 (patch)
tree049b0812007f7a663f6acbda56e33f459a66e840 /src/libstd/sys/unix/net.rs
parent3b272bf3102afd739d3e7284b898fa42fa1bd64e (diff)
parent046c7f23680f9a8f24209be4097656f91ade0bbb (diff)
downloadrust-fe278a8a3218fd83d8bf21e82e2c0cc975d2fb64.tar.gz
rust-fe278a8a3218fd83d8bf21e82e2c0cc975d2fb64.zip
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.
Diffstat (limited to 'src/libstd/sys/unix/net.rs')
0 files changed, 0 insertions, 0 deletions