[INFO] cloning repository https://github.com/tolumide-ng/coding-challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tolumide-ng/coding-challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f086f2c577d12dfbcf99f99bba55dae91f64d928 [INFO] checking tolumide-ng/coding-challenge against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tolumide-ng/coding-challenge on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tolumide-ng/coding-challenge [INFO] finished tweaking git repo https://github.com/tolumide-ng/coding-challenge [INFO] tweaked toml for git repo https://github.com/tolumide-ng/coding-challenge written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/tolumide-ng/coding-challenge already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f01b98ba37770692356290c3de7b5765bd609b1263d74deeeae3069c0aa221db [INFO] running `Command { std: "docker" "start" "-a" "f01b98ba37770692356290c3de7b5765bd609b1263d74deeeae3069c0aa221db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f01b98ba37770692356290c3de7b5765bd609b1263d74deeeae3069c0aa221db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f01b98ba37770692356290c3de7b5765bd609b1263d74deeeae3069c0aa221db", kill_on_drop: false }` [INFO] [stdout] f01b98ba37770692356290c3de7b5765bd609b1263d74deeeae3069c0aa221db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c74284c36ba11449978d6134763239e5c7cc48f062318cf095cbf8c2470b208 [INFO] running `Command { std: "docker" "start" "-a" "8c74284c36ba11449978d6134763239e5c7cc48f062318cf095cbf8c2470b208", kill_on_drop: false }` [INFO] [stderr] Checking data_structures v0.1.0 (/opt/rustwide/workdir/data_structures) [INFO] [stderr] Checking dynamic_pg v0.1.0 (/opt/rustwide/workdir/dynamic_pg) [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | (Some(pn), None) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | (None, Some(qn)) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_qn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | (Some(pn), None) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | (None, Some(qn)) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_qn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 83 | let last = &store[store.len() -1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 86 | store.push(Building::new(last.end, last.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 32 | let prev = &store[store.len() - 1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 62 | store.push(Building::new(prev.end, prev.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Parenthesis` [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Parenthesis {} [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: `generate_parenthesis` [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backtrack` [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn backtrack( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking others v0.1.0 (/opt/rustwide/workdir/others) [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 83 | let last = &store[store.len() -1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 86 | store.push(Building::new(last.end, last.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 32 | let prev = &store[store.len() - 1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 62 | store.push(Building::new(prev.end, prev.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `histogram_brute_force` [INFO] [stdout] --> others/src/the_algos/largest_rectangle_histogram.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn histogram_brute_force(heights: 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: `calculate_area` [INFO] [stdout] --> others/src/the_algos/largest_rectangle_histogram.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn calculate_area( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `histogram_stack_approach` [INFO] [stdout] --> others/src/the_algos/largest_rectangle_histogram.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn histogram_stack_approach(heights: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | (Some(pn), None) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | (None, Some(qn)) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_qn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 83 | let last = &store[store.len() -1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 86 | store.push(Building::new(last.end, last.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 32 | let prev = &store[store.len() - 1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 62 | store.push(Building::new(prev.end, prev.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Parenthesis` [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Parenthesis {} [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: `generate_parenthesis` [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backtrack` [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn backtrack( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | (Some(pn), None) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qn` [INFO] [stdout] --> data_structures/src/recursion/same_tree.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | (None, Some(qn)) => false, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_qn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 83 | let last = &store[store.len() -1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 86 | store.push(Building::new(last.end, last.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `store` as mutable because it is also borrowed as immutable [INFO] [stdout] --> data_structures/src/recursion/skyline_problem.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 32 | let prev = &store[store.len() - 1]; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 62 | store.push(Building::new(prev.end, prev.end, 0)); [INFO] [stdout] | ^^^^^ -------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.60s [INFO] running `Command { std: "docker" "inspect" "8c74284c36ba11449978d6134763239e5c7cc48f062318cf095cbf8c2470b208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c74284c36ba11449978d6134763239e5c7cc48f062318cf095cbf8c2470b208", kill_on_drop: false }` [INFO] [stdout] 8c74284c36ba11449978d6134763239e5c7cc48f062318cf095cbf8c2470b208