1
Fork 0

Remove redundant in_trait from hir::TyKind::OpaqueDef

This commit is contained in:
Michael Goulet 2024-10-02 21:52:44 -04:00
parent 360f7d7b73
commit f95bdf453e
17 changed files with 18 additions and 20 deletions

View file

@ -656,7 +656,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);
}