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
376
376
377
377
lint-builtin-keyword-idents = `{ $kw } ` is a keyword in the { $next } edition
378
378
.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 {
2288
2288
2289
2289
if !lint_spans. is_empty ( ) {
2290
2290
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)
2292
2293
. multipart_suggestion (
2293
- if bound_count == 1 {
2294
- "remove this bound"
2295
- } else {
2296
- "remove these bounds"
2297
- } ,
2294
+ fluent:: lint:: suggestion,
2298
2295
lint_spans
2299
2296
. into_iter ( )
2300
2297
. map ( |span| ( span, String :: new ( ) ) )
You can’t perform that action at this time.
0 commit comments