-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dead_code
paths
#12743
Remove dead_code
paths
#12743
Conversation
This path is no longer used and can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_code
and can be removed:clippy_utils::paths::VEC_RESIZE
vec_resize_to_zero
lint added in PR new lint: vec_resize_to_zero #5637clippy_utils::paths::SLICE_GET
get_first
lint added in PR feat(lint): impl lint about use first() instead of get(0) #8882clippy_utils::paths::STR_BYTES
bytes_count_to_len
lint added in PR Take over: New lint bytes count to len #8711When the lints were moved into the
Methods
lint 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