diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-15 21:16:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-15 21:16:03 +0200 |
| commit | 27f1f4d27bae567c011f50bc7dacb8b65b90ad8d (patch) | |
| tree | b0a61d88980bce9caf9d4d26905157222849fd92 /compiler/rustc_codegen_gcc | |
| parent | ca0b7f4dcf2cbac004644831c70b0d7e3f645eeb (diff) | |
| parent | 3df7882272c96a19bcff6269e4f9f0aba34b6c6f (diff) | |
| download | rust-27f1f4d27bae567c011f50bc7dacb8b65b90ad8d.tar.gz rust-27f1f4d27bae567c011f50bc7dacb8b65b90ad8d.zip | |
Rollup merge of #139818 - compiler-errors:normalize-tails, r=oli-obk
Normalize ADT field in `find_tails_for_unsizing` See the comment inline and in the test. TL;DR is that we're getting getting a type from a `type_of` query and then matching on it structurally in codegen, so we're obligated to normalize it. The fact that this wasn't triggered earlier is that all of the types that have `CoerceUnsized` implementations never encounter aliases when peeling the ADT down to their base reference/ptr type. **NOTE**: I also renamed some things and reorganized the function a bit. Fixes #139812 Fixes #74451, which I didn't think was interesting enough to add another test. r? oli-obk
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
