File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -376,3 +376,9 @@ lint-builtin-unnameable-test-items = cannot test inner items
376376
377377lint-builtin-keyword-idents = `{ $kw } ` is a keyword in the { $next } edition
378378 .suggestion = you can use a raw identifier to stay compatible
379+
380+ lint-builtin-explicit-outlives = outlives requirements can be inferred
381+ .suggestion = remove { $count ->
382+ [ one ] this bound
383+ *[ other ] these bounds
384+ }
Original file line number Diff line number Diff line change @@ -2288,13 +2288,10 @@ impl<'tcx> LateLintPass<'tcx> for ExplicitOutlivesRequirements {
22882288
22892289 if !lint_spans. is_empty ( ) {
22902290 cx. struct_span_lint ( EXPLICIT_OUTLIVES_REQUIREMENTS , lint_spans. clone ( ) , |lint| {
2291- lint. build ( "outlives requirements can be inferred" )
2291+ lint. build ( fluent:: lint:: builtin_explicit_outlives)
2292+ . set_arg ( "count" , bound_count)
22922293 . multipart_suggestion (
2293- if bound_count == 1 {
2294- "remove this bound"
2295- } else {
2296- "remove these bounds"
2297- } ,
2294+ fluent:: lint:: suggestion,
22982295 lint_spans
22992296 . into_iter ( )
23002297 . map ( |span| ( span, String :: new ( ) ) )
You can’t perform that action at this time.
0 commit comments