rust/crates/syntax
bors[bot] c17db9fa53
Merge #11107
11107: Fix generic type substitution in impl trait with assoc type r=pnevyk a=pnevyk

Fixes #11045 

The path transform now detects if a type parameter that is being substituted has an associated type. In that case it is necessary (or safe in general case) to fully qualify the substitution with a trait which the associated type belongs to.

This PR also fixes the previous wrong behavior of the substitution that could create an invalid tree `PATH_TYPE -> PATH_TYPE -> ...`.

Co-authored-by: Petr Nevyhoštěný <petr.nevyhosteny@gmail.com>
2022-01-08 09:05:09 +00:00
..
fuzz Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
src Merge #11107 2022-01-08 09:05:09 +00:00
test_data remove fragments from syntax 2021-12-28 17:00:55 +03:00
Cargo.toml Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00