deep reject only unify numeric var with concrete numeric
This commit is contained in:
parent
17c1167216
commit
1d7192d6ea
1 changed files with 4 additions and 0 deletions
|
@ -321,6 +321,10 @@ impl DeepRejectCtxt {
|
||||||
TreatParams::AsCandidateKey => true,
|
TreatParams::AsCandidateKey => true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
ty::Infer(ty::IntVar(_)) => impl_ty.is_integral(),
|
||||||
|
|
||||||
|
ty::Infer(ty::FloatVar(_)) => impl_ty.is_floating_point(),
|
||||||
|
|
||||||
ty::Infer(_) => true,
|
ty::Infer(_) => true,
|
||||||
|
|
||||||
// As we're walking the whole type, it may encounter projections
|
// As we're walking the whole type, it may encounter projections
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue