[INFO] cloning repository https://github.com/hatf0/leetcode-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hatf0/leetcode-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhatf0%2Fleetcode-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhatf0%2Fleetcode-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d679a539ef7fa5af3f1f5815daff40ff5876e184 [INFO] checking hatf0/leetcode-rs against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhatf0%2Fleetcode-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hatf0/leetcode-rs [INFO] finished tweaking git repo https://github.com/hatf0/leetcode-rs [INFO] tweaked toml for git repo https://github.com/hatf0/leetcode-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hatf0/leetcode-rs on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hatf0/leetcode-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded either v1.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a199d1b7b559ac659e6c2e490f611218d76b5cdc5f1e0be61fb63442948b8c8f [INFO] running `Command { std: "docker" "start" "-a" "a199d1b7b559ac659e6c2e490f611218d76b5cdc5f1e0be61fb63442948b8c8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a199d1b7b559ac659e6c2e490f611218d76b5cdc5f1e0be61fb63442948b8c8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a199d1b7b559ac659e6c2e490f611218d76b5cdc5f1e0be61fb63442948b8c8f", kill_on_drop: false }` [INFO] [stdout] a199d1b7b559ac659e6c2e490f611218d76b5cdc5f1e0be61fb63442948b8c8f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 79311abbbdb873e147951735b6f5bf62988d7cdacd500fee291d002e1c2107cb [INFO] running `Command { std: "docker" "start" "-a" "79311abbbdb873e147951735b6f5bf62988d7cdacd500fee291d002e1c2107cb", kill_on_drop: false }` [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/_0006_zig_zag_conversion.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/_0006_zig_zag_conversion.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/_0235_lowest_common_ancestor.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | let tree_ref = RefCell::borrow(Rc::clone(&tree)); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^ expected `&RefCell<_>`, found `Rc>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&RefCell<_>` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/cell.rs:988:18 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 27 | let tree_ref = RefCell::borrow(&Rc::clone(&tree)); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/_0235_lowest_common_ancestor.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | let tree_ref = RefCell::borrow(Rc::clone(&tree)); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^ expected `&RefCell<_>`, found `Rc>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&RefCell<_>` [INFO] [stdout] found struct `Rc>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/cell.rs:988:18 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 27 | let tree_ref = RefCell::borrow(&Rc::clone(&tree)); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/_0002_add_two_numbers.rs:108:11 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0 .. diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/_0002_add_two_numbers.rs:113:11 [INFO] [stdout] | [INFO] [stdout] 113 | for i in 0 .. diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/_0002_add_two_numbers.rs:108:11 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0 .. diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/_0002_add_two_numbers.rs:113:11 [INFO] [stdout] | [INFO] [stdout] 113 | for i in 0 .. diff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_match_state` [INFO] [stdout] --> src/_0010_regex_matching.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let get_match_state = |match_state: &Vec, row: usize, col: usize| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_match_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `get_match_state` [INFO] [stdout] --> src/_0010_regex_matching.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let get_match_state = |match_state: &Vec, row: usize, col: usize| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_get_match_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_match_state` [INFO] [stdout] --> src/_0010_regex_matching.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let set_match_state = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_match_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set_match_state` [INFO] [stdout] --> src/_0010_regex_matching.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let set_match_state = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_set_match_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/_0012_integer_to_roman.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | for i in 0 .. (num / (10_i32.pow(3))) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_sums_set` [INFO] [stdout] --> src/_0015_three_sum.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut index_sums_set : BTreeSet = BTreeSet::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_sums_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/_0012_integer_to_roman.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | for i in 0 .. (num / (10_i32.pow(3))) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/_0015_three_sum.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut index_sums_set : BTreeSet = BTreeSet::new(); [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: unused variable: `index_sums_set` [INFO] [stdout] --> src/_0015_three_sum.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut index_sums_set : BTreeSet = BTreeSet::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_sums_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/_0015_three_sum.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut index_sums_set : BTreeSet = BTreeSet::new(); [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: unused variable: `empty` [INFO] [stdout] --> src/_0015_three_sum.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let empty: Vec> = Vec::default(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (lib) due to 1 previous error; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (lib test) due to 1 previous error; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "79311abbbdb873e147951735b6f5bf62988d7cdacd500fee291d002e1c2107cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79311abbbdb873e147951735b6f5bf62988d7cdacd500fee291d002e1c2107cb", kill_on_drop: false }` [INFO] [stdout] 79311abbbdb873e147951735b6f5bf62988d7cdacd500fee291d002e1c2107cb