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
326
326
lint-builtin-impl-unsafe-method = implementation of an `unsafe` method
327
327
328
328
lint-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 {
781
781
. is_ok ( )
782
782
{
783
783
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 ( ) ;
789
785
} )
790
786
}
791
787
}
You can’t perform that action at this time.
0 commit comments