Giter VIP home page Giter VIP logo

Comments (5)

mimoo avatar mimoo commented on July 18, 2024

I'm getting this error atm:

error[E0463]: can't find crate for `rustc_parse`
  --> rustdoc-highlight-0.1.10/src/lib.rs:19:1
   |
19 | extern crate rustc_parse;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

from cargo-src.

bjorn3 avatar bjorn3 commented on July 18, 2024

@mimoo Which rustc version are you using? (rustc -V) And have you installed rustc-dev for your nightly toolchain? (rustup component add --toolchain nightly rustc-dev)

from cargo-src.

mimoo avatar mimoo commented on July 18, 2024

Which rustc version are you using?

rustc 1.39.0 (4560ea788 2019-11-04)

And have you installed rustc-dev for your nightly toolchain?

tried that, and rustup update nightly and still getting the same error.

from cargo-src.

mimoo avatar mimoo commented on July 18, 2024

not sure how cargo works :D so I created a directory and used rustup override set nightly and now getting another error when trying to install cargo-src:

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> rustdoc-highlight-0.1.10/src/lib.rs:56:16
   |
56 |     let sess = ParseSess::with_silent_emitter(process_configure_mod);
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 0 parameters

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> rustdoc-highlight-0.1.10/src/lib.rs:95:16
   |
95 |     let sess = ParseSess::with_silent_emitter(process_configure_mod);
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 0 parameters

error: aborting due to 2 previous errors

from cargo-src.

useche avatar useche commented on July 18, 2024

@mimoo Which rustc version are you using? (rustc -V)

rustc 1.36.0 (a53f9df32 2019-07-03)

And have you installed rustc-dev for your nightly toolchain? (rustup component add --toolchain nightly rustc-dev)

When I try that command I get this error:

error: toolchain 'nightly-x86_64-apple-darwin' does not contain component 'rustc-dev' for target 'x86_64-apple-darwin'

Note that I'm getting a different error now when I run "cargo +nightly install cargo-src":

   Compiling rustdoc-highlight v0.1.10
error[E0463]: can't find crate for `rustc_parse`
  --> /Users/luis/.cargo/registry/src/github.com-1ecc6299db9ec823/rustdoc-highlight-0.1.10/src/lib.rs:19:1
   |
19 | extern crate rustc_parse;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `rustdoc-highlight`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-src v0.1.6 (/Users/luis/code/cargo-src)`, intermediate artifacts can be found at `/Users/luis/code/cargo-src/target`

Caused by:
  build failed

from cargo-src.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.