diff options
| author | David Wood <david.wood@huawei.com> | 2022-06-28 11:23:11 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-06-30 08:59:22 +0100 |
| commit | 28655bc95537efa467dde736b9c1ded59b95b564 (patch) | |
| tree | 9f973764b713f363727e6fc7eedcf637aed004f6 /compiler/rustc_lint | |
| parent | 82bd2c23e5a1525659ea5b59e304fb7afbcab388 (diff) | |
| download | rust-28655bc95537efa467dde736b9c1ded59b95b564.tar.gz rust-28655bc95537efa467dde736b9c1ded59b95b564.zip | |
lint: port missing copy impl diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_lint')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index cf28cdd9bce..c33e9561c1a 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -781,11 +781,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingCopyImplementations { .is_ok() { cx.struct_span_lint(MISSING_COPY_IMPLEMENTATIONS, item.span, |lint| { - lint.build( - "type could implement `Copy`; consider adding `impl \ - Copy`", - ) - .emit(); + lint.build(fluent::lint::builtin_missing_copy_impl).emit(); }) } } |
