rust/compiler/rustc_trait_selection
bors 7455aa5395 Auto merge of #114457 - lcnr:trait_ref_is_knowable-normalize, r=compiler-errors
normalize in `trait_ref_is_knowable` in new solver

fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/51

Alternatively we could avoid normalizing the self type and do this at the end of the `assemble_candidates_via_self_ty` stack by splitting candidates into:
- applicable without normalizing self type
- applicable for aliases, even if they can be normalized
- applicable for stuff which cannot get normalized further

I don't think this would have any significant benefits and it also seems non-trivial to avoid normalizing only the self type in `trait_ref_is_knowable`.

r? `@compiler-errors`
2023-08-13 05:18:27 +00:00
..
src Auto merge of #114457 - lcnr:trait_ref_is_knowable-normalize, r=compiler-errors 2023-08-13 05:18:27 +00:00
Cargo.toml
messages.ftl Migrate a trait selection error to use diagnostic translation 2023-08-07 05:26:38 +00:00