diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-01-15 04:08:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 04:08:14 -0500 |
| commit | 8e91327e7128d9315782750f7914657d2053ff58 (patch) | |
| tree | f792f2b2091aa72aec708a66e0304daa2c3d3c85 /compiler/rustc_codegen_gcc/src | |
| parent | f35ff74ac6f8a8a6e05ea8651a8b24de581f94bb (diff) | |
| parent | c89ee081dd33eead1b4d0c3d287f96f3a664553b (diff) | |
| download | rust-8e91327e7128d9315782750f7914657d2053ff58.tar.gz rust-8e91327e7128d9315782750f7914657d2053ff58.zip | |
Rollup merge of #135520 - compiler-errors:mono-impossible-drop-with-lifetimes, r=BoxyUwU
Make sure we actually use the right trivial lifetime substs when eagerly monomorphizing drop for ADTs Absolutely clueless mistake of mine. Whoops. When eagerly collecting mono items, when we encounter an ADT, we try to monomorphize its drop glue. In #135313, I made it so that this acts more like eagerly monomorphizing functions, where we allow (in this case) ADTs with lifetimes, since those can be erased by codegen. However, I did not account for the call to `instantiate_and_check_impossible_predicates`, which was still passing an empty set of args. This means that if the ADT in question had any predicates, we'd get an index out of bounds panic. This PR creates the correct set of args for the ADT. Fixes #135515. I assume that this manifests in that issue because of `-Clink-dead-code` or something.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions
