about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-01-08 09:05:09 +0000
committerGitHub <noreply@github.com>2022-01-08 09:05:09 +0000
commitc17db9fa5323a5e4d5f2ca7f8a04e05a1c779593 (patch)
treecf274785657368e15b49d28bc15a1f36394ce966 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent54c999893396434725c284fdcfeeb4d47340d53f (diff)
parenta710b87b1bb86602e9acccbb098039f66e27d80d (diff)
downloadrust-c17db9fa5323a5e4d5f2ca7f8a04e05a1c779593.tar.gz
rust-c17db9fa5323a5e4d5f2ca7f8a04e05a1c779593.zip
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>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions