Skip to content

Commit 6f9eb9f

Browse files
committed
Remove redundant check_def_id
1 parent a6f59a5 commit 6f9eb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/dead.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
384384
&& let ItemKind::Impl(impl_ref) =
385385
self.tcx.hir().expect_item(local_def_id).kind
386386
{
387+
// FIXME: only walk bounds
387388
intravisit::walk_generics(self, impl_ref.generics);
388389
}
389390
}
@@ -404,7 +405,6 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
404405
&& let ItemKind::Impl(impl_ref) =
405406
self.tcx.hir().expect_item(impl_def_id).kind
406407
{
407-
self.check_def_id(impl_def);
408408
for impl_item in impl_ref.items {
409409
if Some(def_id) == impl_item.trait_item_def_id {
410410
self.check_def_id(impl_item.id.owner_id.to_def_id());

0 commit comments

Comments
 (0)