[INFO] cloning repository https://github.com/giuseppeCruised/TermType [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/giuseppeCruised/TermType" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgiuseppeCruised%2FTermType", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgiuseppeCruised%2FTermType'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 62f1f564a5f09fc66d6add6661241e3687a78357 [INFO] checking giuseppeCruised/TermType/62f1f564a5f09fc66d6add6661241e3687a78357 against master#52f3c71c8dc4aaed71e3035995fcbdd6d78c98c6 for pr-127907 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FgiuseppeCruised%2FTermType" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/giuseppeCruised/TermType on toolchain 52f3c71c8dc4aaed71e3035995fcbdd6d78c98c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+52f3c71c8dc4aaed71e3035995fcbdd6d78c98c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/giuseppeCruised/TermType [INFO] finished tweaking git repo https://github.com/giuseppeCruised/TermType [INFO] tweaked toml for git repo https://github.com/giuseppeCruised/TermType written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/giuseppeCruised/TermType already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+52f3c71c8dc4aaed71e3035995fcbdd6d78c98c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+52f3c71c8dc4aaed71e3035995fcbdd6d78c98c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af7df28b16c89e27cdc864995f9c2606ac3d90473dfb4b3d6e9b664f2872fd5a [INFO] running `Command { std: "docker" "start" "-a" "af7df28b16c89e27cdc864995f9c2606ac3d90473dfb4b3d6e9b664f2872fd5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af7df28b16c89e27cdc864995f9c2606ac3d90473dfb4b3d6e9b664f2872fd5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af7df28b16c89e27cdc864995f9c2606ac3d90473dfb4b3d6e9b664f2872fd5a", kill_on_drop: false }` [INFO] [stdout] af7df28b16c89e27cdc864995f9c2606ac3d90473dfb4b3d6e9b664f2872fd5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+52f3c71c8dc4aaed71e3035995fcbdd6d78c98c6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bdff5ffedf00c6be81a35eceaa5d2d90d6b4aec2774e4a9570b76051774ce302 [INFO] running `Command { std: "docker" "start" "-a" "bdff5ffedf00c6be81a35eceaa5d2d90d6b4aec2774e4a9570b76051774ce302", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking TermType v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0593]: closure is expected to take a single 2-tuple as argument, but it takes 2 distinct arguments [INFO] [stdout] --> src/main.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | .map(|correct,guess| 1) [INFO] [stdout] | ^^^ --------------- takes 2 distinct arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes a single 2-tuple as argument [INFO] [stdout] | [INFO] [stdout] help: change the closure to accept a tuple instead of individual arguments [INFO] [stdout] | [INFO] [stdout] 78 | .map(|(correct, guess)| 1) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take a single 2-tuple as argument, but it takes 2 distinct arguments [INFO] [stdout] --> src/main.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | .map(|correct,guess| 1) [INFO] [stdout] | ^^^ --------------- takes 2 distinct arguments [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes a single 2-tuple as argument [INFO] [stdout] | [INFO] [stdout] help: change the closure to accept a tuple instead of individual arguments [INFO] [stdout] | [INFO] [stdout] 78 | .map(|(correct, guess)| 1) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | fn get_dictionary(name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/main.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | fn get_dictionary(name: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_char_amount` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut total_char_amount: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_char_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_char_amount` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut total_char_amount: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_char_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrong_char_amount` [INFO] [stdout] --> src/main.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut wrong_char_amount: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrong_char_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrong_char_amount` [INFO] [stdout] --> src/main.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut wrong_char_amount: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrong_char_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut total_char_amount: usize = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut total_char_amount: usize = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut wrong_char_amount: usize = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut wrong_char_amount: usize = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0593`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0593`. [INFO] [stdout] [INFO] [stderr] error: could not compile `TermType` (bin "TermType" test) due to 2 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `TermType` (bin "TermType") due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bdff5ffedf00c6be81a35eceaa5d2d90d6b4aec2774e4a9570b76051774ce302", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdff5ffedf00c6be81a35eceaa5d2d90d6b4aec2774e4a9570b76051774ce302", kill_on_drop: false }` [INFO] [stdout] bdff5ffedf00c6be81a35eceaa5d2d90d6b4aec2774e4a9570b76051774ce302