rust/compiler/rustc_trait_selection/src
Yuki Okushi c1b28c3435
Rollup merge of #109748 - compiler-errors:new-solver-discr-kind-ice, r=lcnr
Don't ICE on `DiscriminantKind` projection in new solver

As title says, since we now actually call `Ty::discriminant_kind` on placeholder types 😃

Also drive-by simplify `Pointee::Metadata` projection logic, and fix the UI test because the `<T as Pointee>::Metadata` tests weren't actually exercising the new projection logic, since we still eagerly normalize (which hits `project.rs` in the old solver) in HIR typeck.

r? `@lcnr` tho feel free to re-roll, this pr is very low-priority and not super specific to the new trait solver.

Fixes compiler-errors/next-solver-hir-issues#14
2023-03-30 21:07:02 +09:00
..
solve Rollup merge of #109748 - compiler-errors:new-solver-discr-kind-ice, r=lcnr 2023-03-30 21:07:02 +09:00
traits Inline and remove SelectionContext::fast_reject_trait_refs. 2023-03-29 06:48:52 +11:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
infer.rs remove some trait solver helpers 2023-03-21 09:57:20 +01:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00