[INFO] cloning repository https://github.com/cafebabeeee/leetcode-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cafebabeeee/leetcode-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcafebabeeee%2Fleetcode-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcafebabeeee%2Fleetcode-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 47dd0c7e771d75db791b8a902304b14a4fa6a298 [INFO] checking cafebabeeee/leetcode-rs against master#0fb279be1d96464c69209053ef0f97ad63088cda for pr-143857 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcafebabeeee%2Fleetcode-rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cafebabeeee/leetcode-rs [INFO] finished tweaking git repo https://github.com/cafebabeeee/leetcode-rs [INFO] tweaked toml for git repo https://github.com/cafebabeeee/leetcode-rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cafebabeeee/leetcode-rs on toolchain 0fb279be1d96464c69209053ef0f97ad63088cda [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0fb279be1d96464c69209053ef0f97ad63088cda" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cafebabeeee/leetcode-rs 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" "+0fb279be1d96464c69209053ef0f97ad63088cda" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0fb279be1d96464c69209053ef0f97ad63088cda" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bda712aae82f9532c0a5a6d8974d7e6eb63015ed4c1cbd6a7c6a8f709406d8c5 [INFO] running `Command { std: "docker" "start" "-a" "bda712aae82f9532c0a5a6d8974d7e6eb63015ed4c1cbd6a7c6a8f709406d8c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bda712aae82f9532c0a5a6d8974d7e6eb63015ed4c1cbd6a7c6a8f709406d8c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bda712aae82f9532c0a5a6d8974d7e6eb63015ed4c1cbd6a7c6a8f709406d8c5", kill_on_drop: false }` [INFO] [stdout] bda712aae82f9532c0a5a6d8974d7e6eb63015ed4c1cbd6a7c6a8f709406d8c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0fb279be1d96464c69209053ef0f97ad63088cda" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2210dc8362d8ee63e6d25bb61a84d31d57cf23af45096df414337598a5dd0545 [INFO] running `Command { std: "docker" "start" "-a" "2210dc8362d8ee63e6d25bb61a84d31d57cf23af45096df414337598a5dd0545", kill_on_drop: false }` [INFO] [stderr] Checking leetcode-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/list/p82.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/list/p82.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/list/p82.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums1` [INFO] [stdout] --> src/list/p82.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn merge(nums1: &mut Vec, m: i32, nums2: &mut Vec, n: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums2` [INFO] [stdout] --> src/list/p82.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn merge(nums1: &mut Vec, m: i32, nums2: &mut Vec, n: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/list/p82.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [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/list/p82.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [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/list/p82.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/list/p82.rs:101:18 [INFO] [stdout] | [INFO] [stdout] 101 | fn push(&self, x: i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/number/sqrt.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | for i in 2..=n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/list/p82.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/list/p82.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/list/p82.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums1` [INFO] [stdout] --> src/list/p82.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn merge(nums1: &mut Vec, m: i32, nums2: &mut Vec, n: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums2` [INFO] [stdout] --> src/list/p82.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn merge(nums1: &mut Vec, m: i32, nums2: &mut Vec, n: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nums2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/list/p82.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | #[inline] [INFO] [stdout] 10 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/list/p82.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [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/list/p82.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyQueue` is never constructed [INFO] [stdout] --> src/list/p82.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct MyQueue {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `peek`, and `empty` are never used [INFO] [stdout] --> src/list/p82.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 96 | impl MyQueue { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 97 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn push(&self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn pop(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn peek(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/list/p82.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | let (mut i, mut j, mut k) = (m - 1, n - 1, m + n - 1); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/list/p82.rs:101:18 [INFO] [stdout] | [INFO] [stdout] 101 | fn push(&self, x: i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/number/sqrt.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | for i in 2..=n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/list/p82.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | #[inline] [INFO] [stdout] 10 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyQueue` is never constructed [INFO] [stdout] --> src/list/p82.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct MyQueue {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `peek`, and `empty` are never used [INFO] [stdout] --> src/list/p82.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 96 | impl MyQueue { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 97 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | fn push(&self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn pop(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn peek(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "2210dc8362d8ee63e6d25bb61a84d31d57cf23af45096df414337598a5dd0545", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2210dc8362d8ee63e6d25bb61a84d31d57cf23af45096df414337598a5dd0545", kill_on_drop: false }` [INFO] [stdout] 2210dc8362d8ee63e6d25bb61a84d31d57cf23af45096df414337598a5dd0545