Compile fixes

This commit is contained in:
Sylvester Hesp 2022-09-07 16:35:34 +02:00 committed by Eduard-Mihai Burtescu
parent a90668e02e
commit 2dd88c1f13

View File

@ -472,14 +472,9 @@ impl<'tcx> Visitor<'tcx> for CheckSpirvAttrVisitor<'tcx> {
intravisit::walk_expr(self, expr); intravisit::walk_expr(self, expr);
} }
fn visit_variant( fn visit_variant(&mut self, variant: &'tcx hir::Variant<'tcx>) {
&mut self,
variant: &'tcx hir::Variant<'tcx>,
generics: &'tcx hir::Generics<'tcx>,
item_id: HirId,
) {
self.check_spirv_attributes(variant.id, Target::Variant); self.check_spirv_attributes(variant.id, Target::Variant);
intravisit::walk_variant(self, variant, generics, item_id); intravisit::walk_variant(self, variant);
} }
fn visit_param(&mut self, param: &'tcx hir::Param<'tcx>) { fn visit_param(&mut self, param: &'tcx hir::Param<'tcx>) {