Unused import prefixes#17246
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @dswij (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
Why was this reviewer chosen?The reviewer was selected based on:
|
|
Lintcheck changes for 473b125
This comment will be updated if you push new changes |
This comment has been minimized.
This comment has been minimized.
02dd264 to
473b125
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Adds a new
nurserylint,unused_import_prefixes, which detects and suggests removing redundantcrate::...prefixes inusestatements when importing items that are descendants of the current module.Fixes #17084
.stderrfile)cargo testpasses locallycargo dev update_lintscargo dev fmtchangelog: new lint: [
unused_import_prefixes]