File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -331,3 +331,6 @@ lint-builtin-missing-copy-impl = type could implement `Copy`; consider adding `i
331
331
332
332
lint-builtin-missing-debug-impl =
333
333
type does not implement `{ $debug } `; consider adding `#[derive(Debug)]` or a manual implementation
334
+
335
+ lint-builtin-anonymous-params = anonymous parameters are deprecated and will be removed in the next edition
336
+ .suggestion = try naming the parameter or explicitly ignoring it
Original file line number Diff line number Diff line change @@ -937,18 +937,14 @@ impl EarlyLintPass for AnonymousParameters {
937
937
( "<type>" , Applicability :: HasPlaceholders )
938
938
} ;
939
939
940
- lint. build (
941
- "anonymous parameters are deprecated and will be \
942
- removed in the next edition",
943
- )
944
- . span_suggestion (
945
- arg. pat . span ,
946
- "try naming the parameter or explicitly \
947
- ignoring it",
948
- format ! ( "_: {}" , ty_snip) ,
949
- appl,
950
- )
951
- . emit ( ) ;
940
+ lint. build ( fluent:: lint:: builtin_anonymous_params)
941
+ . span_suggestion (
942
+ arg. pat . span ,
943
+ fluent:: lint:: suggestion,
944
+ format ! ( "_: {}" , ty_snip) ,
945
+ appl,
946
+ )
947
+ . emit ( ) ;
952
948
} )
953
949
}
954
950
}
You can’t perform that action at this time.
0 commit comments