@@ -27,7 +27,7 @@ pub(crate) mod on_move;
2727pub ( crate ) mod on_type_error;
2828pub ( crate ) mod on_unimplemented;
2929pub ( crate ) mod on_unknown;
30- pub ( crate ) mod on_unmatch_args ;
30+ pub ( crate ) mod on_unmatched_args ;
3131
3232#[ derive( Copy , Clone ) ]
3333pub ( crate ) enum Mode {
@@ -41,8 +41,8 @@ pub(crate) enum Mode {
4141 DiagnosticOnMove ,
4242 /// `#[diagnostic::on_unknown]`
4343 DiagnosticOnUnknown ,
44- /// `#[diagnostic::on_unmatch_args ]`
45- DiagnosticOnUnmatchArgs ,
44+ /// `#[diagnostic::on_unmatched_args ]`
45+ DiagnosticOnUnmatchedArgs ,
4646 /// `#[diagnostic::on_type_error]`
4747 DiagnosticOnTypeError ,
4848}
@@ -55,7 +55,7 @@ impl Mode {
5555 Self :: DiagnosticOnConst => "diagnostic::on_const" ,
5656 Self :: DiagnosticOnMove => "diagnostic::on_move" ,
5757 Self :: DiagnosticOnUnknown => "diagnostic::on_unknown" ,
58- Self :: DiagnosticOnUnmatchArgs => "diagnostic::on_unmatch_args " ,
58+ Self :: DiagnosticOnUnmatchedArgs => "diagnostic::on_unmatched_args " ,
5959 Self :: DiagnosticOnTypeError => "diagnostic::on_type_error" ,
6060 }
6161 }
@@ -73,7 +73,7 @@ impl Mode {
7373 Self :: DiagnosticOnConst => DEFAULT ,
7474 Self :: DiagnosticOnMove => DEFAULT ,
7575 Self :: DiagnosticOnUnknown => DEFAULT ,
76- Self :: DiagnosticOnUnmatchArgs => DEFAULT ,
76+ Self :: DiagnosticOnUnmatchedArgs => DEFAULT ,
7777 Self :: DiagnosticOnTypeError => DIAGNOSTIC_ON_TYPE_ERROR_EXPECTED_OPTIONS ,
7878 }
7979 }
@@ -90,7 +90,7 @@ impl Mode {
9090 Self :: DiagnosticOnConst => DEFAULT ,
9191 Self :: DiagnosticOnMove => DEFAULT ,
9292 Self :: DiagnosticOnUnknown => DEFAULT ,
93- Self :: DiagnosticOnUnmatchArgs => DEFAULT ,
93+ Self :: DiagnosticOnUnmatchedArgs => DEFAULT ,
9494 Self :: DiagnosticOnTypeError => DIAGNOSTIC_ON_TYPE_ERROR_ALLOWED_OPTIONS ,
9595 }
9696 }
@@ -112,7 +112,7 @@ impl Mode {
112112 Self :: DiagnosticOnUnknown => {
113113 "only `This` is allowed as a format argument, referring to the failed import"
114114 }
115- Self :: DiagnosticOnUnmatchArgs => {
115+ Self :: DiagnosticOnUnmatchedArgs => {
116116 "only `This` is allowed as a format argument, referring to the macro's name"
117117 }
118118 Self :: DiagnosticOnTypeError => {
@@ -313,7 +313,7 @@ fn parse_directive_items<'p>(
313313 | Mode :: DiagnosticOnConst
314314 | Mode :: DiagnosticOnMove
315315 | Mode :: DiagnosticOnUnknown
316- | Mode :: DiagnosticOnUnmatchArgs ,
316+ | Mode :: DiagnosticOnUnmatchedArgs ,
317317 sym:: message,
318318 ) => {
319319 let value = or_malformed ! ( value?) ;
@@ -329,7 +329,7 @@ fn parse_directive_items<'p>(
329329 | Mode :: DiagnosticOnConst
330330 | Mode :: DiagnosticOnMove
331331 | Mode :: DiagnosticOnUnknown
332- | Mode :: DiagnosticOnUnmatchArgs ,
332+ | Mode :: DiagnosticOnUnmatchedArgs ,
333333 sym:: label,
334334 ) => {
335335 let value = or_malformed ! ( value?) ;
@@ -469,7 +469,7 @@ fn parse_arg(
469469 (
470470 Mode :: DiagnosticOnUnknown
471471 | Mode :: DiagnosticOnMove
472- | Mode :: DiagnosticOnUnmatchArgs
472+ | Mode :: DiagnosticOnUnmatchedArgs
473473 | Mode :: DiagnosticOnTypeError ,
474474 sym:: This ,
475475 ) => FormatArg :: This ,
@@ -502,7 +502,7 @@ fn parse_arg(
502502 ) => FormatArg :: GenericParam { generic_param, span } ,
503503
504504 // Generics are explicitly not allowed, we print those back as is.
505- ( Mode :: DiagnosticOnUnknown | Mode :: DiagnosticOnUnmatchArgs , as_is) => {
505+ ( Mode :: DiagnosticOnUnknown | Mode :: DiagnosticOnUnmatchedArgs , as_is) => {
506506 warnings. push ( FormatWarning :: DisallowedPlaceholder {
507507 span,
508508 attr : mode. as_str ( ) ,
0 commit comments