diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-02 10:38:03 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-02 10:38:03 +0000 |
commit | dce7dc44be948bb6b73b79ce284ec2eb83811ae8 (patch) | |
tree | 4e223570d7ed75e24156d5452ac79ef1f1c53bf4 /crates/ra_syntax/src/ast/tokens.rs | |
parent | 96bd4f5704f447800067ce69d50ab8b4b2315fdb (diff) | |
parent | d3188769e41a051df7f02395b43f11e5cedede0b (diff) |
Merge #2978
2978: Auto import functions r=flodiebold a=SomeoneToIgnore
A follow up for https://github.com/rust-analyzer/rust-analyzer/pull/2887#issuecomment-577832601
I've used the logic for conversion from the https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_hir_def/src/item_scope.rs#L169 method.
I'm not fond of how the conversion is implemented and for my needs, I can simply replace the `hir_def::item_scope::ItemInNs::Types(item.into())` with `hir_def::item_scope::ItemInNs::Values(item.into())` and it will work, so I can use this approach instead, if you find it a better one.
Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/ast/tokens.rs')
0 files changed, 0 insertions, 0 deletions