[INFO] fetching crate rustgym 0.2.0... [INFO] testing rustgym-0.2.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate rustgym 0.2.0 into /workspace/builds/worker-2-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-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rustgym 0.2.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3338d589175329d4d4b6e9822276d02566fee4d36a8489d5f769d9a251ce5a8a [INFO] running `Command { std: "docker" "start" "-a" "3338d589175329d4d4b6e9822276d02566fee4d36a8489d5f769d9a251ce5a8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3338d589175329d4d4b6e9822276d02566fee4d36a8489d5f769d9a251ce5a8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3338d589175329d4d4b6e9822276d02566fee4d36a8489d5f769d9a251ce5a8a", kill_on_drop: false }` [INFO] [stdout] 3338d589175329d4d4b6e9822276d02566fee4d36a8489d5f769d9a251ce5a8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea33e52f35c7f22c286a9843540492686bac84b15fb22ed0ee01d47fc2b8512e [INFO] running `Command { std: "docker" "start" "-a" "ea33e52f35c7f22c286a9843540492686bac84b15fb22ed0ee01d47fc2b8512e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling assert_approx_eq v1.1.0 [INFO] [stderr] Compiling rustgym-util v0.2.4 [INFO] [stderr] Compiling pretty_assertions v0.6.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.98s [INFO] running `Command { std: "docker" "inspect" "ea33e52f35c7f22c286a9843540492686bac84b15fb22ed0ee01d47fc2b8512e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea33e52f35c7f22c286a9843540492686bac84b15fb22ed0ee01d47fc2b8512e", kill_on_drop: false }` [INFO] [stdout] ea33e52f35c7f22c286a9843540492686bac84b15fb22ed0ee01d47fc2b8512e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07cdf4275e71d27aad05993412ec9936d6751ecfc73b453bf86eca72a5ebec77 [INFO] running `Command { std: "docker" "start" "-a" "07cdf4275e71d27aad05993412ec9936d6751ecfc73b453bf86eca72a5ebec77", kill_on_drop: false }` [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] [stderr] Compiling rustgym v0.2.0 (/opt/rustwide/workdir) [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] 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] 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" "07cdf4275e71d27aad05993412ec9936d6751ecfc73b453bf86eca72a5ebec77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07cdf4275e71d27aad05993412ec9936d6751ecfc73b453bf86eca72a5ebec77", kill_on_drop: false }` [INFO] [stdout] 07cdf4275e71d27aad05993412ec9936d6751ecfc73b453bf86eca72a5ebec77