diff options
| author | David Wood <david.wood@huawei.com> | 2022-06-28 09:52:05 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-06-30 08:59:21 +0100 |
| commit | 14c3016583a0aad3e7a7dd87b2a13807b420b4e7 (patch) | |
| tree | 6de2686aff2ea556a3304773db307da53abe13ef /compiler/rustc_error_messages | |
| parent | e5f2e0e16cba9504897f598ca9f384736f9ddce3 (diff) | |
| download | rust-14c3016583a0aad3e7a7dd87b2a13807b420b4e7.tar.gz rust-14c3016583a0aad3e7a7dd87b2a13807b420b4e7.zip | |
lint: port variant size difference diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/lint.ftl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/lint.ftl b/compiler/rustc_error_messages/locales/en-US/lint.ftl index e9fa3de1b05..ba2490ab773 100644 --- a/compiler/rustc_error_messages/locales/en-US/lint.ftl +++ b/compiler/rustc_error_messages/locales/en-US/lint.ftl @@ -230,3 +230,6 @@ lint-improper-ctypes-array-reason = passing raw arrays by value is not FFI-safe lint-improper-ctypes-array-help = consider passing a pointer to the array lint-improper-ctypes-only-phantomdata = composed only of `PhantomData` + +lint-variant-size-differences = + enum variant is more than three times larger ({$largest} bytes) than the next largest |
