racer: External crate completions don't work without extern crate declaration
Steps to repoduce:
- Create a new project:
cargo new temp - Add a dependency, e.g.
rand = "0.6.5" cargo build- Try to complete
use rand::(I tested it with vim). It won’t work. - Add
extern crate rand;and try again. It will.
Versions:
racer v2.1.19
rustc 1.34.0-nightly (146aa60f3 2019-02-18)
Linux
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17
This is an issue for me now:
Only
stdcan be completed. No external crates aftercargo build, not even withextern crate ...declaration.