-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Visit ImplItem
in dead_code
lint
#59486
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors rollup |
@@ -172,6 +172,7 @@ impl<'a, 'tcx> MarkSymbolVisitor<'a, 'tcx> { | |||
| hir::ItemKind::Ty(..) | |||
| hir::ItemKind::Static(..) | |||
| hir::ItemKind::Existential(..) | |||
| hir::ItemKind::Impl(..) | |||
| hir::ItemKind::Const(..) => { | |||
intravisit::walk_item(self, &item); | |||
} |
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.
Remove _ => ()
and replace with "exhaustive" match to avoid future problems?
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.
I'm not actually sure why this is not
_ => {
intravisit::walk_item(self, &item);
}
If that doesn't break anything, then walk_item
can be moved out of the match
.
I've made the |
@bors r+ |
📌 Commit 8cdfad9 has been approved by |
Visit `ImplItem` in `dead_code` lint Fixes rust-lang#47131.
Rollup of 9 pull requests Successful merges: - #59366 (Update books) - #59436 (Update jemalloc-sys to version 0.3.0) - #59454 (Update rustfmt to 1.2.0) - #59462 (Fix error in Rust 2018 + no_core environment) - #59467 (Better diagnostic for binary operation on BoxedValues) - #59473 (Do not emit incorrect borrow suggestion involving macros and fix overlapping multiline spans) - #59480 (Update stdsimd) - #59486 (Visit `ImplItem` in `dead_code` lint) - #59510 (Rename `type_parameters` to `generics` and so on) Failed merges: - #59516 (Update cargo) r? @ghost
Rollup of 9 pull requests Successful merges: - #59366 (Update books) - #59436 (Update jemalloc-sys to version 0.3.0) - #59454 (Update rustfmt to 1.2.0) - #59462 (Fix error in Rust 2018 + no_core environment) - #59467 (Better diagnostic for binary operation on BoxedValues) - #59473 (Do not emit incorrect borrow suggestion involving macros and fix overlapping multiline spans) - #59480 (Update stdsimd) - #59486 (Visit `ImplItem` in `dead_code` lint) - #59510 (Rename `type_parameters` to `generics` and so on) Failed merges: - #59516 (Update cargo) r? @ghost
☔ The latest upstream changes (presumably #59522) made this pull request unmergeable. Please resolve the merge conflicts. |
Fixes #47131.