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> {
339
339
match & * fn_decl. inputs {
340
340
[ Param { ty, span, .. } ] => {
341
341
if let TyKind :: CVarArgs = ty. kind {
342
- self . session . emit_err ( CVarArgsWithoutNamedArg { span : * span } ) ;
342
+ self . session . emit_err ( CVarArgsIsSoleParam { span : * span } ) ;
343
343
}
344
344
}
345
345
[ ps @ .., _] => {
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ pub struct TooManyParams {
114
114
}
115
115
116
116
#[ 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 {
119
119
#[ primary_span]
120
120
pub span : Span ,
121
121
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ ast_passes_forbidden_non_lifetime_param =
41
41
ast_passes_too_many_params =
42
42
function can not have more than { $max_num_args } arguments
43
43
44
- ast_passes_c_var_args_without_named_arg =
44
+ ast_passes_c_var_args_is_sole_param =
45
45
C-variadic function must be declared with at least one named argument
46
46
47
47
ast_passes_c_var_args_not_last =
You can’t perform that action at this time.
0 commit comments