[INFO] cloning repository https://github.com/guolei1204/rust_lee [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guolei1204/rust_lee" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguolei1204%2Frust_lee", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguolei1204%2Frust_lee'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7aacdd08becdbdd13fa83a82ec2a99e36f7bd6aa [INFO] building guolei1204/rust_lee against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguolei1204%2Frust_lee" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/guolei1204/rust_lee on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/guolei1204/rust_lee [INFO] finished tweaking git repo https://github.com/guolei1204/rust_lee [INFO] tweaked toml for git repo https://github.com/guolei1204/rust_lee written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/guolei1204/rust_lee 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5292270cb6f1cb8bb2c3c9947e2a8a04d2745e201841191b2bd563aeae3ab939 [INFO] running `Command { std: "docker" "start" "-a" "5292270cb6f1cb8bb2c3c9947e2a8a04d2745e201841191b2bd563aeae3ab939", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5292270cb6f1cb8bb2c3c9947e2a8a04d2745e201841191b2bd563aeae3ab939", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5292270cb6f1cb8bb2c3c9947e2a8a04d2745e201841191b2bd563aeae3ab939", kill_on_drop: false }` [INFO] [stdout] 5292270cb6f1cb8bb2c3c9947e2a8a04d2745e201841191b2bd563aeae3ab939 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 977227431cde70bad364c9d636098427190ba765b43ae11f8d00c12db4a6a961 [INFO] running `Command { std: "docker" "start" "-a" "977227431cde70bad364c9d636098427190ba765b43ae11f8d00c12db4a6a961", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling num_threads v0.1.3 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling time v0.3.7 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling lee_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `arch::x86_64::_mm_broadcastd_epi32` [INFO] [stdout] --> src/n_queens.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{arch::x86_64::_mm_broadcastd_epi32, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/n_queens.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | if (board[up_row as usize][column as usize] == 'Q') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (board[up_row as usize][column as usize] == 'Q') { [INFO] [stdout] 38 + if board[up_row as usize][column as usize] == 'Q' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LinkedList` [INFO] [stdout] --> src/main.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | collections::{HashMap, LinkedList, VecDeque}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `build_heap_down_up` and `insert` [INFO] [stdout] --> src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::heap_r::{build_heap_down_up, insert}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/main.rs:214:32 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn remove_nth_from_end(head: Option>, n: i32) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn push(deque: &mut VecDeque, n: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pop` is never used [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn pop(deque: &mut VecDeque, n: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max` is never used [INFO] [stdout] --> src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn max(deque: &VecDeque) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/main.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 97 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 98 | pub fn move_zeros(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn remove_dumplications(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn max_sliding_window(nums: &mut Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn two_sum(nums: &mut Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn middle_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn merge_two_list( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn remove_nth_from_end(head: Option>, n: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `b_search` is never used [INFO] [stdout] --> src/binary_search.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn b_search(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `climb_stairs` is never used [INFO] [stdout] --> src/climb_r.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn climb_stairs(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recursion` is never used [INFO] [stdout] --> src/climb_r.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn recursion(n: usize, memo: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_heap_down_up` is never used [INFO] [stdout] --> src/heap_r.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn build_heap_down_up(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `heapify_down_up` is never used [INFO] [stdout] --> src/heap_r.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn heapify_down_up(nums: &mut Vec, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_heap_up_down` is never used [INFO] [stdout] --> src/heap_r.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn build_heap_up_down(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `heapify_up_down` is never used [INFO] [stdout] --> src/heap_r.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn heapify_up_down(nums: &mut Vec, idx: usize, num_len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert` is never used [INFO] [stdout] --> src/heap_r.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(nums: &mut Vec, x: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_max` is never used [INFO] [stdout] --> src/heap_r.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn remove_max(nums: &mut Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/linked_list.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_list` is never used [INFO] [stdout] --> src/linked_list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn to_list(vec: Vec) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `solve_n_queues` is never used [INFO] [stdout] --> src/n_queens.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn solve_n_queues(n: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `backtrace` is never used [INFO] [stdout] --> src/n_queens.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn backtrace(board: &mut Vec>, solution: &mut Vec>, n: i32, row: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collision` is never used [INFO] [stdout] --> src/n_queens.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn collision(board: &Vec>, n: i32, row: i32, column: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `bubble_sort`, `insert_sort`, `selection_sort`, `heap_sort`, and `merge_sort` are never used [INFO] [stdout] --> src/sorts.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn bubble_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn insert_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn selection_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn heap_sort(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn merge_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_sort_recursion` is never used [INFO] [stdout] --> src/sorts.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn merge_sort_recursion(nums: &mut Vec, left: usize, right: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge` is never used [INFO] [stdout] --> src/sorts.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn merge(nums: &mut Vec, left: usize, middle: usize, right: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_heap` is never used [INFO] [stdout] --> src/sorts.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn build_heap(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `heapify` is never used [INFO] [stdout] --> src/sorts.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn heapify(nums: &mut Vec, idx: usize, len: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.37s [INFO] running `Command { std: "docker" "inspect" "977227431cde70bad364c9d636098427190ba765b43ae11f8d00c12db4a6a961", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "977227431cde70bad364c9d636098427190ba765b43ae11f8d00c12db4a6a961", kill_on_drop: false }` [INFO] [stdout] 977227431cde70bad364c9d636098427190ba765b43ae11f8d00c12db4a6a961 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1c5a490b24f4b0d061f7834defc2e761df8e29430755df02006c06a01cf499a [INFO] running `Command { std: "docker" "start" "-a" "c1c5a490b24f4b0d061f7834defc2e761df8e29430755df02006c06a01cf499a", kill_on_drop: false }` [INFO] [stderr] Compiling lee_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `arch::x86_64::_mm_broadcastd_epi32` [INFO] [stdout] --> src/n_queens.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{arch::x86_64::_mm_broadcastd_epi32, vec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/n_queens.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | if (board[up_row as usize][column as usize] == 'Q') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (board[up_row as usize][column as usize] == 'Q') { [INFO] [stdout] 38 + if board[up_row as usize][column as usize] == 'Q' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LinkedList` [INFO] [stdout] --> src/main.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | collections::{HashMap, LinkedList, VecDeque}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `build_heap_down_up` and `insert` [INFO] [stdout] --> src/main.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::heap_r::{build_heap_down_up, insert}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/main.rs:214:32 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn remove_nth_from_end(head: Option>, n: i32) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn push(deque: &mut VecDeque, n: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pop` is never used [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn pop(deque: &mut VecDeque, n: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max` is never used [INFO] [stdout] --> src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn max(deque: &VecDeque) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/main.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 97 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 98 | pub fn move_zeros(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn remove_dumplications(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn max_sliding_window(nums: &mut Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn two_sum(nums: &mut Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn middle_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn merge_two_list( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn remove_nth_from_end(head: Option>, n: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `b_search` is never used [INFO] [stdout] --> src/binary_search.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn b_search(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `climb_stairs` is never used [INFO] [stdout] --> src/climb_r.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 3 | pub fn climb_stairs(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recursion` is never used [INFO] [stdout] --> src/climb_r.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn recursion(n: usize, memo: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_heap_down_up` is never used [INFO] [stdout] --> src/heap_r.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn build_heap_down_up(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `heapify_down_up` is never used [INFO] [stdout] --> src/heap_r.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn heapify_down_up(nums: &mut Vec, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_heap_up_down` is never used [INFO] [stdout] --> src/heap_r.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn build_heap_up_down(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `heapify_up_down` is never used [INFO] [stdout] --> src/heap_r.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn heapify_up_down(nums: &mut Vec, idx: usize, num_len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert` is never used [INFO] [stdout] --> src/heap_r.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(nums: &mut Vec, x: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_max` is never used [INFO] [stdout] --> src/heap_r.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn remove_max(nums: &mut Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/linked_list.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_list` is never used [INFO] [stdout] --> src/linked_list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn to_list(vec: Vec) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `solve_n_queues` is never used [INFO] [stdout] --> src/n_queens.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn solve_n_queues(n: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `backtrace` is never used [INFO] [stdout] --> src/n_queens.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn backtrace(board: &mut Vec>, solution: &mut Vec>, n: i32, row: i32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collision` is never used [INFO] [stdout] --> src/n_queens.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn collision(board: &Vec>, n: i32, row: i32, column: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `bubble_sort`, `insert_sort`, `selection_sort`, `heap_sort`, and `merge_sort` are never used [INFO] [stdout] --> src/sorts.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn bubble_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn insert_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn selection_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn heap_sort(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn merge_sort(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_sort_recursion` is never used [INFO] [stdout] --> src/sorts.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn merge_sort_recursion(nums: &mut Vec, left: usize, right: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge` is never used [INFO] [stdout] --> src/sorts.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn merge(nums: &mut Vec, left: usize, middle: usize, right: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_heap` is never used [INFO] [stdout] --> src/sorts.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn build_heap(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `heapify` is never used [INFO] [stdout] --> src/sorts.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn heapify(nums: &mut Vec, idx: usize, len: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "c1c5a490b24f4b0d061f7834defc2e761df8e29430755df02006c06a01cf499a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1c5a490b24f4b0d061f7834defc2e761df8e29430755df02006c06a01cf499a", kill_on_drop: false }` [INFO] [stdout] c1c5a490b24f4b0d061f7834defc2e761df8e29430755df02006c06a01cf499a