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
328328lint-builtin-missing-doc = missing documentation for { $article } { $desc }
329329
330330lint-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 {
857857
858858 if !self . impling_types . as_ref ( ) . unwrap ( ) . contains ( & item. def_id ) {
859859 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 ( ) ;
866863 } ) ;
867864 }
868865 }
You can’t perform that action at this time.
0 commit comments