File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -366,3 +366,5 @@ lint-builtin-type-alias-where-clause = where clauses are not enforced in type al
366
366
367
367
lint-builtin-type-alias-generic-bounds = bounds on generic parameters are not enforced in type aliases
368
368
.suggestion = the bound will not be checked when the type alias is used, and should be removed
369
+
370
+ lint-builtin-trivial-bounds = { $predicate_kind_name } bound { $predicate } does not depend on any type or lifetime parameters
Original file line number Diff line number Diff line change @@ -1671,12 +1671,10 @@ impl<'tcx> LateLintPass<'tcx> for TrivialConstraints {
1671
1671
} ;
1672
1672
if predicate. is_global ( ) {
1673
1673
cx. struct_span_lint ( TRIVIAL_BOUNDS , span, |lint| {
1674
- lint. build ( & format ! (
1675
- "{} bound {} does not depend on any type \
1676
- or lifetime parameters",
1677
- predicate_kind_name, predicate
1678
- ) )
1679
- . emit ( ) ;
1674
+ lint. build ( fluent:: lint:: builtin_trivial_bounds)
1675
+ . set_arg ( "predicate_kind_name" , predicate_kind_name)
1676
+ . set_arg ( "predicate" , predicate)
1677
+ . emit ( ) ;
1680
1678
} ) ;
1681
1679
}
1682
1680
}
You can’t perform that action at this time.
0 commit comments