[INFO] cloning repository https://github.com/FUTingFei/algo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FUTingFei/algo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFUTingFei%2Falgo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFUTingFei%2Falgo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37afd0c150a545c2c986a15c9cd7cd73532edfa9 [INFO] checking FUTingFei/algo against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFUTingFei%2Falgo" "/workspace/builds/worker-114/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-114/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FUTingFei/algo on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FUTingFei/algo [INFO] finished tweaking git repo https://github.com/FUTingFei/algo [INFO] tweaked toml for git repo https://github.com/FUTingFei/algo written to /workspace/builds/worker-114/source/Cargo.toml [INFO] crate git repo https://github.com/FUTingFei/algo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded leetcode_prelude v0.2.2 [INFO] [stderr] Downloaded leetcode_test v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cd3bde79d6f30bf11091239bb6cc5916494a165c2f2ee0690ec96306d472c62 [INFO] running `Command { std: "docker" "start" "-a" "8cd3bde79d6f30bf11091239bb6cc5916494a165c2f2ee0690ec96306d472c62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cd3bde79d6f30bf11091239bb6cc5916494a165c2f2ee0690ec96306d472c62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cd3bde79d6f30bf11091239bb6cc5916494a165c2f2ee0690ec96306d472c62", kill_on_drop: false }` [INFO] [stdout] 8cd3bde79d6f30bf11091239bb6cc5916494a165c2f2ee0690ec96306d472c62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fca76e08753c91d88f2b71004fa98b199135f54efa7027f77d24a1ac0b286c09 [INFO] running `Command { std: "docker" "start" "-a" "fca76e08753c91d88f2b71004fa98b199135f54efa7027f77d24a1ac0b286c09", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling serde_json v1.0.48 [INFO] [stderr] Compiling leetcode_test v0.1.1 [INFO] [stderr] Checking leetcode_prelude v0.2.2 [INFO] [stderr] Checking algo v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/n206reverse_list.rs (1 fix) [INFO] [stderr] Fixed src/n876middle_node.rs (1 fix) [INFO] [stderr] Fixed src/n404sum_of_left_leaves.rs (1 fix) [INFO] [stderr] Fixed src/n002add_two_numbers.rs (1 fix) [INFO] [stderr] Fixed src/n111min_depth.rs (1 fix) [INFO] [stderr] Fixed src/n257binary_tree_paths.rs (1 fix) [INFO] [stderr] Fixed src/n1002common_chars.rs (1 fix) [INFO] [stderr] Fixed src/n110is_balanced.rs (1 fix) [INFO] [stderr] Fixed src/n310find_min_height_trees.rs (2 fixes) [INFO] [stderr] Fixed src/n401read_binary_watch.rs (1 fix) [INFO] [stderr] Fixed src/n226invert_tree.rs (1 fix) [INFO] [stderr] Fixed src/n392is_subsequence.rs (3 fixes) [INFO] [stderr] Fixed src/n437path_sum.rs (2 fixes) [INFO] [stderr] Fixed src/n004find_median_sorted_arrays.rs (2 fixes) [INFO] [stderr] Fixed src/n108sorted_array_to_bst.rs (1 fix) [INFO] [stderr] Fixed src/interview/i11min_array.rs (1 fix) [INFO] [stderr] Fixed src/n107level_order_bottom.rs (1 fix) [INFO] [stderr] Fixed src/interview/i07build_tree.rs (1 fix) [INFO] [stderr] Fixed src/n100is_same_tree.rs (1 fix) [INFO] [stderr] Fixed src/n112has_path_sum.rs (1 fix) [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n437path_sum.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | let root = btree![10,5,-3,3,2,null,11,3,-2,null,1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n404sum_of_left_leaves.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | let tree = btree![1,2]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n257binary_tree_paths.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | let tree = btree![1,2,3,null,5]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n226invert_tree.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | let res = btree![4,7,2,9,6,3,1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n226invert_tree.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | let tree = btree![4,2,7,1,3,6,9]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n112has_path_sum.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | let tree1 = btree![5,4,8,11,null,13,4,7,2,null,null,null,1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n111min_depth.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let tree1 = btree![3,9,20,null,null,15,7]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n110is_balanced.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | let tree2 = btree![1,2,2,3,3,null,null,4,4]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n110is_balanced.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let tree1 = btree![3,9,20,null,null,15,7]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n108sorted_array_to_bst.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let res = btree![0,-3,9,-10,null,5]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n107level_order_bottom.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | let tree = btree![3,9,20,null,null,15,7]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n100is_same_tree.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | let tree6 = btree![1,1,2]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n100is_same_tree.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let tree5 = btree![1,2,1]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n100is_same_tree.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let tree4 = btree![1,null,2]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n100is_same_tree.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | let tree3 = btree![1,2]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n100is_same_tree.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let tree2 = btree![1,2,3]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/n100is_same_tree.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | let tree1 = btree![1,2,3]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n876middle_node.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | let res = linkedlist![4,5,6]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n876middle_node.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | let mut head = linkedlist![1,2,3,4,5,6]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n876middle_node.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 56 | let res = linkedlist![3,4,5]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n876middle_node.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 55 | let mut head = linkedlist![1,2,3,4,5]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n206reverse_list.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | let res = linkedlist![5,4,3,2,1]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n206reverse_list.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | let list1 = linkedlist![1,2,3,4,5]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n002add_two_numbers.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 75 | let res = linkedlist![0,1]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n002add_two_numbers.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let list2 = linkedlist![5]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `linkedlist` in this scope [INFO] [stdout] --> src/n002add_two_numbers.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | let list1 = linkedlist![5]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::linkedlist [INFO] [stdout] leetcode_prelude::linkedlist [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `btree` in this scope [INFO] [stdout] --> src/interview/i07build_tree.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | let res = btree![3,9,20,null,null,15,7]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] crate::n203remove_elements::leetcode_prelude::btree [INFO] [stdout] leetcode_prelude::btree [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/n392is_subsequence.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 16 | return false; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 17 | break; [INFO] [stdout] | ^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> src/n1002common_chars.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | let res = Solution::common_chars(a); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 40 | use crate::interview::i00example::Solution; [INFO] [stdout] | [INFO] [stdout] 40 | use crate::interview::i03find_repeat_number::Solution; [INFO] [stdout] | [INFO] [stdout] 40 | use crate::interview::i04find_number_in2_d_array::Solution; [INFO] [stdout] | [INFO] [stdout] 40 | use crate::interview::i05replace_space::Solution; [INFO] [stdout] | [INFO] [stdout] and 65 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> src/n392is_subsequence.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | let res = Solution::is_subsequence(s, t); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 29 | use crate::interview::i00example::Solution; [INFO] [stdout] | [INFO] [stdout] 29 | use crate::interview::i03find_repeat_number::Solution; [INFO] [stdout] | [INFO] [stdout] 29 | use crate::interview::i04find_number_in2_d_array::Solution; [INFO] [stdout] | [INFO] [stdout] 29 | use crate::interview::i05replace_space::Solution; [INFO] [stdout] | [INFO] [stdout] and 65 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Solution` [INFO] [stdout] --> src/n401read_binary_watch.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | assert_eq!(res, Solution::read_binary_watch(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 37 | use crate::interview::i00example::Solution; [INFO] [stdout] | [INFO] [stdout] 37 | use crate::interview::i03find_repeat_number::Solution; [INFO] [stdout] | [INFO] [stdout] 37 | use crate::interview::i04find_number_in2_d_array::Solution; [INFO] [stdout] | [INFO] [stdout] 37 | use crate::interview::i05replace_space::Solution; [INFO] [stdout] | [INFO] [stdout] and 65 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/interview/i00example.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `re` is never read [INFO] [stdout] --> src/n035search_insert.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut re = 0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/n058length_of_last_word.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/n058length_of_last_word.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/n441arrange_coins.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/n392is_subsequence.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 16 | return false; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 17 | break; [INFO] [stdout] | ^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CQueue` [INFO] [stdout] --> src/interview/i09c_queue.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct CQueue { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/interview/i09c_queue.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append_tail` [INFO] [stdout] --> src/interview/i09c_queue.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn append_tail(&mut self, value: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_head` [INFO] [stdout] --> src/interview/i09c_queue.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn delete_head(&mut self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1002common_chars.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `common_chars` [INFO] [stdout] --> src/n1002common_chars.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn common_chars(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n310find_min_height_trees.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_min_height_trees` [INFO] [stdout] --> src/n310find_min_height_trees.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_min_height_trees(_n: i32, _edges: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n392is_subsequence.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_subsequence` [INFO] [stdout] --> src/n392is_subsequence.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_subsequence(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MinStack` [INFO] [stdout] --> src/n155min_stack.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MinStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/n155min_stack.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/n155min_stack.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn push(&mut self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/n155min_stack.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> src/n155min_stack.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn top(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_min` [INFO] [stdout] --> src/n155min_stack.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_min(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_min` [INFO] [stdout] --> src/n155min_stack.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn update_min(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MyStack` [INFO] [stdout] --> src/n225my_stack.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyStack { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/n225my_stack.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/n225my_stack.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn push(&mut self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/n225my_stack.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn pop(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> src/n225my_stack.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn top(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/n225my_stack.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MyQueue` [INFO] [stdout] --> src/n232my_queue.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyQueue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/n232my_queue.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/n232my_queue.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn push(&mut self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/n232my_queue.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn pop(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/n232my_queue.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn peek(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/n232my_queue.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `NumArray` [INFO] [stdout] --> src/n303num_array.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct NumArray { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/n303num_array.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(nums: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sum_range` [INFO] [stdout] --> src/n303num_array.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn sum_range(&mut self, i: i32, j: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n401read_binary_watch.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_binary_watch` [INFO] [stdout] --> src/n401read_binary_watch.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn read_binary_watch(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `count_one` [INFO] [stdout] --> src/n401read_binary_watch.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn count_one(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `n191hammingWeight` should have a snake case name [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub mod n191hammingWeight; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `n191hamming_weight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prevMax` should have a snake case name [INFO] [stdout] --> src/n198rob.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let mut prevMax = 0; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currMax` should have a snake case name [INFO] [stdout] --> src/n198rob.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | let mut currMax = 0; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `curr_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hammingWeight` should have a snake case name [INFO] [stdout] --> src/n191hammingWeight.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hammingWeight (n: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `hamming_weight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error: aborting due to 30 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `algo` due to 31 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n443compress.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub 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 never used: `compress` [INFO] [stdout] --> src/n443compress.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn compress(chars: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "fca76e08753c91d88f2b71004fa98b199135f54efa7027f77d24a1ac0b286c09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fca76e08753c91d88f2b71004fa98b199135f54efa7027f77d24a1ac0b286c09", kill_on_drop: false }` [INFO] [stdout] fca76e08753c91d88f2b71004fa98b199135f54efa7027f77d24a1ac0b286c09