(&mut self, stmt: &'tcx hir::Stmt<'tcx>)
| 454 | } |
| 455 | |
| 456 | fn visit_stmt(&mut self, stmt: &'tcx hir::Stmt<'tcx>) { |
| 457 | // When checking statements ignore expressions, they will be checked later. |
| 458 | if let hir::StmtKind::Local(l) = stmt.kind { |
| 459 | self.check_spirv_attributes(l.hir_id, Target::Statement); |
| 460 | } |
| 461 | intravisit::walk_stmt(self, stmt); |
| 462 | } |
| 463 | |
| 464 | fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) { |
| 465 | let target = match expr.kind { |
nothing calls this directly
no test coverage detected