Conversation
This path is no longer used and can be removed.
y21
left a comment
There was a problem hiding this comment.
Makes sense. A bit unfortunate that dead_code can't emit a warning here. Do you know if there are more unused paths or is this the only one?
|
I've been matching up the paths to the lints/code that use them. I made it through about half before I found If I find additional ones, should I add them as commits to this PR or create a new PR? |
|
Yeah, you can just add them here to this PR. |
Both clippy_utils::paths::SLICE_GET and clippy_utils::paths::STR_BYTES are dead_code and can therefore be removed.
|
In addition to |
|
Looks good. Thank you for taking the time to go through these! @bors r+ |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
The following paths are
dead_codeand can be removed:clippy_utils::paths::VEC_RESIZEvec_resize_to_zerolint added in PR new lint: vec_resize_to_zero #5637clippy_utils::paths::SLICE_GETget_firstlint added in PR feat(lint): impl lint about use first() instead of get(0) #8882clippy_utils::paths::STR_BYTESbytes_count_to_lenlint added in PR Take over: New lint bytes count to len #8711When the lints were moved into the
Methodslint pass, they switched from using paths to diagnostic items. However, the paths were never removed. This occurred in PR #8957.This relates to issue #5393
changelog: none