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

Error during cargo miri setup with nightly-2019-08-26 #920

Closed
LukasKalbertodt opened this issue Aug 26, 2019 · 3 comments
Closed

Error during cargo miri setup with nightly-2019-08-26 #920

LukasKalbertodt opened this issue Aug 26, 2019 · 3 comments

Comments

@LukasKalbertodt
Copy link
Member

Running cargo +nightly-2019-08-26 miri setup fails when compiling getops. I'm not sure if this repository is the correct one to report this bug.

$ rustup install nightly-2019-08-26
info: syncing channel updates for 'nightly-2019-08-26-x86_64-unknown-linux-gnu'
info: latest update on 2019-08-26, rust version 1.39.0-nightly (521d78407 2019-08-25)
info: downloading component 'rustc'
 65.9 MiB /  65.9 MiB (100 %)   5.0 MiB/s in 13s ETA:  0s
info: downloading component 'rust-std'
173.1 MiB / 173.1 MiB (100 %)   5.0 MiB/s in 34s ETA:  0s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
 11.7 MiB /  11.7 MiB (100 %)   5.4 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 65.9 MiB /  65.9 MiB (100 %)  11.7 MiB/s in  5s ETA:  0s
info: installing component 'rust-std'
173.1 MiB / 173.1 MiB (100 %)  23.8 MiB/s in  7s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-docs'
 11.7 MiB /  11.7 MiB (100 %)   7.6 MiB/s in  1s ETA:  0s

  nightly-2019-08-26-x86_64-unknown-linux-gnu installed - rustc 1.39.0-nightly (521d78407 2019-08-25)

info: checking for self-updates

$ rustup component add --toolchain nightly-2019-08-26 miri
info: downloading component 'miri'
info: installing component 'miri'

$ cargo +nightly-2019-08-26 miri setup
Installing xargo: `cargo install xargo -f`
    Updating crates.io index
  Downloaded xargo v0.3.15
  Downloaded 1 crate (192.3 KB) in 2.00s
  Installing xargo v0.3.15
   Compiling libc v0.2.62
   Compiling autocfg v0.1.6
   Compiling cc v1.0.40
   Compiling cfg-if v0.1.9
   Compiling rustc-demangle v0.1.16
   Compiling serde v0.8.23
   Compiling semver v0.1.20
   Compiling remove_dir_all v0.5.2
   Compiling itoa v0.1.1
   Compiling same-file v0.1.3
   Compiling xargo v0.3.15
   Compiling rustc-serialize v0.3.24
   Compiling dtoa v0.2.2
   Compiling walkdir v1.0.7
   Compiling rustc_version v0.1.7
   Compiling num-traits v0.2.8
   Compiling rand v0.4.6
   Compiling fs2 v0.4.3
   Compiling dirs v1.0.5
   Compiling num-traits v0.1.43
   Compiling tempdir v0.3.7
   Compiling toml v0.2.1
   Compiling serde_json v0.8.6
   Compiling backtrace-sys v0.1.31
   Compiling backtrace v0.3.35
   Compiling error-chain v0.7.2
    Finished release [optimized] target(s) in 23.68s
   Replacing /home/lukas/.cargo/bin/xargo
    Replaced package `xargo v0.3.14` with `xargo v0.3.15` (executable `xargo`)
