MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / visit_stmt

Method visit_stmt

crates/rustc_codegen_spirv/src/attr.rs:456–462  ·  view source on GitHub ↗
(&mut self, stmt: &'tcx hir::Stmt<'tcx>)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected