diff --git a/crates/rustc_codegen_spirv/src/attr.rs b/crates/rustc_codegen_spirv/src/attr.rs index 77a19ab8dc..bb4d2cfa77 100644 --- a/crates/rustc_codegen_spirv/src/attr.rs +++ b/crates/rustc_codegen_spirv/src/attr.rs @@ -472,14 +472,9 @@ impl<'tcx> Visitor<'tcx> for CheckSpirvAttrVisitor<'tcx> { intravisit::walk_expr(self, expr); } - fn visit_variant( - &mut self, - variant: &'tcx hir::Variant<'tcx>, - generics: &'tcx hir::Generics<'tcx>, - item_id: HirId, - ) { + fn visit_variant(&mut self, variant: &'tcx hir::Variant<'tcx>) { 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>) {