From 9e96efac62648c46bb141d274462874e6fa1e42f Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 26 May 2026 00:45:46 +0200 Subject: [PATCH] Remove unneeded `#[skip_arg]` attributes --- compiler/rustc_attr_parsing/src/session_diagnostics.rs | 8 -------- compiler/rustc_trait_selection/src/errors.rs | 9 --------- 2 files changed, 17 deletions(-) diff --git a/compiler/rustc_attr_parsing/src/session_diagnostics.rs b/compiler/rustc_attr_parsing/src/session_diagnostics.rs index 5b715005f1076..ea5c9077dcde6 100644 --- a/compiler/rustc_attr_parsing/src/session_diagnostics.rs +++ b/compiler/rustc_attr_parsing/src/session_diagnostics.rs @@ -274,11 +274,7 @@ pub(crate) enum IncorrectReprFormatGenericCause { Int { #[primary_span] span: Span, - - #[skip_arg] name: Symbol, - - #[skip_arg] value: u128, }, @@ -290,11 +286,7 @@ pub(crate) enum IncorrectReprFormatGenericCause { Symbol { #[primary_span] span: Span, - - #[skip_arg] name: Symbol, - - #[skip_arg] value: Symbol, }, } diff --git a/compiler/rustc_trait_selection/src/errors.rs b/compiler/rustc_trait_selection/src/errors.rs index 3610ffbb30c3b..5a926dc46c707 100644 --- a/compiler/rustc_trait_selection/src/errors.rs +++ b/compiler/rustc_trait_selection/src/errors.rs @@ -869,7 +869,6 @@ pub(crate) enum ExplicitLifetimeRequired<'a> { style = "verbose" )] new_ty_span: Span, - #[skip_arg] new_ty: Ty<'a>, }, #[diag("explicit lifetime required in parameter type", code = E0621)] @@ -885,7 +884,6 @@ pub(crate) enum ExplicitLifetimeRequired<'a> { style = "verbose" )] new_ty_span: Span, - #[skip_arg] new_ty: Ty<'a>, }, } @@ -1519,7 +1517,6 @@ pub(crate) enum FunctionPointerSuggestion<'a> { RemoveRef { #[primary_span] span: Span, - #[skip_arg] fn_name: String, }, #[suggestion( @@ -1531,9 +1528,7 @@ pub(crate) enum FunctionPointerSuggestion<'a> { CastRef { #[primary_span] span: Span, - #[skip_arg] fn_name: String, - #[skip_arg] sig: Binder<'a, FnSig<'a>>, }, #[suggestion( @@ -1545,7 +1540,6 @@ pub(crate) enum FunctionPointerSuggestion<'a> { Cast { #[primary_span] span: Span, - #[skip_arg] sig: Binder<'a, FnSig<'a>>, }, #[suggestion( @@ -1557,7 +1551,6 @@ pub(crate) enum FunctionPointerSuggestion<'a> { CastBoth { #[primary_span] span: Span, - #[skip_arg] found_sig: Binder<'a, FnSig<'a>>, expected_sig: Binder<'a, FnSig<'a>>, }, @@ -1570,9 +1563,7 @@ pub(crate) enum FunctionPointerSuggestion<'a> { CastBothRef { #[primary_span] span: Span, - #[skip_arg] fn_name: String, - #[skip_arg] found_sig: Binder<'a, FnSig<'a>>, expected_sig: Binder<'a, FnSig<'a>>, },