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

Method visit_trait_item

crates/rustc_codegen_spirv/src/attr.rs:428–432  ·  view source on GitHub ↗
(&mut self, trait_item: &'tcx hir::TraitItem<'tcx>)

Source from the content-addressed store, hash-verified

426 }
427
428 fn visit_trait_item(&mut self, trait_item: &'tcx hir::TraitItem<'tcx>) {
429 let target = Target::from_trait_item(trait_item);
430 self.check_spirv_attributes(trait_item.hir_id(), target);
431 intravisit::walk_trait_item(self, trait_item);
432 }
433
434 fn visit_field_def(&mut self, field: &'tcx hir::FieldDef<'tcx>) {
435 self.check_spirv_attributes(field.hir_id, Target::Field);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected