Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not find symbols in external implementations #1165

Open
ensc opened this issue May 1, 2021 · 0 comments
Open

Does not find symbols in external implementations #1165

ensc opened this issue May 1, 2021 · 0 comments

Comments

@ensc
Copy link

ensc commented May 1, 2021

In

pub mod lib {
    pub struct Foo;

    impl Foo {
	pub fn some_func() {}
    }
}

pub mod app {
    impl crate::lib::Foo {
	pub fn other_func() {}
    }
}

fn main() {
    lib::Foo::some_func();	// ok
    lib::Foo::other_func();	// broken
}

the some_func() symbol is found by racer while other_func not:

$ racer --version
racer 2.1.45

$ racer complete 16 15 main.rs 
PREFIX 182,183,s
MATCH some_func,5,8,main.rs,Function,pub fn some_func()
END

$ racer complete 17 15 main.rs 
PREFIX 215,216,o
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant