Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Searching for an ident should take aliasing into account #1372

Open
Xanewok opened this issue Feb 25, 2019 · 1 comment
Open

Searching for an ident should take aliasing into account #1372

Xanewok opened this issue Feb 25, 2019 · 1 comment

Comments

@Xanewok
Copy link
Member

Xanewok commented Feb 25, 2019

Originally created by @nrc (rust-dev-tools/rls-analysis#137):

e.g., if there is use foo as bar, then we should be able to search for bar. Currently this would give no results.

@Xanewok
Copy link
Member Author

Xanewok commented Mar 3, 2019

In general goto-defs/refs work for:

struct Struct { inner: () }
use Struct as MySuperStruct;

fn main() {
    let a = Struct { inner: () };
    let a = MySuperStruct { inner: () };
}

But workspace symbols only return Struct - I assume we'd like it to return the alias as well.

@Xanewok Xanewok added the bug label Mar 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant