[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 master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoungForest%2Fleetcode-rust" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/YoungForest/leetcode-rust on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "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-7/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 269fadf3779e46526aadcd1254803bfee5fcdba49555138f4a614ea5e27611f2 [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" "269fadf3779e46526aadcd1254803bfee5fcdba49555138f4a614ea5e27611f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "269fadf3779e46526aadcd1254803bfee5fcdba49555138f4a614ea5e27611f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "269fadf3779e46526aadcd1254803bfee5fcdba49555138f4a614ea5e27611f2", kill_on_drop: false }` [INFO] [stdout] 269fadf3779e46526aadcd1254803bfee5fcdba49555138f4a614ea5e27611f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8786d9605801376d5e91389a6395b6654740e5b2ee87cffc978030ff4ab0c8b5 [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" "8786d9605801376d5e91389a6395b6654740e5b2ee87cffc978030ff4ab0c8b5", 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: 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: 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] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "8786d9605801376d5e91389a6395b6654740e5b2ee87cffc978030ff4ab0c8b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8786d9605801376d5e91389a6395b6654740e5b2ee87cffc978030ff4ab0c8b5", kill_on_drop: false }` [INFO] [stdout] 8786d9605801376d5e91389a6395b6654740e5b2ee87cffc978030ff4ab0c8b5