8000 Does not find symbols in external implementations · Issue #1165 · racer-rust/racer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

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

      0