[INFO] cloning repository https://github.com/Squirre17/rust-algo-impl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Squirre17/rust-algo-impl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSquirre17%2Frust-algo-impl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSquirre17%2Frust-algo-impl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3584c160bba38b1ef19111545a27fa4ebeec6dc [INFO] checking Squirre17/rust-algo-impl/d3584c160bba38b1ef19111545a27fa4ebeec6dc 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%2FSquirre17%2Frust-algo-impl" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Squirre17/rust-algo-impl 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/Squirre17/rust-algo-impl [INFO] finished tweaking git repo https://github.com/Squirre17/rust-algo-impl [INFO] tweaked toml for git repo https://github.com/Squirre17/rust-algo-impl written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Squirre17/rust-algo-impl 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 6fee327c5eb9d85fb7bd701d110cdf6fcc10895ce5c7a9f9fa1456175f26238c [INFO] running `Command { std: "docker" "start" "-a" "6fee327c5eb9d85fb7bd701d110cdf6fcc10895ce5c7a9f9fa1456175f26238c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6fee327c5eb9d85fb7bd701d110cdf6fcc10895ce5c7a9f9fa1456175f26238c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fee327c5eb9d85fb7bd701d110cdf6fcc10895ce5c7a9f9fa1456175f26238c", kill_on_drop: false }` [INFO] [stdout] 6fee327c5eb9d85fb7bd701d110cdf6fcc10895ce5c7a9f9fa1456175f26238c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] bf78489aae331ce58b8c83e0a6e9019a68ffccc416ea8e6e9f0a457520bf8c5a [INFO] running `Command { std: "docker" "start" "-a" "bf78489aae331ce58b8c83e0a6e9019a68ffccc416ea8e6e9f0a457520bf8c5a", kill_on_drop: false }` [INFO] [stderr] Checking rust_algo_coll v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/link_list/node.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/link_list/mod.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/tree/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/tree/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/tree/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/tree/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `year_registered`, and `username` are never read [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | year_registered: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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: struct `LinkedList` is never constructed [INFO] [stdout] --> src/link_list/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct LinkedList{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_end`, `push_front`, `pop_front`, `traverse`, and `gen_arr` are never used [INFO] [stdout] --> src/link_list/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl LinkedList { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(data : i32) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn push_end(&mut self, elem : i32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn push_front(&mut self, elem : i32){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn pop_front(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn traverse(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn gen_arr(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/link_list/node.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(data : i32) -> NodeRef { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/link_list/node.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl LinkListIter { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new(start : NodeOpt) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TnRef` is never used [INFO] [stdout] --> src/tree/node.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type TnRef = Rc>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TnWeak` is never used [INFO] [stdout] --> src/tree/node.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type TnWeak = Weak>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> src/tree/node.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_child`, and `pprint` are never used [INFO] [stdout] --> src/tree/node.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl TreeNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(value : Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn add_child(&mut self, node : &TnRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn pprint(&self) -> String { [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/link_list/mod.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 18 | let node = Node::new(data); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | LinkedList { [INFO] [stdout] 20 | head : Some(Rc::clone(&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] = 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/link_list/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 18 | let node = Node::new(data); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | tail : Some(Rc::clone(&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] --> src/tree/node.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | ... .map(|tn| tn.deref().borrow().pprint()) [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; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `year_registered`, and `username` are never read [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | year_registered: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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 `length` is never read [INFO] [stdout] --> src/link_list/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | struct LinkedList{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub length : usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LinkedList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `traverse` is never used [INFO] [stdout] --> src/link_list/mod.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl LinkedList { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn traverse(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parent` is never read [INFO] [stdout] --> src/tree/node.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 14 | struct TreeNode { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub parent : Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TreeNode` 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/link_list/mod.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 18 | let node = Node::new(data); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | LinkedList { [INFO] [stdout] 20 | head : Some(Rc::clone(&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] = 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/link_list/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 18 | let node = Node::new(data); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 21 | tail : Some(Rc::clone(&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] --> src/tree/node.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | ... .map(|tn| tn.deref().borrow().pprint()) [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; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_algo_coll` (bin "rust_algo_coll") due to 4 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_algo_coll` (bin "rust_algo_coll" test) due to 4 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bf78489aae331ce58b8c83e0a6e9019a68ffccc416ea8e6e9f0a457520bf8c5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf78489aae331ce58b8c83e0a6e9019a68ffccc416ea8e6e9f0a457520bf8c5a", kill_on_drop: false }` [INFO] [stdout] bf78489aae331ce58b8c83e0a6e9019a68ffccc416ea8e6e9f0a457520bf8c5a