about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-08-15 14:29:49 +0200
committerGitHub <noreply@github.com>2023-08-15 14:29:49 +0200
commitda4e7bd0cd3af1d396998b130205134aeabaa39b (patch)
tree63666e0ce8c90be89a609757aafc59eb3dc3196d /compiler/rustc_codegen_llvm/src/lib.rs
parent47bdda2b459cbbc8526beeed1aa97ee5f99422c1 (diff)
parent7d8563c60277bc8ad07de76c7dc51c5eb4118bb7 (diff)
downloadrust-da4e7bd0cd3af1d396998b130205134aeabaa39b.tar.gz
rust-da4e7bd0cd3af1d396998b130205134aeabaa39b.zip
Rollup merge of #114829 - compiler-errors:next-solver-only-unsize-to-dyn-once, r=lcnr
Separate `consider_unsize_to_dyn_candidate` from other unsize candidates

Move the unsize candidate assembly *just for* `T -> dyn Trait` out of `assemble_candidates_via_self_ty` so that we only consider it once, instead of for every normalization step of the self ty. This makes sure that we don't assemble several candidates that are equal modulo normalization when we really don't care about normalizing the self type of an `T: Unsize<dyn Trait>` goal anyways.

Fixes rust-lang/trait-system-refactor-initiative#57

r? lcnr
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions