about summary refs log tree commit diff
path: root/src/libstd/sys/unix/os.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-06 07:02:11 +0000
committerbors <bors@rust-lang.org>2018-08-06 07:02:11 +0000
commit7c98d2e63f732682b057c8c453b08f9e12b262e6 (patch)
tree25a56b170e734cb6dae51cbdc34baa207bdb08d9 /src/libstd/sys/unix/os.rs
parentaa1e6db70900cf5d11a843bc4234de0548677aba (diff)
parent6c50ee5abc1f41aaf587f74cc317819ff8eca7d8 (diff)
downloadrust-7c98d2e63f732682b057c8c453b08f9e12b262e6.tar.gz
rust-7c98d2e63f732682b057c8c453b08f9e12b262e6.zip
Auto merge of #52332 - zackmdavis:dead_code_lint_should_say_2_electric_boogaloo, r=pnkfelix
dead-code lint: say "constructed" for structs

Respectively.

This is a sequel to November 2017's #46103 / 1a9dc2e9. It had been
reported (more than once—at least #19140, #44083, and #44565) that the
"never used" language was confusing for enum variants that were "used"
as match patterns, so the wording was changed to say never "constructed"
specifically for enum variants. More recently, the same issue was raised
for structs (#52325). It seems consistent to say "constructed" here,
too, for the same reasons.

~~While we're here, we can also use more specific word "called" for unused
functions and methods. (We declined to do this in #46103, but the
rationale given in the commit message doesn't actually make sense.)~~

This resolves #52325.
Diffstat (limited to 'src/libstd/sys/unix/os.rs')
0 files changed, 0 insertions, 0 deletions