Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS: "error[E0554]" #257

Open
useche opened this issue Jul 4, 2019 · 5 comments
Open

MacOS: "error[E0554]" #257

useche opened this issue Jul 4, 2019 · 5 comments

Comments

@useche
Copy link

useche commented Jul 4, 2019

When running "cargo install cargo-src", I get:
Compiling rustdoc-highlight v0.1.7 error[E0554]: #![feature] may not be used on the stable release channel

When runnning with the nightly build, "cargo +nightly install cargo-src", I get:
Compiling rustdoc-highlight v0.1.7 error[E0432]: unresolved importsyntax::parse::lexer::TokenAndSpan``

@mimoo
Copy link

mimoo commented Dec 15, 2019

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

@bjorn3
Copy link

bjorn3 commented Dec 15, 2019

@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)

@mimoo
Copy link

mimoo commented Dec 15, 2019

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.

@mimoo
Copy link

mimoo commented Dec 15, 2019

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

@useche
Copy link
Author

useche commented Feb 20, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants