about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-14 19:25:08 +0100
committerGitHub <noreply@github.com>2025-01-14 19:25:08 +0100
commitf9c2c1256bc44605812f03b636c590bb369acc3d (patch)
tree23e5c8987b3b268bfdda8069ccd1336dfdd2984e /compiler/rustc_interface/src/interface.rs
parent7354f6e73b549848400a325a9c3eefbad60a04b3 (diff)
parentfaafa5c3107344adc5e57dd6d6dc74e019bd7daf (diff)
downloadrust-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_interface/src/interface.rs')
0 files changed, 0 insertions, 0 deletions