Handle generic parameters.
This commit is contained in:
parent
cdf78073c5
commit
05812df603
25 changed files with 171 additions and 224 deletions
|
@ -447,7 +447,7 @@ impl<'tcx> Visitor<'tcx> for MarkSymbolVisitor<'tcx> {
|
|||
}
|
||||
|
||||
fn visit_ty(&mut self, ty: &'tcx hir::Ty<'tcx>) {
|
||||
if let TyKind::OpaqueDef(item_id, _) = ty.kind {
|
||||
if let TyKind::OpaqueDef(item_id, _, _) = ty.kind {
|
||||
let item = self.tcx.hir().item(item_id);
|
||||
intravisit::walk_item(self, item);
|
||||
}
|
||||
|
|
|
@ -235,7 +235,6 @@ impl<'tcx> ReachableContext<'tcx> {
|
|||
hir::ItemKind::ExternCrate(_)
|
||||
| hir::ItemKind::Use(..)
|
||||
| hir::ItemKind::OpaqueTy(..)
|
||||
| hir::ItemKind::ImplTraitPlaceholder(..)
|
||||
| hir::ItemKind::TyAlias(..)
|
||||
| hir::ItemKind::Macro(..)
|
||||
| hir::ItemKind::Mod(..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue