[INFO] updating cached repository https://github.com/mmai/khnum-cli [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 260c4815c1d2c1b367790be8edf3a6107d90eb06 [INFO] testing mmai/khnum-cli against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fkhnum-cli" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mmai/khnum-cli on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/mmai/khnum-cli [INFO] finished tweaking git repo https://github.com/mmai/khnum-cli [INFO] tweaked toml for git repo https://github.com/mmai/khnum-cli written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/mmai/khnum-cli already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stdout] 506bfa95a4327ce89de69a28b0f801d9a0ccf1c0ac898a7a9af9b626dc59ea74 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "506bfa95a4327ce89de69a28b0f801d9a0ccf1c0ac898a7a9af9b626dc59ea74"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling unicode-width v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling clicolors-control v1.0.1 [INFO] [stderr] Compiling termios v0.3.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling console v0.8.0 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling number_prefix v0.2.8 [INFO] [stderr] Compiling indicatif v0.11.0 [INFO] [stderr] Compiling khnum-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Client` [INFO] [stderr] --> src/main.rs:45:18 [INFO] [stderr] | [INFO] [stderr] 45 | let client = Client::new().unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Client` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `parse_url` in this scope [INFO] [stderr] --> src/main.rs:44:15 [INFO] [stderr] | [INFO] [stderr] 44 | let url = parse_url(target)?; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found macro `print` [INFO] [stderr] --> src/main.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | print(format!("HTTP request sent... {}", [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: use `!` to invoke the macro [INFO] [stderr] | [INFO] [stderr] 49 | print!(format!("HTTP request sent... {}", [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `style` in this scope [INFO] [stderr] --> src/main.rs:50:19 [INFO] [stderr] | [INFO] [stderr] 50 | style(format!("{}", resp.status())).green()), [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ContentLength` in this scope [INFO] [stderr] --> src/main.rs:55:36 [INFO] [stderr] | [INFO] [stderr] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 55 | let ct_len = headers.get::().map(|ct_len| **ct_len); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ContentType` in this scope [INFO] [stderr] --> src/main.rs:57:37 [INFO] [stderr] | [INFO] [stderr] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 57 | let ct_type = headers.get::().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found macro `print` [INFO] [stderr] --> src/main.rs:61:17 [INFO] [stderr] | [INFO] [stderr] 61 | print(format!("Length: {} ({})", [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: use `!` to invoke the macro [INFO] [stderr] | [INFO] [stderr] 61 | print!(format!("Length: {} ({})", [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `style` in this scope [INFO] [stderr] --> src/main.rs:62:23 [INFO] [stderr] | [INFO] [stderr] 62 | style(len).green(), [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `style` in this scope [INFO] [stderr] --> src/main.rs:63:23 [INFO] [stderr] | [INFO] [stderr] 63 | style(format!("{}", HumanBytes(len))).red()), [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `HumanBytes` in this scope [INFO] [stderr] --> src/main.rs:63:43 [INFO] [stderr] | [INFO] [stderr] 63 | style(format!("{}", HumanBytes(len))).red()), [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: consider importing this tuple struct [INFO] [stderr] | [INFO] [stderr] 1 | use indicatif::HumanBytes; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found macro `print` [INFO] [stderr] --> src/main.rs:67:17 [INFO] [stderr] | [INFO] [stderr] 67 | print(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: use `!` to invoke the macro [INFO] [stderr] | [INFO] [stderr] 67 | print!(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `style` in this scope [INFO] [stderr] --> src/main.rs:67:45 [INFO] [stderr] | [INFO] [stderr] 67 | print(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found macro `print` [INFO] [stderr] --> src/main.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | print(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: use `!` to invoke the macro [INFO] [stderr] | [INFO] [stderr] 71 | print!(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `style` in this scope [INFO] [stderr] --> src/main.rs:71:35 [INFO] [stderr] | [INFO] [stderr] 71 | print(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found macro `print` [INFO] [stderr] --> src/main.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | print(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] help: use `!` to invoke the macro [INFO] [stderr] | [INFO] [stderr] 75 | print!(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `style` in this scope [INFO] [stderr] --> src/main.rs:75:40 [INFO] [stderr] | [INFO] [stderr] 75 | print(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `save_to_file` in this scope [INFO] [stderr] --> src/main.rs:103:9 [INFO] [stderr] | [INFO] [stderr] 103 | save_to_file(&mut buf, fname)?; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:42:63 [INFO] [stderr] | [INFO] [stderr] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn (::std::error::Error)` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 17 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0423, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `khnum-cli`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "506bfa95a4327ce89de69a28b0f801d9a0ccf1c0ac898a7a9af9b626dc59ea74"` [INFO] running `"docker" "rm" "-f" "506bfa95a4327ce89de69a28b0f801d9a0ccf1c0ac898a7a9af9b626dc59ea74"` [INFO] [stdout] 506bfa95a4327ce89de69a28b0f801d9a0ccf1c0ac898a7a9af9b626dc59ea74