[INFO] cloning repository https://github.com/Jaco-Minnaar/1brc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jaco-Minnaar/1brc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJaco-Minnaar%2F1brc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJaco-Minnaar%2F1brc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9e5aeebe747e5add2a4efb1a4bf519f6326d2bfc [INFO] checking Jaco-Minnaar/1brc/9e5aeebe747e5add2a4efb1a4bf519f6326d2bfc against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJaco-Minnaar%2F1brc" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jaco-Minnaar/1brc on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Jaco-Minnaar/1brc [INFO] finished tweaking git repo https://github.com/Jaco-Minnaar/1brc [INFO] tweaked toml for git repo https://github.com/Jaco-Minnaar/1brc written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Jaco-Minnaar/1brc 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdb566478ec71cfbe528e143f6f2882fe0891d4bfe52d08d9951dd2a3d054097 [INFO] running `Command { std: "docker" "start" "-a" "fdb566478ec71cfbe528e143f6f2882fe0891d4bfe52d08d9951dd2a3d054097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdb566478ec71cfbe528e143f6f2882fe0891d4bfe52d08d9951dd2a3d054097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdb566478ec71cfbe528e143f6f2882fe0891d4bfe52d08d9951dd2a3d054097", kill_on_drop: false }` [INFO] [stdout] fdb566478ec71cfbe528e143f6f2882fe0891d4bfe52d08d9951dd2a3d054097 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a719d95e8086a300a738299ca2a35e615a8346a42e50f972b2d660218b590ff6 [INFO] running `Command { std: "docker" "start" "-a" "a719d95e8086a300a738299ca2a35e615a8346a42e50f972b2d660218b590ff6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking kanal v0.1.0-pre8 [INFO] [stderr] Checking blc-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/custom.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, thread}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/custom.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, thread}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before` [INFO] [stdout] --> src/simple.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut before = Instant::now(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longest` [INFO] [stdout] --> src/simple.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut longest = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | fn read(mut reader: BufReader, line_tx: Sender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut before = Instant::now(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut longest = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longest` [INFO] [stdout] --> src/simple.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut longest = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before` [INFO] [stdout] --> src/simple.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut before = Instant::now(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before` [INFO] [stdout] --> src/simple.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut before = Instant::now(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longest` [INFO] [stdout] --> src/simple.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut longest = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | fn read(mut reader: BufReader, line_tx: Sender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut before = Instant::now(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let mut longest = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longest` [INFO] [stdout] --> src/simple.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut longest = 0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `before` [INFO] [stdout] --> src/simple.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut before = Instant::now(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut longest = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut before = Instant::now(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut longest = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simple.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut before = Instant::now(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_single` is never used [INFO] [stdout] --> src/custom.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn custom_single() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CALC_JOBS` is never used [INFO] [stdout] --> src/simple.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CALC_JOBS: usize = 10; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple` is never used [INFO] [stdout] --> src/simple.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn simple() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_BUFFER_SIZE` is never used [INFO] [stdout] --> src/simple.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const LINE_BUFFER_SIZE: usize = 100_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read` is never used [INFO] [stdout] --> src/simple.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn read(mut reader: BufReader, line_tx: Sender) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc` is never used [INFO] [stdout] --> src/simple.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn calc(line_rx: Receiver>, point_tx: Sender>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/simple.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn parse(bytes: &[u8]) -> Option<(f32, [u8; 32])> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sum`, `max`, `min`, and `count` are never read [INFO] [stdout] --> src/tree.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 3 | sum: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | max: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | min: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | count: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/tree.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_state` are never used [INFO] [stdout] --> src/tree.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(name: [u8; 32], value: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn update_state(&mut self, num: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tree` is never constructed [INFO] [stdout] --> src/tree.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `update_node`, `cities`, and `add_children` are never used [INFO] [stdout] --> src/tree.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Tree { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 45 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn update(&mut self, name: [u8; 32], value: f32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn update_node(&mut self, idx: usize, name: [u8; 32], value: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn cities(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn add_children(&self, node: Node, nodes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [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/reader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(file: File, orphan_collector: &OrphanCollector) -> Result { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 51 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 52 | | file, [INFO] [stdout] 53 | | buffer: vec![0; BUFFER_SIZE], [INFO] [stdout] 54 | | buffer_size: BUFFER_SIZE, [INFO] [stdout] ... | [INFO] [stdout] 60 | | current_line: TrackingLine::new(), [INFO] [stdout] 61 | | }) [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/reader.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 136 | let (tx, rx) = kanal::unbounded::<(usize, [Line; 2])>(); [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] 137 | [INFO] [stdout] 138 | let handle = thread::spawn(move || { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 149 | tx: Some(tx), [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] --> src/reader.rs:150:24 [INFO] [stdout] | [INFO] [stdout] 136 | let (tx, rx) = kanal::unbounded::<(usize, [Line; 2])>(); [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] 137 | [INFO] [stdout] 138 | let handle = thread::spawn(move || { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 150 | block_num: Arc::new(AtomicUsize::new(0)), [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 3 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `custom_single` is never used [INFO] [stdout] --> src/custom.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn custom_single() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CALC_JOBS` is never used [INFO] [stdout] --> src/simple.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CALC_JOBS: usize = 10; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple` is never used [INFO] [stdout] --> src/simple.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn simple() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LINE_BUFFER_SIZE` is never used [INFO] [stdout] --> src/simple.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | const LINE_BUFFER_SIZE: usize = 100_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read` is never used [INFO] [stdout] --> src/simple.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn read(mut reader: BufReader, line_tx: Sender) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc` is never used [INFO] [stdout] --> src/simple.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn calc(line_rx: Receiver>, point_tx: Sender>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/simple.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn parse(bytes: &[u8]) -> Option<(f32, [u8; 32])> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sum`, `max`, `min`, and `count` are never read [INFO] [stdout] --> src/tree.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct State { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 3 | sum: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | max: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | min: f32, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | count: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/tree.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_state` are never used [INFO] [stdout] --> src/tree.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(name: [u8; 32], value: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn update_state(&mut self, num: f32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tree` is never constructed [INFO] [stdout] --> src/tree.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Tree { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `update_node`, `cities`, and `add_children` are never used [INFO] [stdout] --> src/tree.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Tree { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 45 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn update(&mut self, name: [u8; 32], value: f32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn update_node(&mut self, idx: usize, name: [u8; 32], value: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn cities(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn add_children(&self, node: Node, nodes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [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/reader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(file: File, orphan_collector: &OrphanCollector) -> Result { [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 51 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 52 | | file, [INFO] [stdout] 53 | | buffer: vec![0; BUFFER_SIZE], [INFO] [stdout] 54 | | buffer_size: BUFFER_SIZE, [INFO] [stdout] ... | [INFO] [stdout] 60 | | current_line: TrackingLine::new(), [INFO] [stdout] 61 | | }) [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/reader.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 136 | let (tx, rx) = kanal::unbounded::<(usize, [Line; 2])>(); [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] 137 | [INFO] [stdout] 138 | let handle = thread::spawn(move || { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 149 | tx: Some(tx), [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] --> src/reader.rs:150:24 [INFO] [stdout] | [INFO] [stdout] 136 | let (tx, rx) = kanal::unbounded::<(usize, [Line; 2])>(); [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] 137 | [INFO] [stdout] 138 | let handle = thread::spawn(move || { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 150 | block_num: Arc::new(AtomicUsize::new(0)), [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 3 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `blc-rs` (bin "blc-rs") due to 4 previous errors; 22 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `blc-rs` (bin "blc-rs" test) due to 4 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a719d95e8086a300a738299ca2a35e615a8346a42e50f972b2d660218b590ff6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a719d95e8086a300a738299ca2a35e615a8346a42e50f972b2d660218b590ff6", kill_on_drop: false }` [INFO] [stdout] a719d95e8086a300a738299ca2a35e615a8346a42e50f972b2d660218b590ff6