1
Fork 0
rust/compiler/rustc_hir_analysis/src
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
..
astconv Taint more aggressively in astconv 2024-01-11 09:03:26 +00:00
check Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
coherence Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
collect Silence follow up errors if astconv already errored 2024-01-11 09:03:26 +00:00
impl_wf_check Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
outlives Imply outlives-bounds on lazy type aliases 2023-12-28 02:03:43 +01:00
structured_errors Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
variance Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
autoderef.rs Remove special-casing around aliaskind in new solver 2024-01-11 16:54:11 +00:00
bounds.rs ~const trait or projection bounds do not imply non-const bounds 2024-01-08 15:01:14 +00:00
check_unused.rs Don't pass lint back out of lint decorator 2023-12-15 16:05:36 +00:00
collect.rs Silence follow up errors if astconv already errored 2024-01-11 09:03:26 +00:00
constrained_generic_params.rs finish RegionKind rename 2023-11-14 13:13:27 +00:00
errors.rs Disallow reference to static mut for expressions 2024-01-06 06:31:35 +03:00
hir_wf_check.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
impl_wf_check.rs Rename struct_span_err! as struct_span_code_err!. 2024-01-10 07:33:04 +11:00
lib.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
structured_errors.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00