Installing rust-src component: `rustup component add rust-src`
info: downloading component 'rust-src'
info: installing component 'rust-src'
    Updating crates.io index
  Downloaded cmake v0.1.41
   Compiling core v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore)
   Compiling compiler_builtins v0.1.19
   Compiling libc v0.2.62
   Compiling cc v1.0.40
   Compiling build_helper v0.1.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/build_helper)
   Compiling cmake v0.1.41
   Compiling unwind v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libunwind)
   Compiling rustc_lsan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_lsan)
   Compiling rustc_msan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_msan)
   Compiling rustc_tsan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_tsan)
   Compiling rustc_asan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_asan)
   Compiling std v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd)
   Compiling rustc-std-workspace-core v1.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/liballoc)
   Compiling cfg-if v0.1.8
   Compiling panic_abort v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libpanic_abort)
   Compiling rustc-std-workspace-alloc v1.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/tools/rustc-std-workspace-alloc)
   Compiling panic_unwind v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libpanic_unwind)
   Compiling hashbrown v0.5.0
    Finished release [optimized] target(s) in 29.83s
    Updating crates.io index
  Downloaded getopts v0.2.21
  Downloaded rustc-std-workspace-std v1.0.0
   Compiling compiler_builtins v0.1.19
   Compiling core v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore)
   Compiling cc v1.0.40
   Compiling libc v0.2.62
   Compiling build_helper v0.1.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/build_helper)
   Compiling rustc-std-workspace-std v1.0.0
   Compiling cmake v0.1.41
   Compiling rustc_msan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_msan)
   Compiling rustc_lsan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_lsan)
   Compiling rustc_tsan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_tsan)
   Compiling rustc_asan v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/librustc_asan)
   Compiling unwind v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libunwind)
   Compiling std v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd)
   Compiling rustc-std-workspace-core v1.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/liballoc)
   Compiling cfg-if v0.1.8
   Compiling panic_abort v0.0.0 (/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libpanic_abort)
   Compiling unicode-width v0.1.6
   Compiling getopts v0.2.21
error[E0433]: failed to resolve: could not find `prelude` in `std`

error[E0432]: unresolved import `std::error`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:114:10
    |
114 | use std::error::Error;
    |          ^^^^^ could not find `error` in `std`

error[E0432]: unresolved import `std::ffi`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:115:10
    |
115 | use std::ffi::OsStr;
    |          ^^^ could not find `ffi` in `std`

error[E0432]: unresolved import `std::fmt`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:116:5
    |
116 | use std::fmt;
    |     ^^^^^^^^ no `fmt` in the root

error[E0432]: unresolved import `std::iter`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:117:10
    |
117 | use std::iter::{repeat, IntoIterator};
    |          ^^^^ could not find `iter` in `std`

error[E0432]: unresolved import `std::result`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:118:5
    |
118 | use std::result;
    |     ^^^^^^^^^^^ no `result` in the root

error[E0432]: unresolved import `std::str`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:119:10
    |
119 | use std::str::FromStr;
    |          ^^^ could not find `str` in `std`

error: cannot find macro `write!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:955:43
    |
955 |             UnexpectedArgument(ref nm) => write!(f, "Option '{}' does not take an argument", *nm),
    |                                           ^^^^^

error: cannot find macro `write!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:954:41
    |
954 |             OptionDuplicated(ref nm) => write!(f, "Option '{}' given more than once", *nm),
    |                                         ^^^^^

error: cannot find macro `write!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:953:38
    |
953 |             OptionMissing(ref nm) => write!(f, "Required option '{}' missing", *nm),
    |                                      ^^^^^

error: cannot find macro `write!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:952:43
    |
952 |             UnrecognizedOption(ref nm) => write!(f, "Unrecognized option: '{}'", *nm),
    |                                           ^^^^^

error: cannot find macro `write!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:951:40
    |
951 |             ArgumentMissing(ref nm) => write!(f, "Argument to option '{}' missing", *nm),
    |                                        ^^^^^

error: cannot find macro `panic!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:799:21
    |
799 |             None => panic!("No option '{}' defined", nm),
    |                     ^^^^^

error: cannot find macro `panic!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:790:23
    |
790 |             (_, _) => panic!("something is wrong with the long-form opt"),
    |                       ^^^^^

error: cannot find macro `vec!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:783:26
    |
