diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 14:17:18 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 14:17:18 +0000 |
commit | 2f07976cb51f7be216678f410175ba4c09bc7e71 (patch) | |
tree | c1f4896435ecfa48470e08787a24a5e3b73cc4fb /crates/ra_syntax/src/validation/string.rs | |
parent | 562b448f9e49235fd47dabca1a0ce53da65dec6f (diff) | |
parent | 946b0ba02c2ab126b1b1d29027e60f21915d631e (diff) |
Merge #460
460: Name resolution fixes r=flodiebold a=flodiebold
Found two problems:
- use tree desugaring lost the prefix if the path had just one segment (e.g. in `use foo::{bar, baz}`)
- when resolving imports across source roots, it actually used the name of the segment from the other source root... so e.g. in `use ra_syntax::foo` it'd map `ra_syntax` to the import instead of `foo` :smile:
Both of these are one-line fixes, most of this is making it possible to write tests with multiple source roots.
I also left in debug logs for the name resolution, in case it turns out there's still more to fix ;)
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/validation/string.rs')
0 files changed, 0 insertions, 0 deletions