about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-01-12 15:16:56 +0100
committerGitHub <noreply@github.com>2024-01-12 15:16:56 +0100
commit46c3c014ebcabdf66867b9a8398a183d4d45600a (patch)
treeb719e6ac3abfe770f3e24e4d93808a5bc0407dcd /tests/rustdoc-js-std/parser-slice-array.js
parent174e73a3f6df6f96ab453493796e461164dea94a (diff)
parent68c2f11240c55992b8d56a22f25641cf6abd9f08 (diff)
downloadrust-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/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions