rust-dev-tools / cargo-src

Semantic code navigation for Rust
Apache License 2.0
417 stars 31 forks source link

can't find crate rustc_parse #266

Closed D1mon closed 4 years ago

D1mon commented 4 years ago

steps: 1) i usage nightly version (nightly-x86_64-unknown-linux-gnu) 2) rustup update (rust version 1.43.0-nightly (5d04ce67f 2020-02-13)) 3) cargo install cargo-src

error: rust/nightly/registry/src/github.com-1ecc6299db9ec823/rustdoc-highlight-0.1.10/src/lib.rs:19:1 extern crate rustc_parse; | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate error: aborting due to previous error

bjorn3 commented 4 years ago

Have you installed the rustc-dev component? (rustup component add --toolchain nightly rustc-dev)

D1mon commented 4 years ago

i run this command: rustup component add --toolchain nightly rustc-dev same error

D1mon commented 4 years ago

sorry new error:

rust/nightly/registry/src/github.com-1ecc6299db9ec823/rustdoc-highlight-0.1.10/src/lib.rs:21:1
extern crate syntax_expand;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
bjorn3 commented 4 years ago

Looks like this needs to be updated for the latest nightly.

D1mon commented 4 years ago

rustup component add --toolchain nightly rustc-dev

info: component 'rustc-dev' for target 'x86_64-unknown-linux-gnu' is up to date

bjorn3 commented 4 years ago

I meant cargo-src, not the component.