diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-01-12 15:16:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-12 15:16:56 +0100 |
| commit | 46c3c014ebcabdf66867b9a8398a183d4d45600a (patch) | |
| tree | b719e6ac3abfe770f3e24e4d93808a5bc0407dcd /tests/codegen/integer-overflow.rs | |
| parent | 174e73a3f6df6f96ab453493796e461164dea94a (diff) | |
| parent | 68c2f11240c55992b8d56a22f25641cf6abd9f08 (diff) | |
| download | rust-46c3c014ebcabdf66867b9a8398a183d4d45600a.tar.gz rust-46c3c014ebcabdf66867b9a8398a183d4d45600a.zip | |
Rollup merge of #119817 - compiler-errors:normalize-opaques, r=lcnr
Remove special-casing around `AliasKind::Opaque` when structurally resolving in new solver
This fixes a few inconsistencies around where we don't eagerly resolve opaques to their (locally-defined) hidden types in the new solver. It essentially allows this code to work:
```rust
fn main() {
type Tait = impl Sized;
struct S {
i: i32,
}
let x: Tait = S { i: 0 };
println!("{}", x.i);
}
```
Since `Tait` is defined in `main`, we are able to poke through the type of `x` with deref.
r? lcnr
Diffstat (limited to 'tests/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions
