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

Duplicate message on compilation errors #3167

Closed
casey opened this issue Oct 5, 2016 · 1 comment
Closed

Duplicate message on compilation errors #3167

casey opened this issue Oct 5, 2016 · 1 comment

Comments

@casey
Copy link
Contributor

casey commented Oct 5, 2016

My compilation errors seem to be getting printed twice:

: cargo test
   Compiling j v0.1.5 (file:///Users/rodarmor/src/j)
error[E0277]: the trait bound `&std::iter::Peekable<std::slice::Iter<'_, &str>>: std::iter::Iterator` is not satisfied
  --> src/lib.rs:56:5
   |
56 |     for command in &i {
   |     ^
   |
   = note: `&std::iter::Peekable<std::slice::Iter<'_, &str>>` is not an iterator; maybe try calling `.iter()` or a similar method
   = note: required by `std::iter::IntoIterator::into_iter`

error[E0277]: the trait bound `&std::iter::Peekable<std::slice::Iter<'_, &str>>: std::iter::Iterator` is not satisfied
  --> src/lib.rs:56:5
   |
56 |     for command in &i {
   |     ^
   |
   = note: `&std::iter::Peekable<std::slice::Iter<'_, &str>>` is not an iterator; maybe try calling `.iter()` or a similar method
   = note: required by `std::iter::IntoIterator::into_iter`

error: aborting due to previous error

Build failed, waiting for other jobs to finish...
error: aborting due to previous error

error: Could not compile `j`.

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

Some info about my setup:

: cargo --version
cargo 0.13.0-nightly (109cb7c 2016-08-19)
: rustc --version
rustc 1.12.0 (3191fbae9 2016-09-23)
: uname -a
Darwin fancypants 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
@casey casey changed the title Getting double message on compilation errors Duplicate message on compilation errors Oct 6, 2016
@alexcrichton
Copy link
Member

Thanks for the report! What's actually happening here is that the library is being compiled twice (once with --test and once for doc tests later on), and this is a dupe of #1534 and #851 (now tracked at #1198). This is intended behavior though, and you can use various flags like --test, --lib, or -j to not run rustc in parallel, so I'm going to close this.

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

2 participants