[INFO] cloning repository https://github.com/YoungForest/leetcode-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YoungForest/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoungForest%2Fleetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoungForest%2Fleetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ef691317d55339748679b24ed602cd15ddbc4f1 [INFO] checking YoungForest/leetcode-rust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoungForest%2Fleetcode-rust" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/YoungForest/leetcode-rust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/YoungForest/leetcode-rust [INFO] finished tweaking git repo https://github.com/YoungForest/leetcode-rust [INFO] tweaked toml for git repo https://github.com/YoungForest/leetcode-rust written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/YoungForest/leetcode-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--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-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc2901d06e7e209e88af5f6ccbe67323cafd649fef185c773ca13dec6d91f591 [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" "fc2901d06e7e209e88af5f6ccbe67323cafd649fef185c773ca13dec6d91f591", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc2901d06e7e209e88af5f6ccbe67323cafd649fef185c773ca13dec6d91f591", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc2901d06e7e209e88af5f6ccbe67323cafd649fef185c773ca13dec6d91f591", kill_on_drop: false }` [INFO] [stdout] fc2901d06e7e209e88af5f6ccbe67323cafd649fef185c773ca13dec6d91f591 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86ccf84348f14f9f9b92f90de1720bfb961a6fe07f7d6f55d77ebe8e0a459a0f [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" "86ccf84348f14f9f9b92f90de1720bfb961a6fe07f7d6f55d77ebe8e0a459a0f", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `ans` is never read [INFO] [stdout] --> src/problems/problem1180.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut ans = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problems/problem1219.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | mut path: &mut HashSet<(i32, i32)>, [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/problems/problem1219.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut n; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/problems/problem1143.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_common_subsequence` [INFO] [stdout] --> src/problems/problem1143.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_common_subsequence(text1: String, text2: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/problems/problem1143.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/problems/problem1219.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backtracking` [INFO] [stdout] --> src/problems/problem1219.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn backtracking( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_maximum_gold` [INFO] [stdout] --> src/problems/problem1219.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_maximum_gold(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/problems/problem1219.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/problems/problem1223.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `MOD_NUMBER` [INFO] [stdout] --> src/problems/problem1223.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | const MOD_NUMBER: i32 = 1000000007; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `answer` [INFO] [stdout] --> src/problems/problem1223.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn answer( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `die_simulator` [INFO] [stdout] --> src/problems/problem1223.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn die_simulator(n: i32, roll_max: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/problems/problem1223.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ans` is never read [INFO] [stdout] --> src/problems/problem1180.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut ans = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problems/problem1219.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | mut path: &mut HashSet<(i32, i32)>, [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/problems/problem1219.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut n; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/problems/problem1143.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_common_subsequence` [INFO] [stdout] --> src/problems/problem1143.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_common_subsequence(text1: String, text2: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/problems/problem1143.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/problems/problem1219.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backtracking` [INFO] [stdout] --> src/problems/problem1219.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn backtracking( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_maximum_gold` [INFO] [stdout] --> src/problems/problem1219.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_maximum_gold(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/problems/problem1219.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/problems/problem1223.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `MOD_NUMBER` [INFO] [stdout] --> src/problems/problem1223.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | const MOD_NUMBER: i32 = 1000000007; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `answer` [INFO] [stdout] --> src/problems/problem1223.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn answer( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `die_simulator` [INFO] [stdout] --> src/problems/problem1223.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn die_simulator(n: i32, roll_max: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/problems/problem1223.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.67s [INFO] running `Command { std: "docker" "inspect" "86ccf84348f14f9f9b92f90de1720bfb961a6fe07f7d6f55d77ebe8e0a459a0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86ccf84348f14f9f9b92f90de1720bfb961a6fe07f7d6f55d77ebe8e0a459a0f", kill_on_drop: false }` [INFO] [stdout] 86ccf84348f14f9f9b92f90de1720bfb961a6fe07f7d6f55d77ebe8e0a459a0f