diff options
| author | Jubilee <workingjubilee@gmail.com> | 2025-01-14 19:56:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 19:56:30 -0800 |
| commit | f256f9ef228caca7115f6486a8790eb079ec2858 (patch) | |
| tree | c0944ff4e2bdb1f6a57b2aa35df0fe298f808e99 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | aa8bc2563eca051546bbaff9b9552e5edf5a64f1 (diff) | |
| parent | 3cd75812c818c5e7855f1be8f6a754c9f7a9f0f8 (diff) | |
| download | rust-f256f9ef228caca7115f6486a8790eb079ec2858.tar.gz rust-f256f9ef228caca7115f6486a8790eb079ec2858.zip | |
Rollup merge of #135228 - compiler-errors:normalizes-ur-dispatch, r=BoxyUwU
Improve `DispatchFromDyn` and `CoerceUnsized` impl validation * Disallow arbitrary 1-ZST fields in `DispatchFromDyn` -- only `PhantomData`, and 1-ZSTs that mention no params (which is needed to support, e.g., the `Global` alloctor in `Box<T, U = Global>`). * Don't allow coercing between non-ZSTs to ZSTs (since the previous check wasn't actually checking the field tys were the same before checking the layout...) * Normalize the field before checking it's `PhantomData`. Fixes #135215 Fixes #135214 Fixes #135220 r? ```@BoxyUwU``` or reassign
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
