[INFO] cloning repository https://github.com/tbqjxmz/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/tbqjxmz/leetcode-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftbqjxmz%2Fleetcode-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftbqjxmz%2Fleetcode-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] caf18943fd394d3a413804ed178a5915d7b263e6 [INFO] checking tbqjxmz/leetcode-rs against try#3652eaba14e5de752eaa5a8ffcac7132f9244f07 for pr-139272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftbqjxmz%2Fleetcode-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tbqjxmz/leetcode-rs on toolchain 3652eaba14e5de752eaa5a8ffcac7132f9244f07 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tbqjxmz/leetcode-rs [INFO] finished tweaking git repo https://github.com/tbqjxmz/leetcode-rs [INFO] tweaked toml for git repo https://github.com/tbqjxmz/leetcode-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tbqjxmz/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" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3607f230fb14a70bcbdb41afabf15e2130ecb1fffc905f6bd8b8721fd35db237 [INFO] running `Command { std: "docker" "start" "-a" "3607f230fb14a70bcbdb41afabf15e2130ecb1fffc905f6bd8b8721fd35db237", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3607f230fb14a70bcbdb41afabf15e2130ecb1fffc905f6bd8b8721fd35db237", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3607f230fb14a70bcbdb41afabf15e2130ecb1fffc905f6bd8b8721fd35db237", kill_on_drop: false }` [INFO] [stdout] 3607f230fb14a70bcbdb41afabf15e2130ecb1fffc905f6bd8b8721fd35db237 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+3652eaba14e5de752eaa5a8ffcac7132f9244f07" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c219729ae2778660d0372271354003b6d355b07f4a19c0b87c6cee947f18b6e [INFO] running `Command { std: "docker" "start" "-a" "3c219729ae2778660d0372271354003b6d355b07f4a19c0b87c6cee947f18b6e", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/58最后一个单词的长度.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/13罗马数字转整数.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roman_to_int` is never used [INFO] [stdout] --> src/bin/13罗马数字转整数.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 97 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_last_word` is never used [INFO] [stdout] --> src/bin/58最后一个单词的长度.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 63 | pub fn length_of_last_word(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/14最长公共前缀.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `longest_common_prefix` is never used [INFO] [stdout] --> src/bin/14最长公共前缀.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 53 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/1两数之和.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/bin/1两数之和.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/26删除有序数组中的重复项.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_duplicates` is never used [INFO] [stdout] --> src/bin/26删除有序数组中的重复项.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 80 | pub fn remove_duplicates(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/20有效的括号.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | 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_valid` is never used [INFO] [stdout] --> src/bin/20有效的括号.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 76 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/27移除元素.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_element` is never used [INFO] [stdout] --> src/bin/27移除元素.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 83 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/20有效的括号.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | 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_valid` is never used [INFO] [stdout] --> src/bin/20有效的括号.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 76 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/28找出字符串中第一个匹配项的下标.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `str_str` is never used [INFO] [stdout] --> src/bin/28找出字符串中第一个匹配项的下标.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 54 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/26删除有序数组中的重复项.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_duplicates` is never used [INFO] [stdout] --> src/bin/26删除有序数组中的重复项.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 80 | pub fn remove_duplicates(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/66加一.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/1两数之和.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct Solution; [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/bin/21合并两个有序链表.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut cur = &mut head; [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: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/35搜索插入位置.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `plus_one` is never used [INFO] [stdout] --> src/bin/66加一.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 66 | pub fn plus_one(digits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/21合并两个有序链表.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut cur = &mut head; [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: associated function `search_insert` is never used [INFO] [stdout] --> src/bin/35搜索插入位置.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 61 | pub fn search_insert(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/21合并两个有序链表.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/21合并两个有序链表.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 63 | #[inline] [INFO] [stdout] 64 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_two_lists` is never used [INFO] [stdout] --> src/bin/21合并两个有序链表.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 87 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/bin/1两数之和.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/13罗马数字转整数.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roman_to_int` is never used [INFO] [stdout] --> src/bin/13罗马数字转整数.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 97 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/2两数相加.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/2两数相加.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 68 | #[inline] [INFO] [stdout] 69 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_two_numbers` is never used [INFO] [stdout] --> src/bin/2两数相加.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 93 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/2两数相加.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/66加一.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/2两数相加.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 68 | #[inline] [INFO] [stdout] 69 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_two_numbers` is never used [INFO] [stdout] --> src/bin/2两数相加.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 93 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/21合并两个有序链表.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/21合并两个有序链表.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 63 | #[inline] [INFO] [stdout] 64 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `merge_two_lists` is never used [INFO] [stdout] --> src/bin/21合并两个有序链表.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 87 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/67二进制求和.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_binary` is never used [INFO] [stdout] --> src/bin/67二进制求和.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 49 | pub fn add_binary(a: String, b: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `plus_one` is never used [INFO] [stdout] --> src/bin/66加一.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 66 | pub fn plus_one(digits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/14最长公共前缀.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `longest_common_prefix` is never used [INFO] [stdout] --> src/bin/14最长公共前缀.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 53 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/69x-的平方根.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `my_sqrt` is never used [INFO] [stdout] --> src/bin/69x-的平方根.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 54 | pub fn my_sqrt(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/70爬楼梯.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `climb_stairs` is never used [INFO] [stdout] --> src/bin/70爬楼梯.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 57 | pub fn climb_stairs(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/58最后一个单词的长度.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_last_word` is never used [INFO] [stdout] --> src/bin/58最后一个单词的长度.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 63 | pub fn length_of_last_word(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/35搜索插入位置.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `search_insert` is never used [INFO] [stdout] --> src/bin/35搜索插入位置.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 61 | pub fn search_insert(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/67二进制求和.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `add_binary` is never used [INFO] [stdout] --> src/bin/67二进制求和.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 49 | pub fn add_binary(a: String, b: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/69x-的平方根.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `my_sqrt` is never used [INFO] [stdout] --> src/bin/69x-的平方根.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 54 | pub fn my_sqrt(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/27移除元素.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `remove_element` is never used [INFO] [stdout] --> src/bin/27移除元素.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 83 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/70爬楼梯.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `climb_stairs` is never used [INFO] [stdout] --> src/bin/70爬楼梯.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 57 | pub fn climb_stairs(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/3190使所有元素都可以被-3-整除的最少操作数.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `minimum_operations` is never used [INFO] [stdout] --> src/bin/3190使所有元素都可以被-3-整除的最少操作数.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 64 | pub fn minimum_operations(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/28找出字符串中第一个匹配项的下标.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/3190使所有元素都可以被-3-整除的最少操作数.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `str_str` is never used [INFO] [stdout] --> src/bin/28找出字符串中第一个匹配项的下标.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 54 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `minimum_operations` is never used [INFO] [stdout] --> src/bin/3190使所有元素都可以被-3-整除的最少操作数.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 64 | pub fn minimum_operations(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/9回文数.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | 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_palindrome` is never used [INFO] [stdout] --> src/bin/9回文数.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 68 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.59s [INFO] running `Command { std: "docker" "inspect" "3c219729ae2778660d0372271354003b6d355b07f4a19c0b87c6cee947f18b6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c219729ae2778660d0372271354003b6d355b07f4a19c0b87c6cee947f18b6e", kill_on_drop: false }` [INFO] [stdout] 3c219729ae2778660d0372271354003b6d355b07f4a19c0b87c6cee947f18b6e