[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#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tolumide-ng/coding-challenge on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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-4-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f6c5f95f846c4dc71d5c2384da1f0bcfe43c6cd3cfe4b21f32f569b3cd48e631 [INFO] running `Command { std: "docker" "start" "-a" "f6c5f95f846c4dc71d5c2384da1f0bcfe43c6cd3cfe4b21f32f569b3cd48e631", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6c5f95f846c4dc71d5c2384da1f0bcfe43c6cd3cfe4b21f32f569b3cd48e631", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6c5f95f846c4dc71d5c2384da1f0bcfe43c6cd3cfe4b21f32f569b3cd48e631", kill_on_drop: false }` [INFO] [stdout] f6c5f95f846c4dc71d5c2384da1f0bcfe43c6cd3cfe4b21f32f569b3cd48e631 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6169056f476ae8376ce5e1ee1013ed8ca9ada08c89db7361ca37852364fe1fd1 [INFO] running `Command { std: "docker" "start" "-a" "6169056f476ae8376ce5e1ee1013ed8ca9ada08c89db7361ca37852364fe1fd1", 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: fields `memo`, `aggregator`, and `target` are never read [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/all_construct.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | struct AllConstructs { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 14 | dic: Vec<&'static str>, [INFO] [stdout] 15 | memo: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | aggregator: ReturnType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AllConstructs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `memo`, `aggregator`, and `target` are never read [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/all_construct.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | struct AllConstructs { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 14 | dic: Vec<&'static str>, [INFO] [stdout] 15 | memo: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | aggregator: ReturnType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AllConstructs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/recursion/create_bst.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut parent_node = queue.get_mut(0).unwrap(); [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: `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: field `realistic_size` is never read [INFO] [stdout] --> data_structures/src/binary_tree/priority_queue.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct BinaryHeap { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | realistic_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryHeap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> data_structures/src/queues_stacks/inorder_traversal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Traversal { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | stack: Vec>>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Traversal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `deadlocks`, `target`, and `expected` are never read [INFO] [stdout] --> data_structures/src/queues_stacks/open_the_lock.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Handler { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 95 | deadlocks: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 96 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 97 | expected: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Handler` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parenthesis` is never constructed [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Parenthesis {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `generate_parenthesis` and `backtrack` are never used [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Parenthesis { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 3 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn backtrack( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache` and `n` are never read [INFO] [stdout] --> data_structures/src/recursion/unique_binary_tree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct UniqueBst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | // since constraint already state that n is 1 <= n <= 8, we can caceh a 2,3 tree as either 23 or 32 [INFO] [stdout] 27 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | n: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `UniqueBst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking others v0.1.0 (/opt/rustwide/workdir/others) [INFO] [stdout] warning: function `histogram_brute_force` is never used [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 `calculate_area` is never used [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 `histogram_stack_approach` is never used [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: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/recursion/create_bst.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut parent_node = queue.get_mut(0).unwrap(); [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: `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: field `realistic_size` is never read [INFO] [stdout] --> data_structures/src/binary_tree/priority_queue.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct BinaryHeap { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | realistic_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryHeap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> data_structures/src/queues_stacks/inorder_traversal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Traversal { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | stack: Vec>>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Traversal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache` and `n` are never read [INFO] [stdout] --> data_structures/src/recursion/unique_binary_tree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct UniqueBst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | // since constraint already state that n is 1 <= n <= 8, we can caceh a 2,3 tree as either 23 or 32 [INFO] [stdout] 27 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | n: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `UniqueBst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/recursion/create_bst.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut parent_node = queue.get_mut(0).unwrap(); [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: `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: field `realistic_size` is never read [INFO] [stdout] --> data_structures/src/binary_tree/priority_queue.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct BinaryHeap { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | realistic_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryHeap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> data_structures/src/queues_stacks/inorder_traversal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Traversal { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | stack: Vec>>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Traversal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `deadlocks`, `target`, and `expected` are never read [INFO] [stdout] --> data_structures/src/queues_stacks/open_the_lock.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Handler { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 95 | deadlocks: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 96 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 97 | expected: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Handler` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parenthesis` is never constructed [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Parenthesis {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `generate_parenthesis` and `backtrack` are never used [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Parenthesis { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 3 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn backtrack( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache` and `n` are never read [INFO] [stdout] --> data_structures/src/recursion/unique_binary_tree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct UniqueBst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | // since constraint already state that n is 1 <= n <= 8, we can caceh a 2,3 tree as either 23 or 32 [INFO] [stdout] 27 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | n: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `UniqueBst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/recursion/create_bst.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut parent_node = queue.get_mut(0).unwrap(); [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: `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: field `realistic_size` is never read [INFO] [stdout] --> data_structures/src/binary_tree/priority_queue.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct BinaryHeap { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | realistic_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryHeap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> data_structures/src/queues_stacks/inorder_traversal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Traversal { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | stack: Vec>>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Traversal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache` and `n` are never read [INFO] [stdout] --> data_structures/src/recursion/unique_binary_tree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct UniqueBst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | // since constraint already state that n is 1 <= n <= 8, we can caceh a 2,3 tree as either 23 or 32 [INFO] [stdout] 27 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | n: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `UniqueBst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.21s [INFO] running `Command { std: "docker" "inspect" "6169056f476ae8376ce5e1ee1013ed8ca9ada08c89db7361ca37852364fe1fd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6169056f476ae8376ce5e1ee1013ed8ca9ada08c89db7361ca37852364fe1fd1", kill_on_drop: false }` [INFO] [stdout] 6169056f476ae8376ce5e1ee1013ed8ca9ada08c89db7361ca37852364fe1fd1 [INFO] checking tolumide-ng/coding-challenge against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Fcoding-challenge" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tolumide-ng/coding-challenge on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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-4-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb111b7b3c3d63db94df9b9e2176ac8e359438aa0fb2b8c9935bcbb6f0b9880e [INFO] running `Command { std: "docker" "start" "-a" "fb111b7b3c3d63db94df9b9e2176ac8e359438aa0fb2b8c9935bcbb6f0b9880e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb111b7b3c3d63db94df9b9e2176ac8e359438aa0fb2b8c9935bcbb6f0b9880e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb111b7b3c3d63db94df9b9e2176ac8e359438aa0fb2b8c9935bcbb6f0b9880e", kill_on_drop: false }` [INFO] [stdout] fb111b7b3c3d63db94df9b9e2176ac8e359438aa0fb2b8c9935bcbb6f0b9880e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de83e1f5674219d171fa82142e34717cfbbf0eb37fb3105398098d25114a3cb8 [INFO] running `Command { std: "docker" "start" "-a" "de83e1f5674219d171fa82142e34717cfbbf0eb37fb3105398098d25114a3cb8", 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: fields `memo`, `aggregator`, and `target` are never read [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/all_construct.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | struct AllConstructs { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 14 | dic: Vec<&'static str>, [INFO] [stdout] 15 | memo: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | aggregator: ReturnType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AllConstructs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `memo`, `aggregator`, and `target` are never read [INFO] [stdout] --> dynamic_pg/src/dynamic_programming/all_construct.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | struct AllConstructs { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 14 | dic: Vec<&'static str>, [INFO] [stdout] 15 | memo: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | aggregator: ReturnType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AllConstructs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/recursion/create_bst.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut parent_node = queue.get_mut(0).unwrap(); [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: `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: field `realistic_size` is never read [INFO] [stdout] --> data_structures/src/binary_tree/priority_queue.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct BinaryHeap { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | realistic_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryHeap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> data_structures/src/queues_stacks/inorder_traversal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Traversal { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | stack: Vec>>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Traversal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `deadlocks`, `target`, and `expected` are never read [INFO] [stdout] --> data_structures/src/queues_stacks/open_the_lock.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Handler { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 95 | deadlocks: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 96 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 97 | expected: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Handler` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parenthesis` is never constructed [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Parenthesis {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `generate_parenthesis` and `backtrack` are never used [INFO] [stdout] --> data_structures/src/recursion/generate_parenthesis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 2 | impl Parenthesis { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 3 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn backtrack( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache` and `n` are never read [INFO] [stdout] --> data_structures/src/recursion/unique_binary_tree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct UniqueBst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | // since constraint already state that n is 1 <= n <= 8, we can caceh a 2,3 tree as either 23 or 32 [INFO] [stdout] 27 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | n: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `UniqueBst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/dnode.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(data: T) -> DNodeRef { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | Rc::new(RefCell::new(DNode { [INFO] [stdout] | _________________^ [INFO] [stdout] 23 | | data, [INFO] [stdout] 24 | | next: None, [INFO] [stdout] 25 | | prev: None, [INFO] [stdout] 26 | | })) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | let new_node = DNode::new(data); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 28 | head: Some(Rc::clone(&new_node)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | let new_node = DNode::new(data); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 29 | tail: Some(Rc::clone(&new_node)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 24 | let new_head = Node::new(text); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | head: Some(new_head), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 24 | let new_head = Node::new(text); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 28 | tail: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 85 | self.head.take().map(|old_head| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 98 | old_head.borrow().data.clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 103 | self.tail.take().map(|old_tail| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 104 | let mut iterator = self.iter_node(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 105 | let mut temp = iterator.next(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 122 | old_tail.borrow().data.clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/recursion/merge_two_sorted_lists.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn merge_approach_two(l1: Node, l2: Node) -> Node { [INFO] [stdout] | -------- -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | match (l1, l2) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `data_structures` (lib) due to 9 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> data_structures/src/recursion/create_bst.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let mut parent_node = queue.get_mut(0).unwrap(); [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: `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: field `realistic_size` is never read [INFO] [stdout] --> data_structures/src/binary_tree/priority_queue.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct BinaryHeap { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | realistic_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryHeap` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> data_structures/src/queues_stacks/inorder_traversal.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Traversal { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | stack: Vec>>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Traversal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cache` and `n` are never read [INFO] [stdout] --> data_structures/src/recursion/unique_binary_tree.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct UniqueBst { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | // since constraint already state that n is 1 <= n <= 8, we can caceh a 2,3 tree as either 23 or 32 [INFO] [stdout] 27 | cache: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | n: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `UniqueBst` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/dnode.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(data: T) -> DNodeRef { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | Rc::new(RefCell::new(DNode { [INFO] [stdout] | _________________^ [INFO] [stdout] 23 | | data, [INFO] [stdout] 24 | | next: None, [INFO] [stdout] 25 | | prev: None, [INFO] [stdout] 26 | | })) [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | let new_node = DNode::new(data); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 28 | head: Some(Rc::clone(&new_node)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/doubly_linked_list.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(data: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 25 | let new_node = DNode::new(data); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 29 | tail: Some(Rc::clone(&new_node)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 24 | let new_head = Node::new(text); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | head: Some(new_head), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 24 | let new_head = Node::new(text); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 28 | tail: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 85 | self.head.take().map(|old_head| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 98 | old_head.borrow().data.clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 103 | self.tail.take().map(|old_tail| { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 104 | let mut iterator = self.iter_node(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 105 | let mut temp = iterator.next(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 122 | old_tail.borrow().data.clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 131 | let list = LinkedList::new_empty(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 135 | / LinkedList { [INFO] [stdout] 136 | | head: None, [INFO] [stdout] 137 | | tail: None, [INFO] [stdout] 138 | | length: 0 [INFO] [stdout] 139 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/linked_rcs.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 147 | let list = LinkedList::new("node_1".to_string()); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 151 | / LinkedList { [INFO] [stdout] 152 | | head: Some(Node::new("node_1".to_string())), [INFO] [stdout] 153 | | tail: None, [INFO] [stdout] 154 | | length: 1 [INFO] [stdout] 155 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/linked_lists/node.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 32 | let node = Node::new("node_1".to_string()); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 36 | / Rc::new(RefCell::new(Node { [INFO] [stdout] 37 | | data: "node_1".to_string(), [INFO] [stdout] 38 | | next: None [INFO] [stdout] 39 | | })) [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> data_structures/src/recursion/merge_two_sorted_lists.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn merge_approach_two(l1: Node, l2: Node) -> Node { [INFO] [stdout] | -------- -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | match (l1, l2) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `data_structures` (lib test) due to 12 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "de83e1f5674219d171fa82142e34717cfbbf0eb37fb3105398098d25114a3cb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de83e1f5674219d171fa82142e34717cfbbf0eb37fb3105398098d25114a3cb8", kill_on_drop: false }` [INFO] [stdout] de83e1f5674219d171fa82142e34717cfbbf0eb37fb3105398098d25114a3cb8