[INFO] cloning repository https://github.com/Theliraan/RustTutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Theliraan/RustTutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheliraan%2FRustTutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheliraan%2FRustTutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0434c888756d78b764dcb7cb6ccf55864b0564e5 [INFO] checking Theliraan/RustTutorial/0434c888756d78b764dcb7cb6ccf55864b0564e5 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%2FTheliraan%2FRustTutorial" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Theliraan/RustTutorial 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/Theliraan/RustTutorial [INFO] finished tweaking git repo https://github.com/Theliraan/RustTutorial [INFO] tweaked toml for git repo https://github.com/Theliraan/RustTutorial written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Theliraan/RustTutorial 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ba6311c9451c0183ca6fd789b21464bd0336e07be0c82283ee20098d92928ad7 [INFO] running `Command { std: "docker" "start" "-a" "ba6311c9451c0183ca6fd789b21464bd0336e07be0c82283ee20098d92928ad7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba6311c9451c0183ca6fd789b21464bd0336e07be0c82283ee20098d92928ad7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba6311c9451c0183ca6fd789b21464bd0336e07be0c82283ee20098d92928ad7", kill_on_drop: false }` [INFO] [stdout] ba6311c9451c0183ca6fd789b21464bd0336e07be0c82283ee20098d92928ad7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 72adc30ffb50fdbc6f4915c2645596107c6de98efcbc120d0ffb6348ac88fe33 [INFO] running `Command { std: "docker" "start" "-a" "72adc30ffb50fdbc6f4915c2645596107c6de98efcbc120d0ffb6348ac88fe33", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hello_world v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/stack_and_heap.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #![warn(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/stack_and_heap.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #![warn(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/pattern_matching.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | z @ 9..=11 => "lots of", // you can use 'z' :) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #![warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let day = if temperature > 20 { "sunny" } else { "cloudy" }; // almost ternary [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1173:9 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int2` [INFO] [stdout] --> src/main.rs:1176:9 [INFO] [stdout] | [INFO] [stdout] 1176 | let int2 = int1; // copy value [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int3` [INFO] [stdout] --> src/main.rs:1178:9 [INFO] [stdout] | [INFO] [stdout] 1178 | let int3 = Box::new(1); // value in heap [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1186:9 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1173:16 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1186:16 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tesla` [INFO] [stdout] --> src/main.rs:1235:9 [INFO] [stdout] | [INFO] [stdout] 1235 | let tesla = Company { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tesla` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `john_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1240:13 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_john_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `john_name` is never read [INFO] [stdout] --> src/main.rs:1245:9 [INFO] [stdout] | [INFO] [stdout] 1245 | john_name = john.get_ref_name(); // lifetime elision might happens without <'lifetime> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1240:9 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [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: `rand_float` [INFO] [stdout] --> src/main.rs:1538:9 [INFO] [stdout] | [INFO] [stdout] 1538 | let rand_float: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_bool` [INFO] [stdout] --> src/main.rs:1539:9 [INFO] [stdout] | [INFO] [stdout] 1539 | let rand_bool: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_bool` [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/main.rs:965:21 [INFO] [stdout] | [INFO] [stdout] 963 | fn add(self, rhs: Self) -> Self::Output { [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] 964 | Complex { [INFO] [stdout] 965 | re: self.re + rhs.re, [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/main.rs:966:21 [INFO] [stdout] | [INFO] [stdout] 963 | fn add(self, rhs: Self) -> Self::Output { [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] ... [INFO] [stdout] 966 | im: self.im + rhs.im, [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/main.rs:1009:21 [INFO] [stdout] | [INFO] [stdout] 1007 | fn neg(self) -> Self::Output { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 1008 | Complex { [INFO] [stdout] 1009 | re: -self.re, [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/main.rs:1010:21 [INFO] [stdout] | [INFO] [stdout] 1007 | fn neg(self) -> Self::Output { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1010 | im: -self.im, [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] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/pattern_matching.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | z @ 9..=11 => "lots of", // you can use 'z' :) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #![warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1532:5 [INFO] [stdout] | [INFO] [stdout] 1532 | handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1532 | let _ = handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let day = if temperature > 20 { "sunny" } else { "cloudy" }; // almost ternary [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_world` (bin "hello_world") due to 5 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1173:9 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int2` [INFO] [stdout] --> src/main.rs:1176:9 [INFO] [stdout] | [INFO] [stdout] 1176 | let int2 = int1; // copy value [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int3` [INFO] [stdout] --> src/main.rs:1178:9 [INFO] [stdout] | [INFO] [stdout] 1178 | let int3 = Box::new(1); // value in heap [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1186:9 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1173:16 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1186:16 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tesla` [INFO] [stdout] --> src/main.rs:1235:9 [INFO] [stdout] | [INFO] [stdout] 1235 | let tesla = Company { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tesla` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `john_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1240:13 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_john_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `john_name` is never read [INFO] [stdout] --> src/main.rs:1245:9 [INFO] [stdout] | [INFO] [stdout] 1245 | john_name = john.get_ref_name(); // lifetime elision might happens without <'lifetime> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1240:9 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [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: `rand_float` [INFO] [stdout] --> src/main.rs:1538:9 [INFO] [stdout] | [INFO] [stdout] 1538 | let rand_float: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_bool` [INFO] [stdout] --> src/main.rs:1539:9 [INFO] [stdout] | [INFO] [stdout] 1539 | let rand_bool: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_bool` [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/main.rs:965:21 [INFO] [stdout] | [INFO] [stdout] 963 | fn add(self, rhs: Self) -> Self::Output { [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] 964 | Complex { [INFO] [stdout] 965 | re: self.re + rhs.re, [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/main.rs:966:21 [INFO] [stdout] | [INFO] [stdout] 963 | fn add(self, rhs: Self) -> Self::Output { [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] ... [INFO] [stdout] 966 | im: self.im + rhs.im, [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/main.rs:1009:21 [INFO] [stdout] | [INFO] [stdout] 1007 | fn neg(self) -> Self::Output { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 1008 | Complex { [INFO] [stdout] 1009 | re: -self.re, [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/main.rs:1010:21 [INFO] [stdout] | [INFO] [stdout] 1007 | fn neg(self) -> Self::Output { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1010 | im: -self.im, [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] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1532:5 [INFO] [stdout] | [INFO] [stdout] 1532 | handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1532 | let _ = handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_world` (bin "hello_world" test) due to 5 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "72adc30ffb50fdbc6f4915c2645596107c6de98efcbc120d0ffb6348ac88fe33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72adc30ffb50fdbc6f4915c2645596107c6de98efcbc120d0ffb6348ac88fe33", kill_on_drop: false }` [INFO] [stdout] 72adc30ffb50fdbc6f4915c2645596107c6de98efcbc120d0ffb6348ac88fe33