diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-14 19:25:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 19:25:08 +0100 |
| commit | f9c2c1256bc44605812f03b636c590bb369acc3d (patch) | |
| tree | 23e5c8987b3b268bfdda8069ccd1336dfdd2984e /compiler/rustc_codegen_llvm/src | |
| parent | 7354f6e73b549848400a325a9c3eefbad60a04b3 (diff) | |
| parent | faafa5c3107344adc5e57dd6d6dc74e019bd7daf (diff) | |
| download | rust-f9c2c1256bc44605812f03b636c590bb369acc3d.tar.gz rust-f9c2c1256bc44605812f03b636c590bb369acc3d.zip | |
Rollup merge of #135493 - compiler-errors:legacy-mangle-closure, r=lqd
Fix legacy symbol mangling of closures
When this code was written, there was no `type_of` implementation for closures. That has long since been changed.
In the UI test:
```
trait A where
[(); (|| {}, 1).1]: Sized,
{
}
```
We tried to walk up the def path tree for the closure, from closure -> anon const -> trait. When we reached the trait, we tried to call `type_of` on it which obviously doesn't do the right thing and ICEs.
Fixes #135418
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
