File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ impl<'a> AstValidator<'a> {
339339 match & * fn_decl. inputs {
340340 [ Param { ty, span, .. } ] => {
341341 if let TyKind :: CVarArgs = ty. kind {
342- self . session . emit_err ( CVarArgsWithoutNamedArg { span : * span } ) ;
342+ self . session . emit_err ( CVarArgsIsSoleParam { span : * span } ) ;
343343 }
344344 }
345345 [ ps @ .., _] => {
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ pub struct TooManyParams {
114114}
115115
116116#[ derive( SessionDiagnostic ) ]
117- #[ error( ast_passes:: c_var_args_without_named_arg ) ]
118- pub struct CVarArgsWithoutNamedArg {
117+ #[ error( ast_passes:: c_var_args_is_sole_param ) ]
118+ pub struct CVarArgsIsSoleParam {
119119 #[ primary_span]
120120 pub span : Span ,
121121}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ ast_passes_forbidden_non_lifetime_param =
4141ast_passes_too_many_params =
4242 function can not have more than { $max_num_args } arguments
4343
44- ast_passes_c_var_args_without_named_arg =
44+ ast_passes_c_var_args_is_sole_param =
4545 C-variadic function must be declared with at least one named argument
4646
4747ast_passes_c_var_args_not_last =
You can’t perform that action at this time.
0 commit comments