[INFO] cloning repository https://github.com/rednithin/RustCompetitiveEnv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rednithin/RustCompetitiveEnv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frednithin%2FRustCompetitiveEnv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frednithin%2FRustCompetitiveEnv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 07a92b3198ff0be5e8e082fc0e570701a1508d91 [INFO] checking rednithin/RustCompetitiveEnv against try#a0cd57eba5d417638d3351ba13fc414ad1a24bec for pr-134688 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frednithin%2FRustCompetitiveEnv" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rednithin/RustCompetitiveEnv on toolchain a0cd57eba5d417638d3351ba13fc414ad1a24bec [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rednithin/RustCompetitiveEnv [INFO] finished tweaking git repo https://github.com/rednithin/RustCompetitiveEnv [INFO] tweaked toml for git repo https://github.com/rednithin/RustCompetitiveEnv written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/rednithin/RustCompetitiveEnv 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" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdf66127a7f2ae9a0a1f44a7f2466382a0f863cb552a618fd584dd476b41223e [INFO] running `Command { std: "docker" "start" "-a" "bdf66127a7f2ae9a0a1f44a7f2466382a0f863cb552a618fd584dd476b41223e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdf66127a7f2ae9a0a1f44a7f2466382a0f863cb552a618fd584dd476b41223e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdf66127a7f2ae9a0a1f44a7f2466382a0f863cb552a618fd584dd476b41223e", kill_on_drop: false }` [INFO] [stdout] bdf66127a7f2ae9a0a1f44a7f2466382a0f863cb552a618fd584dd476b41223e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a724ac4b0d8f068ee108d3dcede15679b29362673bb1443e388fb435e1662a2e [INFO] running `Command { std: "docker" "start" "-a" "a724ac4b0d8f068ee108d3dcede15679b29362673bb1443e388fb435e1662a2e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rust_competitive v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `lcg` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut lcg = rand::LCG::new(1664525, 1013904223, 1 << 47, Some(0)); // Java's Constants [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lcg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lcg` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut lcg = rand::LCG::new(6364136223846793005, 1, 1 << 63, None); // MMIX Donald Knuth [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lcg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lcg` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lcg = rand::XoShiro256SS::new(None); // XoShiro256SS [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lcg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut lcg = rand::LCG::new(1664525, 1013904223, 1 << 47, Some(0)); // Java's Constants [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:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut lcg = rand::LCG::new(6364136223846793005, 1, 1 << 63, None); // MMIX Donald Knuth [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:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lcg = rand::XoShiro256SS::new(None); // XoShiro256SS [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_kth_largest` is never used [INFO] [stdout] --> src/competitive/kth.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_kth_largest(nums: &Vec, mut k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a`, `b`, `m`, and `x` are never read [INFO] [stdout] --> src/competitive/rand.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LCG { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | a: u64, [INFO] [stdout] | ^ [INFO] [stdout] 6 | b: u64, [INFO] [stdout] | ^ [INFO] [stdout] 7 | m: u64, [INFO] [stdout] | ^ [INFO] [stdout] 8 | x: u64, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/competitive/rand.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl LCG { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn next(&mut self) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lcg` [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut lcg = rand::LCG::new(1664525, 1013904223, 1 << 47, Some(0)); // Java's Constants [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lcg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lcg` [INFO] [stdout] --> src/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut lcg = rand::LCG::new(6364136223846793005, 1, 1 << 63, None); // MMIX Donald Knuth [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lcg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lcg` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lcg = rand::XoShiro256SS::new(None); // XoShiro256SS [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lcg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut lcg = rand::LCG::new(1664525, 1013904223, 1 << 47, Some(0)); // Java's Constants [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:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut lcg = rand::LCG::new(6364136223846793005, 1, 1 << 63, None); // MMIX Donald Knuth [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:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut lcg = rand::XoShiro256SS::new(None); // XoShiro256SS [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_kth_largest` is never used [INFO] [stdout] --> src/competitive/kth.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_kth_largest(nums: &Vec, mut k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a`, `b`, `m`, and `x` are never read [INFO] [stdout] --> src/competitive/rand.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LCG { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 5 | a: u64, [INFO] [stdout] | ^ [INFO] [stdout] 6 | b: u64, [INFO] [stdout] | ^ [INFO] [stdout] 7 | m: u64, [INFO] [stdout] | ^ [INFO] [stdout] 8 | x: u64, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/competitive/rand.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl LCG { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn next(&mut self) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.56s [INFO] running `Command { std: "docker" "inspect" "a724ac4b0d8f068ee108d3dcede15679b29362673bb1443e388fb435e1662a2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a724ac4b0d8f068ee108d3dcede15679b29362673bb1443e388fb435e1662a2e", kill_on_drop: false }` [INFO] [stdout] a724ac4b0d8f068ee108d3dcede15679b29362673bb1443e388fb435e1662a2e