]> git.lizzy.rs Git - rust.git/commit
Merge #11620
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 4 Mar 2022 19:47:39 +0000 (19:47 +0000)
committerGitHub <noreply@github.com>
Fri, 4 Mar 2022 19:47:39 +0000 (19:47 +0000)
commita474535e44f9d4d46a74466f92cf5d8c48f5617c
tree3f7ac6187a85fb306e0070f1f78aefa16c818742
parentf8329ba98731a939fe2c6eb878778a6399274ff0
parent4a866fc672927b9d3dd5a7211bfe45e9eebebdc2
Merge #11620

11620: feat: Support locals with multiple declaration sites r=Veykril a=Veykril

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8860

This implements the first approach of https://github.com/rust-analyzer/rust-analyzer/issues/8860#issuecomment-845461773:
> treat every Local as having potentially many sources?

The way this is written does allow changing to a MultiLocal approach instead though, I'll investigate whether that turns out to be better or not.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>