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 @@ -328,3 +328,6 @@ lint-builtin-impl-unsafe-method = implementation of an `unsafe` method
328
328
lint-builtin-missing-doc = missing documentation for { $article } { $desc }
329
329
330
330
lint-builtin-missing-copy-impl = type could implement `Copy`; consider adding `impl Copy`
331
+
332
+ lint-builtin-missing-debug-impl =
333
+ type does not implement `{ $debug } `; consider adding `#[derive(Debug)]` or a manual implementation
Original file line number Diff line number Diff line change @@ -857,12 +857,9 @@ impl<'tcx> LateLintPass<'tcx> for MissingDebugImplementations {
857
857
858
858
if !self . impling_types . as_ref ( ) . unwrap ( ) . contains ( & item. def_id ) {
859
859
cx. struct_span_lint ( MISSING_DEBUG_IMPLEMENTATIONS , item. span , |lint| {
860
- lint. build ( & format ! (
861
- "type does not implement `{}`; consider adding `#[derive(Debug)]` \
862
- or a manual implementation",
863
- cx. tcx. def_path_str( debug)
864
- ) )
865
- . emit ( ) ;
860
+ lint. build ( fluent:: lint:: builtin_missing_debug_impl)
861
+ . set_arg ( "debug" , cx. tcx . def_path_str ( debug) )
862
+ . emit ( ) ;
866
863
} ) ;
867
864
}
868
865
}
You can’t perform that action at this time.
0 commit comments