[INFO] cloning repository https://github.com/JoverZhang/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/JoverZhang/leetcode.rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoverZhang%2Fleetcode.rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoverZhang%2Fleetcode.rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] edac5248db5df77c6d4954d69cbd4635965fbebb [INFO] checking JoverZhang/leetcode.rust against try#3f7b27fe41ccd116a4c0829bd9a14b65bada4578 for pr-96970 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoverZhang%2Fleetcode.rust" "/workspace/builds/worker-17/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-17/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JoverZhang/leetcode.rust on toolchain 3f7b27fe41ccd116a4c0829bd9a14b65bada4578 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3f7b27fe41ccd116a4c0829bd9a14b65bada4578" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JoverZhang/leetcode.rust [INFO] finished tweaking git repo https://github.com/JoverZhang/leetcode.rust [INFO] tweaked toml for git repo https://github.com/JoverZhang/leetcode.rust written to /workspace/builds/worker-17/source/Cargo.toml [INFO] crate git repo https://github.com/JoverZhang/leetcode.rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3f7b27fe41ccd116a4c0829bd9a14b65bada4578" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-17/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-17/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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+3f7b27fe41ccd116a4c0829bd9a14b65bada4578" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f79e3f6c82dbe0318668b40cb01819f70b989b6e375f95b9c1c7370db16feec8 [INFO] running `Command { std: "docker" "start" "-a" "f79e3f6c82dbe0318668b40cb01819f70b989b6e375f95b9c1c7370db16feec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f79e3f6c82dbe0318668b40cb01819f70b989b6e375f95b9c1c7370db16feec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f79e3f6c82dbe0318668b40cb01819f70b989b6e375f95b9c1c7370db16feec8", kill_on_drop: false }` [INFO] [stdout] f79e3f6c82dbe0318668b40cb01819f70b989b6e375f95b9c1c7370db16feec8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-17/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-17/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+3f7b27fe41ccd116a4c0829bd9a14b65bada4578" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11548cbad9d35b0b4442d2534eb50bed63e5f87977a75c900620818bd6cb39f3 [INFO] running `Command { std: "docker" "start" "-a" "11548cbad9d35b0b4442d2534eb50bed63e5f87977a75c900620818bd6cb39f3", kill_on_drop: false }` [INFO] [stderr] Checking algorithm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/basic/calc.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub 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: `add` [INFO] [stdout] --> src/basic/calc.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minus` [INFO] [stdout] --> src/basic/calc.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn minus(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiple` [INFO] [stdout] --> src/basic/calc.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn multiple(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `div` [INFO] [stdout] --> src/basic/calc.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | fn div(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `divide` [INFO] [stdout] --> src/basic/calc.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn divide(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_neg` [INFO] [stdout] --> src/basic/calc.rs:70:6 [INFO] [stdout] | [INFO] [stdout] 70 | fn is_neg(n: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q11.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area` [INFO] [stdout] --> src/q11.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q12.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_1` [INFO] [stdout] --> src/q12.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn parse_1(num: i32) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_2` [INFO] [stdout] --> src/q12.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn parse_2(num: i32) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_3` [INFO] [stdout] --> src/q12.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn parse_3(num: i32) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_4` [INFO] [stdout] --> src/q12.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | fn parse_4(num: i32) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `int_to_roman` [INFO] [stdout] --> src/q12.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn int_to_roman(num: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BestSolution` [INFO] [stdout] --> src/q12.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | struct BestSolution {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `int_to_roman` [INFO] [stdout] --> src/q12.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn int_to_roman(num: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q14.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_common_prefix` [INFO] [stdout] --> src/q14.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q20.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/q20.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q1342.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `number_of_steps` [INFO] [stdout] --> src/q1342.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn number_of_steps(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q1389.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_target_array` [INFO] [stdout] --> src/q1389.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn create_target_array(nums: Vec, index: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q1470.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shuffle` [INFO] [stdout] --> src/q1470.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn shuffle(nums: Vec, n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q1528.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `restore_string` [INFO] [stdout] --> src/q1528.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn restore_string(s: String, indices: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q1678.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `interpret` [INFO] [stdout] --> src/q1678.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn interpret(command: String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BestSolution` [INFO] [stdout] --> src/q1678.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct BestSolution {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `interpret` [INFO] [stdout] --> src/q1678.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn interpret(command: String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q1689.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_partitions` [INFO] [stdout] --> src/q1689.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn min_partitions(n: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q1769.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_operations` [INFO] [stdout] --> src/q1769.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn min_operations(boxes: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BestSolution` [INFO] [stdout] --> src/q1769.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct BestSolution {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_operations` [INFO] [stdout] --> src/q1769.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn min_operations(boxes: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/q2011.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `final_value_after_operations` [INFO] [stdout] --> src/q2011.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn final_value_after_operations(operations: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "11548cbad9d35b0b4442d2534eb50bed63e5f87977a75c900620818bd6cb39f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11548cbad9d35b0b4442d2534eb50bed63e5f87977a75c900620818bd6cb39f3", kill_on_drop: false }` [INFO] [stdout] 11548cbad9d35b0b4442d2534eb50bed63e5f87977a75c900620818bd6cb39f3