[INFO] cloning repository https://github.com/LgnMs/my-leetcode-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LgnMs/my-leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLgnMs%2Fmy-leetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLgnMs%2Fmy-leetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1bdddbeb6c1f96f6aea5e34fd771fa57786c239a [INFO] checking LgnMs/my-leetcode-rust against master#c5fbcd35a8217a17f6b63a22217ace06cf8f5f02 for pr-86194 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLgnMs%2Fmy-leetcode-rust" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LgnMs/my-leetcode-rust on toolchain c5fbcd35a8217a17f6b63a22217ace06cf8f5f02 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LgnMs/my-leetcode-rust [INFO] finished tweaking git repo https://github.com/LgnMs/my-leetcode-rust [INFO] tweaked toml for git repo https://github.com/LgnMs/my-leetcode-rust written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/LgnMs/my-leetcode-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5dd3e0bafafcbdd621c3dde755fdd44e1d53cb65a1c267fbeb85ac2e1d81c310 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5dd3e0bafafcbdd621c3dde755fdd44e1d53cb65a1c267fbeb85ac2e1d81c310", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dd3e0bafafcbdd621c3dde755fdd44e1d53cb65a1c267fbeb85ac2e1d81c310", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dd3e0bafafcbdd621c3dde755fdd44e1d53cb65a1c267fbeb85ac2e1d81c310", kill_on_drop: false }` [INFO] [stdout] 5dd3e0bafafcbdd621c3dde755fdd44e1d53cb65a1c267fbeb85ac2e1d81c310 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 053db27787b1b60d96d537a21e2aa5c5a28311abb0ca5270049af9b19919788e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "053db27787b1b60d96d537a21e2aa5c5a28311abb0ca5270049af9b19919788e", kill_on_drop: false }` [INFO] [stderr] Checking tree v0.1.0 (/opt/rustwide/workdir/tree) [INFO] [stderr] Checking linked_list v0.1.0 (/opt/rustwide/workdir/linked_list) [INFO] [stderr] Checking hash_table v0.1.0 (/opt/rustwide/workdir/hash_table) [INFO] [stderr] Checking dynamic_programming v0.1.0 (/opt/rustwide/workdir/dynamic_programming) [INFO] [stderr] Checking binary_search v0.1.0 (/opt/rustwide/workdir/binary_search) [INFO] [stderr] Checking math v0.1.0 (/opt/rustwide/workdir/math) [INFO] [stderr] Checking two_pointers v0.1.0 (/opt/rustwide/workdir/two_pointers) [INFO] [stderr] Checking string v0.1.0 (/opt/rustwide/workdir/string) [INFO] [stderr] Checking sort v0.1.0 (/opt/rustwide/workdir/sort) [INFO] [stderr] Checking greedy v0.1.0 (/opt/rustwide/workdir/greedy) [INFO] [stderr] Checking bit_manipulation v0.1.0 (/opt/rustwide/workdir/bit_manipulation) [INFO] [stdout] warning: function is never used: `intersect` [INFO] [stdout] --> hash_table/intersect.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn intersect(nums1: Vec, nums2: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `length_of_longest_substring` [INFO] [stdout] --> hash_table/length_of_longest_substring.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `two_sum` [INFO] [stdout] --> hash_table/two_sum.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `;` or `{`, found keyword `mod` [INFO] [stdout] --> dynamic_programming/lib.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 7 | mod nu [INFO] [stdout] | - expected one of `;` or `{` [INFO] [stdout] 8 | mod num_array; [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dynamic_programming` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `;` or `{`, found keyword `mod` [INFO] [stdout] --> dynamic_programming/lib.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 7 | mod nu [INFO] [stdout] | - expected one of `;` or `{` [INFO] [stdout] 8 | mod num_array; [INFO] [stdout] | ^^^ unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_two_numbers` [INFO] [stdout] --> linked_list/add_two_numbers.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_palindrome` [INFO] [stdout] --> linked_list/is_palindrome.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn is_palindrome(head: Option>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> linked_list/linked_list_utils.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_list_node` [INFO] [stdout] --> linked_list/linked_list_utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn generate_list_node(vecs: Vec) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `merge_two_lists` [INFO] [stdout] --> linked_list/merge_two_lists.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reverse_list` [INFO] [stdout] --> linked_list/reverse_list.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_bst` [INFO] [stdout] --> tree/is_valid_bst.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn is_valid_bst(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid_bst2` [INFO] [stdout] --> tree/is_valid_bst.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn is_valid_bst2(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Rt` [INFO] [stdout] --> tree/max_depth.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | type Rt = Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_depth` [INFO] [stdout] --> tree/max_depth.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn max_depth(root: Option) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `preorder_traversal` [INFO] [stdout] --> tree/preorder_traversal.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn preorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Node` [INFO] [stdout] --> tree/is_symmetric.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub type Node = Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_symmetric` [INFO] [stdout] --> tree/is_symmetric.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn is_symmetric(root: Option) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_uniq_char` [INFO] [stdout] --> string/first_uniq_char.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn first_uniq_char(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_anagram` [INFO] [stdout] --> string/is_anagram.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_anagram(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_palindrome` [INFO] [stdout] --> string/is_palindrome.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_palindrome(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reverse` [INFO] [stdout] --> string/reverse.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn reverse(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reverse_string` [INFO] [stdout] --> string/reverse_string.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_profit2` [INFO] [stdout] --> greedy/max_profit2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn max_profit2(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_area` [INFO] [stdout] --> two_pointers/max_area.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `merge` [INFO] [stdout] --> two_pointers/merge.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn merge(nums1: &mut Vec, m: i32, nums2: &mut Vec, n: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `move_zeroes` [INFO] [stdout] --> two_pointers/move_zeroes.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn move_zeroes(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `three_sum` [INFO] [stdout] --> two_pointers/three_sum.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `three_sum_closest` [INFO] [stdout] --> two_pointers/three_sum_closest.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn three_sum_closest(mut nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `single_number` [INFO] [stdout] --> bit_manipulation/single_number.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn single_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xor_operation` [INFO] [stdout] --> bit_manipulation/xor_operation.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn xor_operation(n: i32, start: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "053db27787b1b60d96d537a21e2aa5c5a28311abb0ca5270049af9b19919788e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "053db27787b1b60d96d537a21e2aa5c5a28311abb0ca5270049af9b19919788e", kill_on_drop: false }` [INFO] [stdout] 053db27787b1b60d96d537a21e2aa5c5a28311abb0ca5270049af9b19919788e