783 |                 aliases: vec![Opt {
    |                          ^^^

error: cannot find macro `panic!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:766:23
    |
766 |             (0, 0) => panic!("this long-format option was given no name"),
    |                       ^^^^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:707:10
    |
707 | #[derive(Clone, Debug, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Debug` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:707:17
    |
707 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                 ^^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:707:24
    |
707 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                        ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:707:35
    |
707 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                                   ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:694:10
    |
694 | #[derive(Clone, Debug, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Debug` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:694:17
    |
694 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                 ^^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:694:24
    |
694 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                        ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:694:35
    |
694 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                                   ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:686:10
    |
686 | #[derive(Clone, Debug, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Debug` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:686:17
    |
686 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                 ^^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:686:24
    |
686 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                        ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:686:35
    |
686 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                                   ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:669:10
    |
669 | #[derive(Clone, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:669:17
    |
669 | #[derive(Clone, PartialEq, Eq)]
    |                 ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:669:28
    |
669 | #[derive(Clone, PartialEq, Eq)]
    |                            ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:655:10
    |
655 | #[derive(Clone, Debug, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Debug` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:655:17
    |
655 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                 ^^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:655:24
    |
655 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                        ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:655:35
    |
655 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                                   ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:644:10
    |
644 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Debug` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:644:17
    |
644 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                 ^^^^^

error: cannot find derive macro `Copy` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:644:24
    |
644 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                        ^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:644:30
    |
644 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                              ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:644:41
    |
644 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                                         ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:633:10
    |
633 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Debug` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:633:17
    |
633 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                 ^^^^^

error: cannot find derive macro `Copy` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:633:24
    |
633 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                        ^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:633:30
    |
633 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                              ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:633:41
    |
633 | #[derive(Clone, Debug, Copy, PartialEq, Eq)]
    |                                         ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:622:10
    |
622 | #[derive(Clone, Debug, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Debug` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:622:17
    |
622 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                 ^^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:622:24
    |
622 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                        ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:622:35
    |
622 | #[derive(Clone, Debug, PartialEq, Eq)]
    |                                   ^^

error: cannot find derive macro `Clone` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:612:10
    |
612 | #[derive(Clone, Copy, PartialEq, Eq)]
    |          ^^^^^

error: cannot find derive macro `Copy` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:612:17
    |
612 | #[derive(Clone, Copy, PartialEq, Eq)]
    |                 ^^^^

error: cannot find derive macro `PartialEq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:612:23
    |
612 | #[derive(Clone, Copy, PartialEq, Eq)]
    |                       ^^^^^^^^^

error: cannot find derive macro `Eq` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:612:34
    |
612 | #[derive(Clone, Copy, PartialEq, Eq)]
    |                                  ^^

error: cannot find macro `assert!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:604:5
    |
604 |     assert!(
    |     ^^^^^^

error: cannot find macro `assert!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:598:5
    |
598 |     assert!(
    |     ^^^^^^

error: cannot find macro `panic!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:553:22
    |
553 |                 _ => panic!("the short name should only be 1 ascii char long"),
    |                      ^^^^^

error: cannot find macro `format!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:518:24
    |
518 |         let desc_sep = format!("\n{}", repeat(" ").take(24).collect::<String>());
    |                        ^^^^^^

error: cannot find macro `format!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:499:13
    |
499 |             format!(
    |             ^^^^^^

error: cannot find macro `format!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:484:24
    |
484 |         let mut line = format!("Usage: {} ", program_name);
    |                        ^^^^^^

error: cannot find macro `debug_assert_eq!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:470:9
    |
470 |         debug_assert_eq!(vals.len(), opts.len());
    |         ^^^^^^^^^^^^^^^

error: cannot find macro `vec!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:386:29
    |
386 |                     names = vec![Name::from_str(parts.next().unwrap())];
    |                             ^^^

error: cannot find macro `assert!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:382:25
    |
382 |                         assert!(self.long_only);
    |                         ^^^^^^

error: cannot find macro `format!` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:355:61
    |
355 |                     .ok_or_else(|| Fail::UnrecognizedOption(format!("{:?}", i.as_ref())))
    |                                                             ^^^^^^

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:143:19
    |
143 |             grps: Vec::new(),
    |                   ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:347:22
    |
347 |             .map(|_| Vec::new())
    |                      ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:349:37
    |
349 |         let mut free: Vec<String> = Vec::new();
    |                                     ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: could not find `result` in `std`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:358:31
    |
358 |             .collect::<::std::result::Result<Vec<_>, _>>()?;
    |                               ^^^^^^ could not find `result` in `std`

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:392:29
    |
392 |                     names = Vec::new();
    |                             ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: use of undeclared type or module `Box`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:592:9
    |
592 |         Box::new(rows)
    |         ^^^ use of undeclared type or module `Box`

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:771:26
    |
771 |                 aliases: Vec::new(),
    |                          ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:777:26
    |
777 |                 aliases: Vec::new(),
    |                          ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: use of undeclared type or module `String`
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:961:20
    |
961 |     let mut line = String::new();
    |                    ^^^^^^ use of undeclared type or module `String`

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1002:20
     |
1002 |     let mut rows = Vec::new();
     |                    ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: use of undeclared type or module `Vec`
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1006:20
     |
1006 |             .fold((Vec::new(), 0, 0), |(mut words, a, z), c| {
     |                    ^^^ use of undeclared type or module `Vec`

error[E0433]: failed to resolve: use of undeclared type or module `String`
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1023:23
     |
1023 |         let mut row = String::new();
     |                       ^^^^^^ use of undeclared type or module `String`

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:128:11
    |
128 |     grps: Vec<OptGroup>,
    |           ^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:133:6
    |
133 | impl Default for Options {
    |      ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `AsRef` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:342:18
    |
342 |         C::Item: AsRef<OsStr>,
    |                  ^^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:344:19
    |
344 |         let opts: Vec<Opt> = self.grps.iter().map(|x| x.long_to_short()).collect();
    |                   ^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:348:24
    |
348 |             .collect::<Vec<Vec<(usize, Optval)>>>();
    |                        ^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:348:28
    |
348 |             .collect::<Vec<Vec<(usize, Optval)>>>();
    |                            ^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:349:23
    |
349 |         let mut free: Vec<String> = Vec::new();
    |                       ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:349:27
    |
349 |         let mut free: Vec<String> = Vec::new();
    |                           ^^^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:358:46
    |
358 |             .collect::<::std::result::Result<Vec<_>, _>>()?;
    |                                              ^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:361:19
    |
361 |         while let Some(cur) = args.next() {
    |                   ^^^^ not found in this scope

error[E0425]: cannot find value `None` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:376:33
    |
376 |                 let mut i_arg = None;
    |                                 ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:387:28
    |
387 |                     if let Some(rest) = parts.next() {
    |                            ^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:388:33
    |
388 |                         i_arg = Some(rest.to_string());
    |                                 ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:404:29
    |
404 |                             Some(id) => id,
    |                             ^^^^ not found in this scope

error[E0425]: cannot find function `Err` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:405:44
    |
405 |                             None => return Err(UnrecognizedOption(opt.to_string())),
    |                                            ^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:418:41
    |
418 |                                 i_arg = Some(cur[next..].to_string());
    |                                         ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:428:25
    |
428 |                         Some(id) => id,
    |                         ^^^^ not found in this scope

error[E0425]: cannot find function `Err` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:429:40
    |
429 |                         None => return Err(UnrecognizedOption(nm.to_string())),
    |                                        ^^^ not found in this scope

error[E0425]: cannot find function `Err` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:434:40
    |
434 |                                 return Err(UnexpectedArgument(nm.to_string()));
    |                                        ^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:445:36
    |
445 |                             if let Some(i_arg) = i_arg.take() {
    |                                    ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:457:36
    |
457 |                             if let Some(i_arg) = i_arg.take() {
    |                                    ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:459:43
    |
459 |                             } else if let Some(n) = args.next() {
    |                                           ^^^^ not found in this scope

error[E0425]: cannot find function `Err` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:462:40
    |
462 |                                 return Err(ArgumentMissing(nm.to_string()));
    |                                        ^^^ not found in this scope

error[E0425]: cannot find function `Err` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:473:24
    |
473 |                 return Err(OptionMissing(opt.name.to_string()));
    |                        ^^^ not found in this scope

error[E0425]: cannot find function `Err` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:476:24
    |
476 |                 return Err(OptionDuplicated(opt.name.to_string()));
    |                        ^^^ not found in this scope

error[E0425]: cannot find function `Ok` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:479:9
    |
479 |         Ok(Matches { opts, vals, free })
    |         ^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:483:54
    |
483 |     pub fn short_usage(&self, program_name: &str) -> String {
    |                                                      ^^^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:490:28
    |
490 |                 .collect::<Vec<String>>()
    |                            ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:490:32
    |
490 |                 .collect::<Vec<String>>()
    |                                ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:497:41
    |
497 |     pub fn usage(&self, brief: &str) -> String {
    |                                         ^^^^^^ not found in this scope

error[E0405]: cannot find trait `FnMut` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:509:33
    |
509 |     pub fn usage_with_format<F: FnMut(&mut dyn Iterator<Item = String>) -> String>(
    |                                 ^^^^^ not found in this scope

error[E0405]: cannot find trait `Iterator` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:509:48
    |
509 |     pub fn usage_with_format<F: FnMut(&mut dyn Iterator<Item = String>) -> String>(
    |                                                ^^^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:509:64
    |
509 |     pub fn usage_with_format<F: FnMut(&mut dyn Iterator<Item = String>) -> String>(
    |                                                                ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:509:76
    |
509 |     pub fn usage_with_format<F: FnMut(&mut dyn Iterator<Item = String>) -> String>(
    |                                                                            ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:512:10
    |
512 |     ) -> String {
    |          ^^^^^^ not found in this scope

error[E0412]: cannot find type `Box` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:517:37
    |
517 |     fn usage_items<'a>(&'a self) -> Box<dyn Iterator<Item = String> + 'a> {
    |                                     ^^^ not found in this scope

error[E0405]: cannot find trait `Iterator` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:517:45
    |
517 |     fn usage_items<'a>(&'a self) -> Box<dyn Iterator<Item = String> + 'a> {
    |                                             ^^^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:517:61
    |
517 |     fn usage_items<'a>(&'a self) -> Box<dyn Iterator<Item = String> + 'a> {
    |                                                             ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:626:10
    |
626 |     Long(String),
    |          ^^^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:664:14
    |
664 |     aliases: Vec<Opt>,
    |              ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:672:17
    |
672 |     short_name: String,
    |                 ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:674:16
    |
674 |     long_name: String,
    |                ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:676:11
    |
676 |     hint: String,
    |           ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:678:11
    |
678 |     desc: String,
    |           ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:688:9
    |
688 |     Val(String),
    |         ^^^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:697:11
    |
697 |     opts: Vec<Opt>,
    |           ^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:699:11
    |
699 |     vals: Vec<Vec<(usize, Optval)>>,
    |           ^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:699:15
    |
699 |     vals: Vec<Vec<(usize, Optval)>>,
    |               ^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:701:15
    |
701 |     pub free: Vec<String>,
    |               ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:701:19
    |
701 |     pub free: Vec<String>,
    |                   ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:710:21
    |
710 |     ArgumentMissing(String),
    |                     ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:712:24
    |
712 |     UnrecognizedOption(String),
    |                        ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:714:19
    |
714 |     OptionMissing(String),
    |                   ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:716:22
    |
716 |     OptionDuplicated(String),
    |                      ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:718:24
    |
718 |     UnexpectedArgument(String),
    |                        ^^^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:745:28
    |
745 |     fn to_string(&self) -> String {
    |                            ^^^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:796:37
    |
796 |     fn opt_vals(&self, nm: &str) -> Vec<(usize, Optval)> {
    |                                     ^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:798:13
    |
798 |             Some(id) => self.vals[id].clone(),
    |             ^^^^ not found in this scope

error[E0412]: cannot find type `Option` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:803:36
    |
803 |     fn opt_val(&self, nm: &str) -> Option<Optval> {
    |                                    ^^^^^^ help: a struct with a similar name exists: `Options`

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:822:46
    |
822 |     pub fn opt_positions(&self, nm: &str) -> Vec<usize> {
    |                                              ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:827:41
    |
827 |     pub fn opts_present(&self, names: &[String]) -> bool {
    |                                         ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:831:17
    |
831 |                 Some(id) if !self.vals[id].is_empty() => true,
    |                 ^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:837:37
    |
837 |     pub fn opts_str(&self, names: &[String]) -> Option<String> {
    |                                     ^^^^^^ not found in this scope

error[E0412]: cannot find type `Option` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:837:49
    |
837 |     pub fn opts_str(&self, names: &[String]) -> Option<String> {
    |                                                 ^^^^^^ help: a struct with a similar name exists: `Options`

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:837:56
    |
837 |     pub fn opts_str(&self, names: &[String]) -> Option<String> {
    |                                                        ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:841:17
    |
841 |                 Some(Val(s)) => Some(s),
    |                 ^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:841:33
    |
841 |                 Some(Val(s)) => Some(s),
    |                                 ^^^^ not found in this scope

error[E0425]: cannot find value `None` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:842:22
    |
842 |                 _ => None,
    |                      ^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:851:41
    |
851 |     pub fn opt_strs(&self, nm: &str) -> Vec<String> {
    |                                         ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:851:45
    |
851 |     pub fn opt_strs(&self, nm: &str) -> Vec<String> {
    |                                             ^^^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:855:27
    |
855 |                 Val(s) => Some(s),
    |                           ^^^^ not found in this scope

error[E0425]: cannot find value `None` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:856:22
    |
856 |                 _ => None,
    |                      ^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:865:45
    |
865 |     pub fn opt_strs_pos(&self, nm: &str) -> Vec<(usize, String)> {
    |                                             ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:865:57
    |
865 |     pub fn opt_strs_pos(&self, nm: &str) -> Vec<(usize, String)> {
    |                                                         ^^^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:869:27
    |
869 |                 Val(s) => Some((p, s)),
    |                           ^^^^ not found in this scope

error[E0425]: cannot find value `None` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:870:22
    |
870 |                 _ => None,
    |                      ^^^^ not found in this scope

error[E0412]: cannot find type `Option` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:876:40
    |
876 |     pub fn opt_str(&self, nm: &str) -> Option<String> {
    |                                        ^^^^^^ help: a struct with a similar name exists: `Options`

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:876:47
    |
876 |     pub fn opt_str(&self, nm: &str) -> Option<String> {
    |                                               ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:878:13
    |
878 |             Some(Val(s)) => Some(s),
    |             ^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:878:29
    |
878 |             Some(Val(s)) => Some(s),
    |                             ^^^^ not found in this scope

error[E0425]: cannot find value `None` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:879:18
    |
879 |             _ => None,
    |                  ^^^^ not found in this scope

error[E0412]: cannot find type `Option` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:888:55
    |
888 |     pub fn opt_default(&self, nm: &str, def: &str) -> Option<String> {
    |                                                       ^^^^^^ help: a struct with a similar name exists: `Options`

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:888:62
    |
888 |     pub fn opt_default(&self, nm: &str, def: &str) -> Option<String> {
    |                                                              ^^^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:890:13
    |
890 |             Some(Val(s)) => Some(s),
    |             ^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:890:29
    |
890 |             Some(Val(s)) => Some(s),
    |                             ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:891:13
    |
891 |             Some(_) => Some(def.to_string()),
    |             ^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:891:24
    |
891 |             Some(_) => Some(def.to_string()),
    |                        ^^^^ not found in this scope

error[E0412]: cannot find type `Option` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:899:58
    |
899 |     pub fn opt_get<T>(&self, nm: &str) -> result::Result<Option<T>, T::Err>
    |                                                          ^^^^^^ help: a struct with a similar name exists: `Options`

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:904:13
    |
904 |             Some(Val(s)) => Ok(Some(s.parse()?)),
    |             ^^^^ not found in this scope

error[E0425]: cannot find function `Ok` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:904:29
    |
904 |             Some(Val(s)) => Ok(Some(s.parse()?)),
    |                             ^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:904:32
    |
904 |             Some(Val(s)) => Ok(Some(s.parse()?)),
    |                                ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:905:13
    |
905 |             Some(Given) => Ok(None),
    |             ^^^^ not found in this scope

error[E0425]: cannot find function `Ok` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:905:28
    |
905 |             Some(Given) => Ok(None),
    |                            ^^ not found in this scope

error[E0425]: cannot find value `None` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:905:31
    |
905 |             Some(Given) => Ok(None),
    |                               ^^^^ not found in this scope

error[E0425]: cannot find function `Ok` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:906:21
    |
906 |             None => Ok(None),
    |                     ^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:920:13
    |
920 |             Some(Val(s)) => s.parse(),
    |             ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:921:13
    |
921 |             Some(Given) => Ok(def),
    |             ^^^^ not found in this scope

error[E0425]: cannot find function `Ok` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:921:28
    |
921 |             Some(Given) => Ok(def),
    |                            ^^ not found in this scope

error[E0425]: cannot find function `Ok` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:922:21
    |
922 |             None => Ok(def),
    |                     ^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:928:30
    |
928 |     arg.as_bytes().get(0) == Some(&b'-') && arg.len() > 1
    |                              ^^^^ not found in this scope

error[E0412]: cannot find type `Option` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:931:41
    |
931 | fn find_opt(opts: &[Opt], nm: &Name) -> Option<usize> {
    |                                         ^^^^^^ help: a struct with a similar name exists: `Options`

error[E0425]: cannot find value `None` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:945:5
    |
945 |     None
    |     ^^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
   --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:960:37
    |
960 | fn format_option(opt: &OptGroup) -> String {
    |                                     ^^^^^^ not found in this scope

error[E0412]: cannot find type `Vec` in this scope
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1001:49
     |
1001 | fn each_split_within(desc: &str, lim: usize) -> Vec<String> {
     |                                                 ^^^ not found in this scope

error[E0412]: cannot find type `String` in this scope
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1001:53
     |
1001 | fn each_split_within(desc: &str, lim: usize) -> Vec<String> {
     |                                                     ^^^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1004:45
     |
1004 |         let line_chars = line.chars().chain(Some(' '));
     |                                             ^^^^ not found in this scope

error[E0425]: cannot find function `Some` in this scope
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1025:44
     |
1025 |             let sep = if !row.is_empty() { Some(" ") } else { None };
     |                                            ^^^^ not found in this scope

error[E0425]: cannot find value `None` in this scope
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1025:63
     |
1025 |             let sep = if !row.is_empty() { Some(" ") } else { None };
     |                                                               ^^^^ not found in this scope

error[E0531]: cannot find tuple struct/variant `Some` in this scope
    --> /home/lukas/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:1029:24
     |
1029 |                 if let Some(sep) = sep {
     |                        ^^^^ not found in this scope

error[E0433]: failed to resolve: could not find `ops` in `std`

error[E0433]: failed to resolve: could not find `result` in `std`

error[E0433]: failed to resolve: could not find `convert` in `std`

error[E0433]: failed to resolve: could not find `option` in `std`

error[E0433]: failed to resolve: could not find `iter` in `std`

error: aborting due to 189 previous errors

Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0405`.
error: Could not compile `getopts`.
warning: build failed, waiting for other jobs to finish...
error: build failed
error: `"/home/lukas/.rustup/toolchains/nightly-2019-08-26-x86_64-unknown-linux-gnu/bin/cargo" "build" "--release" "--manifest-path" "/tmp/xargo.P3NLVPFm3Aao/Cargo.toml" "--target" "x86_64-unknown-linux-gnu" "-p" "test"` failed with exit code: Some(101)
note: run with `RUST_BACKTRACE=1` for a backtrace
fatal error: Failed to run xargo
@bjorn3
Copy link
Member

bjorn3 commented Aug 26, 2019

Probably dup of rust-lang/rust#63843.

@LukasKalbertodt
Copy link
Member Author

Thanks! That's probably it!

@RalfJung
Copy link
Member

Yeah, this is blocked on japaric/xargo#250.

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