Add FIXME
This commit is contained in:
parent
d0537cda9e
commit
3a2cf708ed
1 changed files with 5 additions and 1 deletions
|
|
@ -379,7 +379,11 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
|
|||
) -> Ty {
|
||||
match assoc_ty {
|
||||
Some(res_assoc_ty) => {
|
||||
// Fast path: Check if inner_ty is is `impl Trait` and contained input TypeAlias id
|
||||
// FIXME:
|
||||
// Check if inner_ty is is `impl Trait` and contained input TypeAlias id
|
||||
// this is a workaround while Chalk assoc type projection doesn't always work yet,
|
||||
// but once that is fixed I don't think we should keep this
|
||||
// (we'll probably change how associated types are resolved anyway)
|
||||
if let Ty::Opaque(ref predicates) = inner_ty {
|
||||
for p in predicates.iter() {
|
||||
if let GenericPredicate::Projection(projection) = p {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue