update fixme
This commit is contained in:
parent
1490c58076
commit
ac50f4b571
@ -512,10 +512,9 @@ pub fn instantiate(
|
|||||||
} else {
|
} else {
|
||||||
match a_ty.kind() {
|
match a_ty.kind() {
|
||||||
&ty::Alias(ty::AliasKind::Projection, data) => {
|
&ty::Alias(ty::AliasKind::Projection, data) => {
|
||||||
// FIXME: This does not handle subtyping correctly, we should switch to
|
// FIXME: This does not handle subtyping correctly, we could
|
||||||
// alias-relate in the new solver and could instead create a new inference
|
// instead create a new inference variable for `a_ty`, emitting
|
||||||
// variable for `a_ty`, emitting `Projection(a_ty, a_infer)` and
|
// `Projection(a_ty, a_infer)` and `a_infer <: b_ty`.
|
||||||
// `a_infer <: b_ty`.
|
|
||||||
self.obligations.push(Obligation::new(
|
self.obligations.push(Obligation::new(
|
||||||
self.tcx(),
|
self.tcx(),
|
||||||
self.trace.cause.clone(),
|
self.trace.cause.clone(),
|
||||||
|
Loading…
Reference in New Issue
Block a user