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

Can't compile with Clippy, missing rustc_front #315

Closed
hawkw opened this issue Sep 7, 2015 · 5 comments
Closed

Can't compile with Clippy, missing rustc_front #315

hawkw opened this issue Sep 7, 2015 · 5 comments

Comments

@hawkw
Copy link

hawkw commented Sep 7, 2015

I added Clippy to my dependencies and added the plugin attribute to my crate. $ cargo build now yields the following error:

Compiling clippy v0.0.13
/Users/hawk/.cargo/registry/src/jackfan.us.kg-0a35038f75765ae4/clippy-0.0.13/src/lib.rs:11:1: 11:26 error: can't find crate for `rustc_front`
/Users/hawk/.cargo/registry/src/jackfan.us.kg-0a35038f75765ae4/clippy-0.0.13/src/lib.rs:11 extern crate rustc_front;
                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `clippy`.

I'm using the v1.4.0 nightly Rust on Mac OS X 10.10.5:

$  rustc --version
rustc 1.4.0-nightly (fe9cef7da 2015-08-30)
$ cargo --version
cargo 0.5.0-nightly (1d0823b 2015-08-29)
@llogiq
Copy link
Contributor

llogiq commented Sep 7, 2015

You'll need a newer nightly – thus rustc_front crate was added fairly recently.

Unfortunately, we're beholden to the latest nightly, let our development drifts too far away from rustc, whose unstable plugin API is our lifeline after all.

@llogiq llogiq closed this as completed Sep 7, 2015
@hawkw
Copy link
Author

hawkw commented Sep 7, 2015

Okay, I wasn't sure if this was a compatibility issue or not. I guess I should've grabbed a newer Rust before reporting, sorry.

@llogiq
Copy link
Contributor

llogiq commented Sep 7, 2015

No problem. We're here to help. 😄

@kbknapp
Copy link

kbknapp commented Apr 8, 2016

Seems to have popped up again?

$ cargo build
Compiling clippy v0.0.61
[..]/jackfan.us.kg-88ac128001ac3a9a/clippy-0.0.61/src/lib.rs:23:1: 23:26 error: can't find crate for `rustc_front` [E0463]
[..]/jackfan.us.kg-88ac128001ac3a9a/clippy-0.0.61/src/lib.rs:23 extern crate rustc_front;
                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
error: Could not compile `clippy`.

To learn more, run the command again with --verbose.

$ rustc -V
rustc 1.9.0-nightly (bf5da36f1 2016-04-06)

@mcarton
Copy link
Member

mcarton commented Apr 8, 2016

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

4 participants