docopt / docopt.rs

Docopt for Rust (command line argument parser).
The Unlicense
756 stars 89 forks source link

Syntax error when building docopt #64

Closed ruipacheco closed 9 years ago

ruipacheco commented 9 years ago

Tried to build iota, a rust editor and got the following error:

$ cargo build --release
   Compiling termbox-sys v0.0.2 (https://github.com/gchp/termbox-sys#e8352762)
   Compiling docopt v0.6.16
/Users/ruipacheco/.cargo/registry/src/github.com-1ecc6299db9ec823/docopt-0.6.16/src/parse.rs:45:34: 45:40 error: unresolved import `std::collections::hash_map::Vacant`. There is no `Vacant` in `std::collections::hash_map`
/Users/ruipacheco/.cargo/registry/src/github.com-1ecc6299db9ec823/docopt-0.6.16/src/parse.rs:45 use std::collections::hash_map::{Vacant, Occupied};
                                                                                                                                 ^~~~~~
/Users/ruipacheco/.cargo/registry/src/github.com-1ecc6299db9ec823/docopt-0.6.16/src/parse.rs:45:42: 45:50 error: unresolved import `std::collections::hash_map::Occupied`. There is no `Occupied` in `std::collections::hash_map`
/Users/ruipacheco/.cargo/registry/src/github.com-1ecc6299db9ec823/docopt-0.6.16/src/parse.rs:45 use std::collections::hash_map::{Vacant, Occupied};
                                                                                                                                         ^~~~~~~~
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
Could not compile `docopt`.

To learn more, run the command again with --verbose.
ruipacheco commented 9 years ago

This started here.

BurntSushi commented 9 years ago

Yeah, it looks like you're using a more recent nightly than I am. I'm on 2014-12-20 because the latest nightly is badly broken.

In any case, the fix is backwards compatible. I'm just not sure if there are more bugs. Maybe travis will tell us.

ruipacheco commented 9 years ago

I’ve done the manual fix, iota seems to work well.

On 23 Dec 2014, at 00:52, Andrew Gallant notifications@github.com wrote:

Yeah, it looks like you're using a more recent nightly than I am. I'm on 2014-12-20 because the latest nightly is badly broken https://github.com/rust-lang/rust/issues/20127.

In any case, the fix is backwards compatible. I'm just not sure if there are more bugs. Maybe travis will tell us.

— Reply to this email directly or view it on GitHub https://github.com/docopt/docopt.rs/issues/64#issuecomment-67906426.