rust-analyzer/crates/ra_hir
Florian Diebold 18bf278c25 Handle associated type shorthand (T::Item)
This is only allowed for generic parameters (including `Self` in traits), and
special care needs to be taken to not run into cycles while resolving it,
because we use the where clauses of the generic parameter to find candidates for
the trait containing the associated type, but the where clauses may themselves
contain instances of short-hand associated types.

In some cases this is even fine, e.g. we might have `T: Trait<U::Item>, U:
Iterator`. If there is a cycle, we'll currently panic, which isn't great, but
better than overflowing the stack...
2019-09-22 20:02:32 +02:00
..
src Handle associated type shorthand (T::Item) 2019-09-22 20:02:32 +02:00
Cargo.toml Revert "Replace with immutable map to avoid heavy cloning" 2019-09-09 01:34:53 +08:00