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

Method visit_item

crates/rustc_codegen_spirv/src/attr.rs:416–420  ·  view source on GitHub ↗
(&mut self, item: &'tcx hir::Item<'tcx>)

Source from the content-addressed store, hash-verified

414 }
415
416 fn visit_item(&mut self, item: &'tcx hir::Item<'tcx>) {
417 let target = Target::from_item(item);
418 self.check_spirv_attributes(item.hir_id(), target);
419 intravisit::walk_item(self, item);
420 }
421
422 fn visit_generic_param(&mut self, generic_param: &'tcx hir::GenericParam<'tcx>) {
423 let target = Target::from_generic_param(generic_param);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected