(&mut self, expr: &'tcx hir::Expr<'tcx>)
| 462 | } |
| 463 | |
| 464 | fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) { |
| 465 | let target = match expr.kind { |
| 466 | hir::ExprKind::Closure { .. } => Target::Closure, |
| 467 | _ => Target::Expression, |
| 468 | }; |
| 469 | |
| 470 | self.check_spirv_attributes(expr.hir_id, target); |
| 471 | intravisit::walk_expr(self, expr); |
| 472 | } |
| 473 | |
| 474 | fn visit_variant(&mut self, variant: &'tcx hir::Variant<'tcx>) { |
| 475 | self.check_spirv_attributes(variant.hir_id, Target::Variant); |
nothing calls this directly
no test coverage detected