rust/crates
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
..
base_db Merge #11069 2021-12-20 16:50:35 +00:00
cfg Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
flycheck Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
hir Merge #11230 2022-01-07 18:06:33 +00:00
hir_def Simplify 2022-01-07 21:52:37 +01:00
hir_expand Merge #11230 2022-01-07 18:06:33 +00:00
hir_ty Merge #11145 2022-01-07 14:10:11 +00:00
ide Merge #11145 2022-01-07 14:10:11 +00:00
ide_assists Merge #11107 2022-01-08 09:05:09 +00:00
ide_completion Merge #11218 2022-01-06 23:17:51 +00:00
ide_db Merge #11107 2022-01-08 09:05:09 +00:00
ide_diagnostics feat(diagnostics): use default expression instead of todo! when missing fields 2022-01-07 14:13:34 +01:00
ide_ssr compress 2021-12-28 19:17:34 +03:00
limit Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
mbe simplify 2022-01-03 16:27:16 +03:00
parser add empty input tests 2022-01-02 18:50:32 +03:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc_macro_api Merge #11028 2021-12-20 13:45:35 +00:00
proc_macro_srv Rename and use the 1.55 ABI for 1.54 2022-01-04 14:06:26 +02:00
proc_macro_test Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
profile Generate AnyHasDocComments node 2022-01-07 12:38:18 +01:00
project_model feat: Add config to replace specific proc-macros with dummy expanders 2022-01-06 13:50:18 +01:00
rust-analyzer Merge #11145 2022-01-07 14:10:11 +00:00
sourcegen Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
stdx Generate AnyHasDocComments node 2022-01-07 12:38:18 +01:00
syntax Merge #11107 2022-01-08 09:05:09 +00:00
test_utils fix: Do not complete Drop::drop, complete std::mem::drop instead 2021-12-22 02:25:38 +01:00
text_edit Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
vfs Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
vfs-notify Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00