We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6f59a5 commit 6f9eb9fCopy full SHA for 6f9eb9f
compiler/rustc_passes/src/dead.rs
@@ -384,6 +384,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
384
&& let ItemKind::Impl(impl_ref) =
385
self.tcx.hir().expect_item(local_def_id).kind
386
{
387
+ // FIXME: only walk bounds
388
intravisit::walk_generics(self, impl_ref.generics);
389
}
390
@@ -404,7 +405,6 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
404
405
406
self.tcx.hir().expect_item(impl_def_id).kind
407
- self.check_def_id(impl_def);
408
for impl_item in impl_ref.items {
409
if Some(def_id) == impl_item.trait_item_def_id {
410
self.check_def_id(impl_item.id.owner_id.to_def_id());
0 commit comments