Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Can't build syntex_errors if using "-vv" #119

Open
Riateche opened this issue Apr 5, 2017 · 2 comments
Open

Can't build syntex_errors if using "-vv" #119

Riateche opened this issue Apr 5, 2017 · 2 comments

Comments

@Riateche
Copy link

Riateche commented Apr 5, 2017

If syntex_errors is somewhere in dependencies, running cargo build -vv results in a fail:

    Running `rustc --crate-name build_script_build /home/ri/.cargo/registry/src/github.com-1ecc6299db9ec823/kernel32-sys-0.2.2/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=9b6c3463a8ee3470 -C extra-filename=-9b6c3463a8ee3470 --out-dir /tmp/1/test_full_run/crate/target/debug/build/kernel32-sys-9b6c3463a8ee3470 -L dependency=/tmp/1/test_full_run/crate/target/debug/deps --extern build=/tmp/1/test_full_run/crate/target/debug/deps/libbuild-be2484a2a757a053.rlib`
error: unused `#[macro_use]` import
  --> /home/ri/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_errors-0.54.0/src/lib.rs:20:1
   |
20 | #[macro_use]
   | ^^^^^^^^^^^^
   |
note: lint level defined here
  --> /home/ri/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_errors-0.54.0/src/lib.rs:16:31
   |
16 | #![cfg_attr(not(stage0), deny(warnings))]
   |                               ^^^^^^^^

error: unused `#[macro_use]` import
  --> /home/ri/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_errors-0.54.0/src/lib.rs:22:1
   |
22 | #[macro_use]
   | ^^^^^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile `syntex_errors`.

I'm using -vv to view build scripts output, but cargo also seems to enable more strict lint checks.

@Dushistov
Copy link

May be Dup of rust-lang/cargo#3823 ?

@devurandom
Copy link

The upstream issue rust-lang/cargo#3823 was fixed about a month ago, but there was no release since then. I assume this will be fixed with Cargo 0.18.0.

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

No branches or pull requests

3 participants