[INFO] cloning repository https://github.com/link-a/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/link-a/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flink-a%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flink-a%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5cfe739935d47058eacef6536a5a34cefc528368 [INFO] checking link-a/learning-rust against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flink-a%2Flearning-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/link-a/learning-rust 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/link-a/learning-rust [INFO] finished tweaking git repo https://github.com/link-a/learning-rust [INFO] tweaked toml for git repo https://github.com/link-a/learning-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/link-a/learning-rust 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] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bloom v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] dbb4fac03cd59691e5f08a10db1921c59104233211f2e53101b50321ea2de06b [INFO] running `Command { std: "docker" "start" "-a" "dbb4fac03cd59691e5f08a10db1921c59104233211f2e53101b50321ea2de06b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dbb4fac03cd59691e5f08a10db1921c59104233211f2e53101b50321ea2de06b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbb4fac03cd59691e5f08a10db1921c59104233211f2e53101b50321ea2de06b", kill_on_drop: false }` [INFO] [stdout] dbb4fac03cd59691e5f08a10db1921c59104233211f2e53101b50321ea2de06b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 4f709665598bccca2a9659f5247ef1f969c152c127db5a0c844c8b10016e42d5 [INFO] running `Command { std: "docker" "start" "-a" "4f709665598bccca2a9659f5247ef1f969c152c127db5a0c844c8b10016e42d5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking bit-vec v0.4.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking bloom v0.3.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking ctci v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `min_height` and `min_width_pad` are never read [INFO] [stdout] --> src/bin/comment_block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct CommentBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | min_height: i16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | min_width_pad: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommentBlock` has a derived impl for the trait `Clone`, 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: unused variable: `cell_1` [INFO] [stdout] --> src/bin/unsafe.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let cell_1 = Cell { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/bin/unsafe.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `next` are never read [INFO] [stdout] --> src/bin/unsafe.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DPSolution` is never constructed [INFO] [stdout] --> src/bin/house_robber_ii.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct DPSolution {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `rob_simple` and `rob` are never used [INFO] [stdout] --> src/bin/house_robber_ii.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 4 | impl DPSolution { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 5 | fn rob_simple(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn rob(nums: Vec) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val` is never read [INFO] [stdout] --> src/bin/ownership.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Foo { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 3 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Foo` 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: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 17 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | prev: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Node<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 42 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | next: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | prev: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NaiveSolution` is never constructed [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct NaiveSolution {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_distance` is never used [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl NaiveSolution { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 4 | [INFO] [stdout] 5 | pub fn max_distance(arrays: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FastestSolution` is never constructed [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct FastestSolution {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_distance` is never used [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl FastestSolution { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 25 | [INFO] [stdout] 26 | pub fn max_distance(arrays: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/bin/ref_cells.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/bin/ref_cells.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/linked_list.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | val: T, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | next: NodePtr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | prev: NodePtr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: field `tail` is never read [INFO] [stdout] --> src/bin/linked_list.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct DoublyLinkedList where T: Default + Debug + Copy { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 37 | head: NodePtr, [INFO] [stdout] 38 | tail: NodePtr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/bin/ref_cells.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/bin/ref_cells.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/bin/ref_cells.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val` is never read [INFO] [stdout] --> src/bin/ownership.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Foo { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 3 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Foo` 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: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 17 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | prev: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Node<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 42 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | next: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | prev: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/bin/ref_playground.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `next` are never read [INFO] [stdout] --> src/bin/ref_cells.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 15 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | next: Option>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cell_1` [INFO] [stdout] --> src/bin/unsafe.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let cell_1 = Cell { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/bin/unsafe.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `next` are never read [INFO] [stdout] --> src/bin/unsafe.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/linked_list.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | val: T, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | next: NodePtr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | prev: NodePtr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: field `tail` is never read [INFO] [stdout] --> src/bin/linked_list.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct DoublyLinkedList where T: Default + Debug + Copy { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 37 | head: NodePtr, [INFO] [stdout] 38 | tail: NodePtr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoublyLinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/min_depth_binary_tree.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_depth` is never used [INFO] [stdout] --> src/bin/min_depth_binary_tree.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 27 | pub fn min_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_height` and `min_width_pad` are never read [INFO] [stdout] --> src/bin/comment_block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct CommentBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | min_height: i16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | min_width_pad: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommentBlock` has a derived impl for the trait `Clone`, 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: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/bin/ref_cells.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/bin/ref_cells.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/bin/ref_cells.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/bin/ref_cells.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/bin/ref_cells.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/bin/ref_playground.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let l = &(r.left); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val` is never read [INFO] [stdout] --> src/bin/ref_cells.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 15 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.89s [INFO] running `Command { std: "docker" "inspect" "4f709665598bccca2a9659f5247ef1f969c152c127db5a0c844c8b10016e42d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f709665598bccca2a9659f5247ef1f969c152c127db5a0c844c8b10016e42d5", kill_on_drop: false }` [INFO] [stdout] 4f709665598bccca2a9659f5247ef1f969c152c127db5a0c844c8b10016e42d5 [INFO] checking link-a/learning-rust 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%2Flink-a%2Flearning-rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/link-a/learning-rust 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/link-a/learning-rust [INFO] finished tweaking git repo https://github.com/link-a/learning-rust [INFO] tweaked toml for git repo https://github.com/link-a/learning-rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/link-a/learning-rust 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 05cbcf43dc5ed7eca14030de05b0d7077400996fa9a7407132129534b68a3333 [INFO] running `Command { std: "docker" "start" "-a" "05cbcf43dc5ed7eca14030de05b0d7077400996fa9a7407132129534b68a3333", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05cbcf43dc5ed7eca14030de05b0d7077400996fa9a7407132129534b68a3333", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05cbcf43dc5ed7eca14030de05b0d7077400996fa9a7407132129534b68a3333", kill_on_drop: false }` [INFO] [stdout] 05cbcf43dc5ed7eca14030de05b0d7077400996fa9a7407132129534b68a3333 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 7b7aebada38e69af0d6f2abb42132deb4cefe803c2b2dbdd59e231b70a47b3c6 [INFO] running `Command { std: "docker" "start" "-a" "7b7aebada38e69af0d6f2abb42132deb4cefe803c2b2dbdd59e231b70a47b3c6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking bit-vec v0.4.4 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking bloom v0.3.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking ctci v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/min_depth_binary_tree.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_depth` is never used [INFO] [stdout] --> src/bin/min_depth_binary_tree.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 27 | pub fn min_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_height` and `min_width_pad` are never read [INFO] [stdout] --> src/bin/comment_block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct CommentBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | min_height: i16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | min_width_pad: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommentBlock` has a derived impl for the trait `Clone`, 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_height` and `min_width_pad` are never read [INFO] [stdout] --> src/bin/comment_block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct CommentBlock { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | min_height: i16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | min_width_pad: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommentBlock` has a derived impl for the trait `Clone`, 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: unused variable: `l` [INFO] [stdout] --> src/bin/ref_playground.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let l = &(r.left); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DPSolution` is never constructed [INFO] [stdout] --> src/bin/house_robber_ii.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct DPSolution {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `rob_simple` and `rob` are never used [INFO] [stdout] --> src/bin/house_robber_ii.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 4 | impl DPSolution { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 5 | fn rob_simple(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn rob(nums: Vec) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cell_1` [INFO] [stdout] --> src/bin/unsafe.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let cell_1 = Cell { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/bin/unsafe.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `next` are never read [INFO] [stdout] --> src/bin/unsafe.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cell_1` [INFO] [stdout] --> src/bin/unsafe.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let cell_1 = Cell { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/bin/unsafe.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val` and `next` are never read [INFO] [stdout] --> src/bin/unsafe.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Cell { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val` is never read [INFO] [stdout] --> src/bin/ownership.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Foo { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 3 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Foo` 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: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 17 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | prev: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Node<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 42 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | next: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | prev: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `val` is never read [INFO] [stdout] --> src/bin/ownership.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Foo { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 3 | val: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Foo` 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: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 17 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | next: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | prev: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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 `NaiveSolution` is never constructed [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct NaiveSolution {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_distance` is never used [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl NaiveSolution { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 4 | [INFO] [stdout] 5 | pub fn max_distance(arrays: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FastestSolution` is never constructed [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct FastestSolution {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `max_distance` is never used [INFO] [stdout] --> src/bin/max_distance_in_arrays.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl FastestSolution { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 25 | [INFO] [stdout] 26 | pub fn max_distance(arrays: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/ownership.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Node<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 42 | val: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | next: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | prev: Option<&'a Box>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val`, `next`, and `prev` are never read [INFO] [stdout] --> src/bin/linked_list.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | val: T, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | next: NodePtr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | prev: NodePtr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: field `tail` is never read [INFO] [stdout] --> src/bin/linked_list.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct DoublyLinkedList where T: Default + Debug + Copy { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 37 | head: NodePtr, [INFO] [stdout] 38 | tail: NodePtr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DoublyLinkedList` 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] --> src/bin/linked_list.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(val: T) -> Node { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 18 | next: 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] = 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] --> src/bin/linked_list.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(val: T) -> Node { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 19 | prev: 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: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ctci` (bin "linked_list") due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/bin/ref_playground.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7b7aebada38e69af0d6f2abb42132deb4cefe803c2b2dbdd59e231b70a47b3c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b7aebada38e69af0d6f2abb42132deb4cefe803c2b2dbdd59e231b70a47b3c6", kill_on_drop: false }` [INFO] [stdout] 7b7aebada38e69af0d6f2abb42132deb4cefe803c2b2dbdd59e231b70a47b3c6