[INFO] cloning repository https://github.com/Light-Keeper/rust-leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Light-Keeper/rust-leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLight-Keeper%2Frust-leetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLight-Keeper%2Frust-leetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e5d12ac95769350347e30d5dc5b689c1ea7254fe [INFO] building Light-Keeper/rust-leetcode 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%2FLight-Keeper%2Frust-leetcode" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Light-Keeper/rust-leetcode 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/Light-Keeper/rust-leetcode [INFO] finished tweaking git repo https://github.com/Light-Keeper/rust-leetcode [INFO] tweaked toml for git repo https://github.com/Light-Keeper/rust-leetcode written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Light-Keeper/rust-leetcode 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] [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-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45f934d5233bad9b52068a6bf45258ccef9cdffd183d426c59cc015f7157f8f1 [INFO] running `Command { std: "docker" "start" "-a" "45f934d5233bad9b52068a6bf45258ccef9cdffd183d426c59cc015f7157f8f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45f934d5233bad9b52068a6bf45258ccef9cdffd183d426c59cc015f7157f8f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45f934d5233bad9b52068a6bf45258ccef9cdffd183d426c59cc015f7157f8f1", kill_on_drop: false }` [INFO] [stdout] 45f934d5233bad9b52068a6bf45258ccef9cdffd183d426c59cc015f7157f8f1 [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 -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] 158a41d98a12dc01433f7b7a291d998f6286f15483ed5bb4500e5612903f9df0 [INFO] running `Command { std: "docker" "start" "-a" "158a41d98a12dc01433f7b7a291d998f6286f15483ed5bb4500e5612903f9df0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `Person` is never used [INFO] [stdout] --> src/experiments/inherit.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Student` is never used [INFO] [stdout] --> src/experiments/inherit.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Student: Person { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Programmer` is never used [INFO] [stdout] --> src/experiments/inherit.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | trait Programmer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ComSciStudent` is never used [INFO] [stdout] --> src/experiments/inherit.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait ComSciStudent: Student + Programmer {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StudentIml` is never constructed [INFO] [stdout] --> src/experiments/inherit.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct StudentIml {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `programmer_report` is never used [INFO] [stdout] --> src/experiments/inherit.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn programmer_report(p: &dyn Programmer) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `memo` is never used [INFO] [stdout] --> src/experiments/memoize.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn memo(mut f: impl FnMut(A) -> B) -> impl FnMut(A) -> B { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/tasks.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/tasks/t0001_two_sum.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unique_paths_with_obstacles` is never used [INFO] [stdout] --> src/tasks/t0065_unique_path.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn unique_paths_with_obstacles(obstacle_grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `search_matrix` is never used [INFO] [stdout] --> src/tasks/t0074_search_matrix.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn search_matrix(matrix: Vec>, target: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `maximal_rectangle` is never used [INFO] [stdout] --> src/tasks/t0085_maximal_rectangle.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn maximal_rectangle(matrix: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `gray_code` is never used [INFO] [stdout] --> src/tasks/t0089_gray_code.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn gray_code(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `num_decodings` is never used [INFO] [stdout] --> src/tasks/t0091_decode_ways.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn num_decodings(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `reverse_between` and `slice_to_list` are never used [INFO] [stdout] --> src/tasks/t0092_reverse_linked_list_ii.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 4 | pub fn reverse_between( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn slice_to_list(values: &[i32]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `restore_ip_addresses` and `find_ways_to_split_digits` are never used [INFO] [stdout] --> src/tasks/t0093_restore_ip_addresses.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 4 | pub fn restore_ip_addresses(s: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn find_ways_to_split_digits( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `generate_trees` is never used [INFO] [stdout] --> src/tasks/t0095_generate_trees.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn generate_trees(n: i32) -> Vec>>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `num_trees` is never used [INFO] [stdout] --> src/tasks/t0096_num_trees.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn num_trees(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_valid_bst` and `is_valid_with_constraint` are never used [INFO] [stdout] --> src/tasks/t0098_validate_binary_search_tree.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 8 | pub fn is_valid_bst(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn is_valid_with_constraint(range: Range, node: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tasks/t0098_validate_binary_search_tree.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 40 | #[inline] [INFO] [stdout] 41 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_symmetric` and `sync_nodes_review` are never used [INFO] [stdout] --> src/tasks/t0101_is_symmetric.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 20 | pub fn is_symmetric(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn sync_nodes_review(a: Option>>, b: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `flatten` and `flatten_with_suffix` are never used [INFO] [stdout] --> src/tasks/t0114_flatten_bin_tree.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 16 | pub fn flatten(root: &mut Option>>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn flatten_with_suffix(root: &mut Option>>, suffux: Option>>) -> Option src/tasks/t0119_paskal_triangle_2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn get_row(row_index: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_palindrome` and `filtered_iterator` are never used [INFO] [stdout] --> src/tasks/t0125_is_palindrome.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 7 | pub fn is_palindrome(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn filtered_iterator(src: impl Iterator) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `solve` and `dfs` are never used [INFO] [stdout] --> src/tasks/t0130_surrounded_regions.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 4 | pub fn solve(board: &mut Vec>) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn dfs(board: &mut Vec>, i: usize, j: usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `insertion_sort_list` is never used [INFO] [stdout] --> src/tasks/t0147_insertion_sort_list.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 10 | pub fn insertion_sort_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/tasks/t0149_max_points_on_line.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Line` is never constructed [INFO] [stdout] --> src/tasks/t0149_max_points_on_line.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `gcd` are never used [INFO] [stdout] --> src/tasks/t0149_max_points_on_line.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Line { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 18 | fn new(mut a: Point, b: Point) -> Line { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn gcd(mut a: i32, mut b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_points` is never used [INFO] [stdout] --> src/tasks/t0149_max_points_on_line.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 65 | pub fn max_points(points: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `eval_rpn` is never used [INFO] [stdout] --> src/tasks/t0150_evaluate_rpn.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn eval_rpn(tokens: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinStack` is never constructed [INFO] [stdout] --> src/tasks/t0155_min_stack.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct MinStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `top`, and `get_min` are never used [INFO] [stdout] --> src/tasks/t0155_min_stack.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl MinStack { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn push(&mut self, val: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn top(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_min(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BaseCache` is never constructed [INFO] [stdout] --> src/tasks/t0196_lru_cache.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct BaseCache { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `put` are never used [INFO] [stdout] --> src/tasks/t0196_lru_cache.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 13 | / impl BaseCache [INFO] [stdout] 14 | | where [INFO] [stdout] 15 | | K: Eq + Copy + Hash, [INFO] [stdout] 16 | | V: Copy, [INFO] [stdout] | |____________- associated items in this implementation [INFO] [stdout] 17 | { [INFO] [stdout] 18 | fn new(capacity: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn get(&self, key: K) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn put(&mut self, key: K, value: V) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LRUCache` is never constructed [INFO] [stdout] --> src/tasks/t0196_lru_cache.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | struct LRUCache { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get`, and `put` are never used [INFO] [stdout] --> src/tasks/t0196_lru_cache.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 69 | impl LRUCache { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 70 | fn new(capacity: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn get(&self, key: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `majority_element` is never used [INFO] [stdout] --> src/tasks/t0229_majority_element.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn majority_element(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_duplicate` is never used [INFO] [stdout] --> src/tasks/t0287_find_duplicate.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn find_duplicate(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `change` is never used [INFO] [stdout] --> src/tasks/t0518_coin_change_2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn change(amount: i32, mut coins: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reverse_words` is never used [INFO] [stdout] --> src/tasks/t0557_reverse_words.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn reverse_words(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/tasks/t0706_my_hash_map.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | Inline(u8, [(i32, i32); 10]), [INFO] [stdout] | ------ ^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | Inline((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OnHeap` is never constructed [INFO] [stdout] --> src/tasks/t0706_my_hash_map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum TopLevelEntity { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 2 | Inline(u8, [(i32, i32); 10]), [INFO] [stdout] 3 | OnHeap(Box<[i32; 1024]>), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyHashMap` is never constructed [INFO] [stdout] --> src/tasks/t0706_my_hash_map.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct MyHashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/tasks/t0706_my_hash_map.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn hash(key: i32) -> (usize, usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `put`, `get`, and `remove` are never used [INFO] [stdout] --> src/tasks/t0706_my_hash_map.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl MyHashMap { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 24 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn get(&self, key: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn remove(&mut self, key: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `backspace_compare` and `format` are never used [INFO] [stdout] --> src/tasks/t0844_backspace_compare.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 4 | pub fn backspace_compare(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | fn format(s: String) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_monotonic` is never used [INFO] [stdout] --> src/tasks/t0896_is_monotonic.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn is_monotonic(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `sort_array_by_parity` is never used [INFO] [stdout] --> src/tasks/t0905_sort_array_by_parity.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn sort_array_by_parity(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `longest_str_chain` and `is_predecessor` are never used [INFO] [stdout] --> src/tasks/t1048_longest_str_chain.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 4 | pub fn longest_str_chain(mut words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn is_predecessor(a: &str, b: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `k_weakest_rows` is never used [INFO] [stdout] --> src/tasks/t1337_k_weakest_rows.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn k_weakest_rows(mat: Vec>, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `validate_binary_tree_nodes` is never used [INFO] [stdout] --> src/tasks/t1361_validate_binary_tree_nodes.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn validate_binary_tree_nodes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `num_identical_pairs` is never used [INFO] [stdout] --> src/tasks/t1512_num_identical_pairs.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn num_identical_pairs(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `min_cost_connect_points`, `find_island_number`, and `optimize_path` are never used [INFO] [stdout] --> src/tasks/t1584_min_cost_connect_points.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 4 | pub fn min_cost_connect_points(points: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn find_island_number(islands: &mut Vec, mut i: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn optimize_path(islands: &mut Vec, mut i: usize, target: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `minimum_effort_path` is never used [INFO] [stdout] --> src/tasks/t1631_minimum_effort_path.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn minimum_effort_path(mut heights: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `close_strings`, `letters`, and `counters` are never used [INFO] [stdout] --> src/tasks/t1657_close_strings.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn close_strings(word1: String, word2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn letters(workd: &String) -> [bool; 30] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn counters(workd: &String) -> [usize; 30] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_frequency` is never used [INFO] [stdout] --> src/tasks/t1838_max_frequency.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn max_frequency(mut nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `winner_of_game` is never used [INFO] [stdout] --> src/tasks/t2038_winner_of_game.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn winner_of_game(colors: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataStream` is never constructed [INFO] [stdout] --> src/tasks/t2526_consecutive_integers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct DataStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `consec` are never used [INFO] [stdout] --> src/tasks/t2526_consecutive_integers.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl DataStream { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 8 | fn new(value: i32, k: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn consec(&mut self, num: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RandomizedSet` is never constructed [INFO] [stdout] --> src/tasks/t0380_randomized_set.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct RandomizedSet { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RandomizedSet` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `remove`, and `get_random` are never used [INFO] [stdout] --> src/tasks/t0380_randomized_set.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl RandomizedSet { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn insert(&mut self, val: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn remove(&mut self, val: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn get_random(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unique_occurrences` is never used [INFO] [stdout] --> src/tasks/t1207_unique_occurrences.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 9 | pub fn unique_occurrences(arr: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_falling_path_sum` is never used [INFO] [stdout] --> src/tasks/t0931_min_falling_path_sum.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn min_falling_path_sum(mut matrix: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.94s [INFO] running `Command { std: "docker" "inspect" "158a41d98a12dc01433f7b7a291d998f6286f15483ed5bb4500e5612903f9df0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "158a41d98a12dc01433f7b7a291d998f6286f15483ed5bb4500e5612903f9df0", kill_on_drop: false }` [INFO] [stdout] 158a41d98a12dc01433f7b7a291d998f6286f15483ed5bb4500e5612903f9df0 [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 -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] b1ef90a2e996dc925999ae8dedabfb34279b1778c5be852917796681d5bab445 [INFO] running `Command { std: "docker" "start" "-a" "b1ef90a2e996dc925999ae8dedabfb34279b1778c5be852917796681d5bab445", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `Person` is never used [INFO] [stdout] --> src/experiments/inherit.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Student` is never used [INFO] [stdout] --> src/experiments/inherit.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Student: Person { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ComSciStudent` is never used [INFO] [stdout] --> src/experiments/inherit.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | trait ComSciStudent: Student + Programmer {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.29s [INFO] running `Command { std: "docker" "inspect" "b1ef90a2e996dc925999ae8dedabfb34279b1778c5be852917796681d5bab445", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1ef90a2e996dc925999ae8dedabfb34279b1778c5be852917796681d5bab445", kill_on_drop: false }` [INFO] [stdout] b1ef90a2e996dc925999ae8dedabfb34279b1778c5be852917796681d5bab445