File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -326,3 +326,5 @@ lint-builtin-decl-unsafe-method = declaration of an `unsafe` method
326326lint-builtin-impl-unsafe-method = implementation of an `unsafe` method
327327
328328lint-builtin-missing-doc = missing documentation for { $article } { $desc }
329+
330+ lint-builtin-missing-copy-impl = type could implement `Copy`; consider adding `impl Copy`
Original file line number Diff line number Diff line change @@ -781,11 +781,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingCopyImplementations {
781781 . is_ok ( )
782782 {
783783 cx. struct_span_lint ( MISSING_COPY_IMPLEMENTATIONS , item. span , |lint| {
784- lint. build (
785- "type could implement `Copy`; consider adding `impl \
786- Copy`",
787- )
788- . emit ( ) ;
784+ lint. build ( fluent:: lint:: builtin_missing_copy_impl) . emit ( ) ;
789785 } )
790786 }
791787 }
You can’t perform that action at this time.
0 commit comments