[INFO] fetching crate rustgym 0.2.0... [INFO] checking rustgym-0.2.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate rustgym 0.2.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate rustgym 0.2.0 [INFO] finished tweaking crates.io crate rustgym 0.2.0 [INFO] tweaked toml for crates.io crate rustgym 0.2.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rustgym 0.2.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 26 packages to latest compatible versions [INFO] [stderr] Adding pretty_assertions v0.6.1 (available: v1.4.1) [INFO] [stderr] Adding rand v0.7.3 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8b4b0ae660b1312aa8a4f49f0210e4db5d0a5f3cb06930f3919e69948f14f04e [INFO] running `Command { std: "docker" "start" "-a" "8b4b0ae660b1312aa8a4f49f0210e4db5d0a5f3cb06930f3919e69948f14f04e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8b4b0ae660b1312aa8a4f49f0210e4db5d0a5f3cb06930f3919e69948f14f04e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b4b0ae660b1312aa8a4f49f0210e4db5d0a5f3cb06930f3919e69948f14f04e", kill_on_drop: false }` [INFO] [stdout] 8b4b0ae660b1312aa8a4f49f0210e4db5d0a5f3cb06930f3919e69948f14f04e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc3ee863ddd8057132389bcd9daf8a643c5d6459a889cfecc828ea852d01f0c8 [INFO] running `Command { std: "docker" "start" "-a" "cc3ee863ddd8057132389bcd9daf8a643c5d6459a889cfecc828ea852d01f0c8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking rustgym-util v0.2.4 [INFO] [stderr] Checking assert_approx_eq v1.1.0 [INFO] [stderr] Checking pretty_assertions v0.6.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rustgym v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/leetcode/_1515_best_position_for_a_service_center.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|v| (((v[0] as f64 - x).powi(2) + (v[1] as f64 - y).powi(2)).sqrt())) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - .map(|v| (((v[0] as f64 - x).powi(2) + (v[1] as f64 - y).powi(2)).sqrt())) [INFO] [stdout] 30 + .map(|v| ((v[0] as f64 - x).powi(2) + (v[1] as f64 - y).powi(2)).sqrt()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/leetcode/_1515_best_position_for_a_service_center.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|v| (((v[0] as f64 - x).powi(2) + (v[1] as f64 - y).powi(2)).sqrt())) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - .map(|v| (((v[0] as f64 - x).powi(2) + (v[1] as f64 - y).powi(2)).sqrt())) [INFO] [stdout] 30 + .map(|v| ((v[0] as f64 - x).powi(2) + (v[1] as f64 - y).powi(2)).sqrt()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/leetcode/_374_guess_number_higher_or_lower.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | match X.cmp(&num) { [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/hackerrank/_30_hello_world/mod.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | hackerrank!(test_0, "input00.txt", "output00.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected argument #2 of type `&mut String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/hackerrank/_30_hello_world/mod.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn solve(reader: &mut dyn BufRead) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this error originates in the macro `hackerrank` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/hackerrank/_30_hello_world/mod.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | hackerrank!(test_1, "input01.txt", "output01.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected argument #2 of type `&mut String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/hackerrank/_30_hello_world/mod.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn solve(reader: &mut dyn BufRead) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this error originates in the macro `hackerrank` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustgym` (lib test) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "cc3ee863ddd8057132389bcd9daf8a643c5d6459a889cfecc828ea852d01f0c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc3ee863ddd8057132389bcd9daf8a643c5d6459a889cfecc828ea852d01f0c8", kill_on_drop: false }` [INFO] [stdout] cc3ee863ddd8057132389bcd9daf8a643c5d6459a889cfecc828ea852d01f0c8