[INFO] cloning repository https://github.com/mmai/khnum-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mmai/khnum-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fkhnum-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fkhnum-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 260c4815c1d2c1b367790be8edf3a6107d90eb06 [INFO] checking mmai/khnum-cli against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmai%2Fkhnum-cli" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mmai/khnum-cli on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-14/source/Cargo.toml [INFO] crate git repo https://github.com/mmai/khnum-cli already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1da186088f6b29d28e291dacf2a620c4631ef435d81998dd370742bd43015de [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b1da186088f6b29d28e291dacf2a620c4631ef435d81998dd370742bd43015de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1da186088f6b29d28e291dacf2a620c4631ef435d81998dd370742bd43015de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1da186088f6b29d28e291dacf2a620c4631ef435d81998dd370742bd43015de", kill_on_drop: false }` [INFO] [stdout] b1da186088f6b29d28e291dacf2a620c4631ef435d81998dd370742bd43015de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5d770ea164c140afd8bd7d0e3539af3e5da2cddb710c02680f6a1abb10b35b6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a5d770ea164c140afd8bd7d0e3539af3e5da2cddb710c02680f6a1abb10b35b6", kill_on_drop: false }` [INFO] [stderr] Checking number_prefix v0.2.8 [INFO] [stderr] Checking console v0.8.0 [INFO] [stderr] Checking indicatif v0.11.0 [INFO] [stderr] Checking khnum-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> src/main.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let client = Client::new().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_url` in this scope [INFO] [stdout] --> src/main.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | let url = parse_url(target)?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | print(format!("HTTP request sent... {}", [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 49 | print!(format!("HTTP request sent... {}", [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | style(format!("{}", resp.status())).green()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ContentLength` in this scope [INFO] [stdout] --> src/main.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 55 | let ct_len = headers.get::().map(|ct_len| **ct_len); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ContentType` in this scope [INFO] [stdout] --> src/main.rs:57:37 [INFO] [stdout] | [INFO] [stdout] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 57 | let ct_type = headers.get::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | print(format!("Length: {} ({})", [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 61 | print!(format!("Length: {} ({})", [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | style(len).green(), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | style(format!("{}", HumanBytes(len))).red()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HumanBytes` in this scope [INFO] [stdout] --> src/main.rs:63:43 [INFO] [stdout] | [INFO] [stdout] 63 | style(format!("{}", HumanBytes(len))).red()), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 1 | use indicatif::HumanBytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | print(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 67 | print!(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | print(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | print(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 71 | print!(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:71:35 [INFO] [stdout] | [INFO] [stdout] 71 | print(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | print(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 75 | print!(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:75:40 [INFO] [stdout] | [INFO] [stdout] 75 | print(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `save_to_file` in this scope [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | save_to_file(&mut buf, fname)?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:42:63 [INFO] [stdout] | [INFO] [stdout] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn (::std::error::Error)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> src/main.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | let client = Client::new().unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_url` in this scope [INFO] [stdout] --> src/main.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | let url = parse_url(target)?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | print(format!("HTTP request sent... {}", [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 49 | print!(format!("HTTP request sent... {}", [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | style(format!("{}", resp.status())).green()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ContentLength` in this scope [INFO] [stdout] --> src/main.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 55 | let ct_len = headers.get::().map(|ct_len| **ct_len); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ContentType` in this scope [INFO] [stdout] --> src/main.rs:57:37 [INFO] [stdout] | [INFO] [stdout] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 57 | let ct_type = headers.get::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | print(format!("Length: {} ({})", [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 61 | print!(format!("Length: {} ({})", [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | style(len).green(), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | style(format!("{}", HumanBytes(len))).red()), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HumanBytes` in this scope [INFO] [stdout] --> src/main.rs:63:43 [INFO] [stdout] | [INFO] [stdout] 63 | style(format!("{}", HumanBytes(len))).red()), [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 1 | use indicatif::HumanBytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | print(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 67 | print!(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | print(format!("Length: {}", style("unknown").red()), quiet_mode); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | print(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 71 | print!(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:71:35 [INFO] [stdout] | [INFO] [stdout] 71 | print(format!("Type: {}", style(ct_type).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `print` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | print(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 75 | print!(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `style` in this scope [INFO] [stdout] --> src/main.rs:75:40 [INFO] [stdout] | [INFO] [stdout] 75 | print(format!("Saving to: {}", style(fname).green()), quiet_mode); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `save_to_file` in this scope [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | save_to_file(&mut buf, fname)?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:42:63 [INFO] [stdout] | [INFO] [stdout] 42 | fn download(target: &str, quiet_mode: bool) -> Result<(), Box<::std::error::Error>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn (::std::error::Error)` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `khnum-cli` [INFO] [stdout] error: aborting due to 17 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error: aborting due to 17 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425, E0433. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a5d770ea164c140afd8bd7d0e3539af3e5da2cddb710c02680f6a1abb10b35b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5d770ea164c140afd8bd7d0e3539af3e5da2cddb710c02680f6a1abb10b35b6", kill_on_drop: false }` [INFO] [stdout] a5d770ea164c140afd8bd7d0e3539af3e5da2cddb710c02680f6a1abb10b35b6