Skip to content

Commit

Permalink
Visit ItemKind::Impl for dead code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Mar 28, 2019
1 parent 33ef0ba commit b3011dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/middle/dead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b3011dd

Please sign in to comment.