Guillaume Gomez
46c3c014eb
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
2024-01-12 15:16:56 +01:00
..
2023-12-31 20:42:17 +00:00
2024-01-06 09:56:00 +00:00
2024-01-09 19:25:54 +00:00
2024-01-10 07:40:00 +11:00
2024-01-10 07:40:00 +11:00
2024-01-11 16:55:10 +11:00
2024-01-11 07:56:17 +11:00
2024-01-09 13:23:15 +01:00
2024-01-10 07:33:06 +11:00
2024-01-11 16:43:12 +11:00
2024-01-11 07:56:17 +11:00
2024-01-11 16:55:10 +11:00
2024-01-09 13:23:17 +01:00
2024-01-10 07:33:06 +11:00
2024-01-09 19:25:54 +00:00
2024-01-11 19:42:53 +01:00
2024-01-11 07:56:17 +11:00
2024-01-12 08:23:59 +01:00
2024-01-07 16:53:32 +03:00
2024-01-10 08:52:44 +00:00
2024-01-12 15:16:56 +01:00
2024-01-05 10:56:59 +00:00
2024-01-11 19:42:51 +01:00
2024-01-10 07:33:06 +11:00
2024-01-06 11:54:15 +00:00
2024-01-11 03:02:39 +01:00
2024-01-11 18:37:56 +11:00
2024-01-10 16:29:23 +00:00
2024-01-09 13:23:15 +01:00
2024-01-05 15:59:11 -05:00
2024-01-09 20:08:44 -05:00
2024-01-06 09:56:00 +00:00
2024-01-12 09:11:57 +00:00
2024-01-11 03:02:41 +01:00
2024-01-11 19:42:51 +01:00
2024-01-10 21:18:54 +01:00
2024-01-11 18:37:56 +11:00
2024-01-08 19:41:01 +01:00
2024-01-10 21:18:54 +01:00
2024-01-11 14:04:11 +01:00
2024-01-09 13:23:17 +01:00
2024-01-10 07:33:07 +11:00
2024-01-11 03:02:42 +01:00
2024-01-09 20:08:44 -05:00
2024-01-11 07:56:17 +11:00
2024-01-11 03:02:42 +01:00
2024-01-09 20:08:44 -05:00
2024-01-10 07:40:00 +11:00
2024-01-09 20:08:44 -05:00
2024-01-12 15:16:56 +01:00
2024-01-09 16:09:30 +00:00
2024-01-10 07:33:07 +11:00
2023-12-31 20:58:36 +00:00
2024-01-09 15:45:03 -08:00