Skip to content

Does not find symbols in external implementations #1165

Open
@ensc

Description

@ensc

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions