Fix ICE for transmutability in candidate assembly
Don't skip transmutability check just because there may be generics in the ParamEnv. Fixes #110467
This commit is contained in:
parent
7908a1d654
commit
238756e45d
2 changed files with 18 additions and 1 deletions
|
@ -775,7 +775,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
obligation: &TraitObligation<'tcx>,
|
||||
candidates: &mut SelectionCandidateSet<'tcx>,
|
||||
) {
|
||||
if obligation.has_non_region_param() {
|
||||
if obligation.predicate.has_non_region_param() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue