diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2018-07-21 17:55:34 -0700 | 
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-07-21 18:30:33 -0700 | 
| commit | 6c50ee5abc1f41aaf587f74cc317819ff8eca7d8 (patch) | |
| tree | 15e2270a8d94f6fa51c40ec1ae382b7743598014 /src/libstd/sys/unix/os.rs | |
| parent | 874dec25ed4c08d36f17d396b6872ca50313fc8e (diff) | |
| download | rust-6c50ee5abc1f41aaf587f74cc317819ff8eca7d8.tar.gz rust-6c50ee5abc1f41aaf587f74cc317819ff8eca7d8.zip | |
dead-code lint: say "constructed" for structs
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. We considered using more specific word "called" for unused functions and methods (while we declined to do this in #46103, the rationale given in the commit message doesn't actually make sense), but it turns out that Cargo's test suite expects the "never used" message, and maybe we don't care enough even to make a Cargo PR over such a petty and subjective wording change. This resolves #52325.
Diffstat (limited to 'src/libstd/sys/unix/os.rs')
0 files changed, 0 insertions, 0 deletions
