[INFO] cloning repository https://github.com/kamilrybacki/RustyLeetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kamilrybacki/RustyLeetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamilrybacki%2FRustyLeetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamilrybacki%2FRustyLeetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb2c18a6361523981de965e2b5cde9b2a967bb9a [INFO] testing kamilrybacki/RustyLeetcode against master#9e297bf54d31eb3b30067208ff9af4416945a2ed for pr-125507 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamilrybacki%2FRustyLeetcode" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kamilrybacki/RustyLeetcode on toolchain 9e297bf54d31eb3b30067208ff9af4416945a2ed [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kamilrybacki/RustyLeetcode [INFO] finished tweaking git repo https://github.com/kamilrybacki/RustyLeetcode [INFO] tweaked toml for git repo https://github.com/kamilrybacki/RustyLeetcode written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kamilrybacki/RustyLeetcode 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" "+9e297bf54d31eb3b30067208ff9af4416945a2ed" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing kamilrybacki/RustyLeetcode against try#61a9ac64344e91d62f5496627ff363d177f9daab for pr-125507 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamilrybacki%2FRustyLeetcode" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kamilrybacki/RustyLeetcode on toolchain 61a9ac64344e91d62f5496627ff363d177f9daab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kamilrybacki/RustyLeetcode [INFO] finished tweaking git repo https://github.com/kamilrybacki/RustyLeetcode [INFO] tweaked toml for git repo https://github.com/kamilrybacki/RustyLeetcode written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kamilrybacki/RustyLeetcode 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" "+61a9ac64344e91d62f5496627ff363d177f9daab" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f2526b8f6d8879e8bc0dd29f6270885d75c05f44b22da35309c15ff79ce67de [INFO] running `Command { std: "docker" "start" "-a" "4f2526b8f6d8879e8bc0dd29f6270885d75c05f44b22da35309c15ff79ce67de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f2526b8f6d8879e8bc0dd29f6270885d75c05f44b22da35309c15ff79ce67de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f2526b8f6d8879e8bc0dd29f6270885d75c05f44b22da35309c15ff79ce67de", kill_on_drop: false }` [INFO] [stdout] 4f2526b8f6d8879e8bc0dd29f6270885d75c05f44b22da35309c15ff79ce67de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+61a9ac64344e91d62f5496627ff363d177f9daab" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 122f6db5bae169bf16dde67c27876088a2083cc0a74c3c7f85ee50c1b42c65b3 [INFO] running `Command { std: "docker" "start" "-a" "122f6db5bae169bf16dde67c27876088a2083cc0a74c3c7f85ee50c1b42c65b3", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/1.two-sum.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/100.same-tree.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/100.same-tree.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | p: Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/100.same-tree.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | q: Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/100.same-tree.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | node_1: Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | fn compare_nodes( [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/100.same-tree.rs:35:39 [INFO] [stdout] | [INFO] [stdout] 35 | node_2: Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 33 | fn compare_nodes( [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/101.symmetric-tree.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/101.symmetric-tree.rs:29:49 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn is_symmetric(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/101.symmetric-tree.rs:31:42 [INFO] [stdout] | [INFO] [stdout] 31 | branch_1: &Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn check_branch( [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/101.symmetric-tree.rs:32:42 [INFO] [stdout] | [INFO] [stdout] 32 | branch_2: &Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn check_branch( [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/104.maximum-depth-of-binary-tree.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/104.maximum-depth-of-binary-tree.rs:29:46 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/104.maximum-depth-of-binary-tree.rs:30:50 [INFO] [stdout] | [INFO] [stdout] 30 | fn branch_depth(node: &Option>>, current_level: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn branch_depth(node: &Option>>, current_level: i32) -> Vec { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/108.convert-sorted-array-to-binary-search-tree.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/108.convert-sorted-array-to-binary-search-tree.rs:29:69 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn sorted_array_to_bst(nums: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/108.convert-sorted-array-to-binary-search-tree.rs:30:61 [INFO] [stdout] | [INFO] [stdout] 30 | fn branch_out(vals: &Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn branch_out(vals: &Vec) -> Option>> { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/110.balanced-binary-tree.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/110.balanced-binary-tree.rs:29:48 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn is_balanced(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/110.balanced-binary-tree.rs:30:51 [INFO] [stdout] | [INFO] [stdout] 30 | fn measure_branch(node: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn measure_branch(node: Option>>) -> i32 { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/111.minimum-depth-of-binary-tree.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/111.minimum-depth-of-binary-tree.rs:31:46 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn min_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/111.minimum-depth-of-binary-tree.rs:32:55 [INFO] [stdout] | [INFO] [stdout] 32 | fn branch_min_depth(branch: Option>>, shift: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | fn branch_min_depth(branch: Option>>, shift: i32) -> i32 { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/112.path-sum.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/112.path-sum.rs:29:49 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn has_path_sum(root: Option>>, target_sum: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/112.path-sum.rs:30:47 [INFO] [stdout] | [INFO] [stdout] 30 | fn search_sum(node: Option>>, target: i32, sum: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn search_sum(node: Option>>, target: i32, sum: i32) -> bool { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/118.pascals-triangle.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/119.pascals-triangle-ii.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/121.best-time-to-buy-and-sell-stock.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/125.valid-palindrome.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/13.roman-to-integer.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/136.single-number.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/14.longest-common-prefix.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/144.binary-tree-preorder-traversal.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/144.binary-tree-preorder-traversal.rs:29:55 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn preorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/144.binary-tree-preorder-traversal.rs:30:52 [INFO] [stdout] | [INFO] [stdout] 30 | fn traverse_branch(node: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn traverse_branch(node: Option>>) -> Vec { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/145.binary-tree-postorder-traversal.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/145.binary-tree-postorder-traversal.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn postorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/145.binary-tree-postorder-traversal.rs:30:52 [INFO] [stdout] | [INFO] [stdout] 30 | fn traverse_branch(node: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | fn traverse_branch(node: Option>>) -> Vec { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/168.excel-sheet-column-title.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/20.valid-parentheses.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/21.merge-two-sorted-lists.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 27 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ListNode` in this scope [INFO] [stdout] --> src/easy/21.merge-two-sorted-lists.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | mut list1: Option>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 27 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ListNode` in this scope [INFO] [stdout] --> src/easy/21.merge-two-sorted-lists.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | mut list2: Option>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 27 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ListNode` in this scope [INFO] [stdout] --> src/easy/21.merge-two-sorted-lists.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | ) -> Option> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 27 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ListNode` in this scope [INFO] [stdout] --> src/easy/21.merge-two-sorted-lists.rs:32:40 [INFO] [stdout] | [INFO] [stdout] 32 | let mut result: Vec>> = Vec::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 27 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/26.remove-duplicates-from-sorted-array.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/27.remove-element.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/35.search-insert-position.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/58.length-of-last-word.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/66.plus-one.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/67.add-binary.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/69.sqrt-x.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/70.climbing-stairs.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/83.remove-duplicates-from-sorted-list.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ListNode` in this scope [INFO] [stdout] --> src/easy/83.remove-duplicates-from-sorted-list.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn delete_duplicates(mut head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 26 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ListNode` in this scope [INFO] [stdout] --> src/easy/83.remove-duplicates-from-sorted-list.rs:27:77 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn delete_duplicates(mut head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 26 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/88.merge-sorted-array.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/9.palindrome-number.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/easy/94.binary-tree-inorder-traversal.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/94.binary-tree-inorder-traversal.rs:31:54 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn inorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 30 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/94.binary-tree-inorder-traversal.rs:33:37 [INFO] [stdout] | [INFO] [stdout] 33 | node: Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | fn traverse( [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/easy/94.binary-tree-inorder-traversal.rs:34:44 [INFO] [stdout] | [INFO] [stdout] 34 | last_parent: Option>>, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 32 | fn traverse( [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::borrow` [INFO] [stdout] --> src/easy/111.minimum-depth-of-binary-tree.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::borrow; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/easy/83.remove-duplicates-from-sorted-list.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/easy/94.binary-tree-inorder-traversal.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/easy/94.binary-tree-inorder-traversal.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TreeNode` [INFO] [stdout] --> src/easy/108.convert-sorted-array-to-binary-search-tree.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | let mut root = TreeNode::new(vals[middle_index]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `TreeNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ListNode` [INFO] [stdout] --> src/easy/83.remove-duplicates-from-sorted-list.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | let mut new_node = Box::new(ListNode::new(*value)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ListNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/easy/111.minimum-depth-of-binary-tree.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/easy/125.valid-palindrome.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut characters: Vec = s.chars().collect(); [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: variable does not need to be mutable [INFO] [stdout] --> src/easy/13.roman-to-integer.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | for mut index in 0..s.len() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/easy/26.remove-duplicates-from-sorted-array.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | .for_each(|(index, number)| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `root` is never read [INFO] [stdout] --> src/easy/69.sqrt-x.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let mut root: f64 = 0.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 64 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "leetcode") due to 65 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "122f6db5bae169bf16dde67c27876088a2083cc0a74c3c7f85ee50c1b42c65b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "122f6db5bae169bf16dde67c27876088a2083cc0a74c3c7f85ee50c1b42c65b3", kill_on_drop: false }` [INFO] [stdout] 122f6db5bae169bf16dde67c27876088a2083cc0a74c3c7f85ee50c1b42c65b3