diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-08 00:28:47 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-08 00:28:47 +0000 | 
| commit | 3c3186148e4a66a507e606f191c35ed49d873b08 (patch) | |
| tree | 9ffe97bddbaed9c6bc1b684c75dfdda1f00b0e3c /compiler/rustc_hir_analysis/messages.ftl | |
| parent | ad211ced81509462cdfe4c29ed10f97279a0acae (diff) | |
| download | rust-3c3186148e4a66a507e606f191c35ed49d873b08.tar.gz rust-3c3186148e4a66a507e606f191c35ed49d873b08.zip | |
Don't allow transmuting ZSTs in dispatch_from_dyn impl
Diffstat (limited to 'compiler/rustc_hir_analysis/messages.ftl')
| -rw-r--r-- | compiler/rustc_hir_analysis/messages.ftl | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_hir_analysis/messages.ftl b/compiler/rustc_hir_analysis/messages.ftl index 0c3ed9b5c60..d7ab6eca84b 100644 --- a/compiler/rustc_hir_analysis/messages.ftl +++ b/compiler/rustc_hir_analysis/messages.ftl @@ -135,7 +135,7 @@ hir_analysis_dispatch_from_dyn_multi = implementing the `DispatchFromDyn` trait hir_analysis_dispatch_from_dyn_repr = structs implementing `DispatchFromDyn` may not have `#[repr(packed)]` or `#[repr(C)]` -hir_analysis_dispatch_from_dyn_zst = the trait `DispatchFromDyn` may only be implemented for structs containing the field being coerced, ZST fields with 1 byte alignment, and nothing else +hir_analysis_dispatch_from_dyn_zst = the trait `DispatchFromDyn` may only be implemented for structs containing the field being coerced, ZST fields with 1 byte alignment that don't mention type/const generics, and nothing else .note = extra field `{$name}` of type `{$ty}` is not allowed hir_analysis_drop_impl_negative = negative `Drop` impls are not supported | 
