[INFO] cloning repository https://github.com/Aiden01/vm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Aiden01/vm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAiden01%2Fvm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAiden01%2Fvm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e395ce50e9c58ad680b217bf526259193cb9519a [INFO] checking Aiden01/vm/e395ce50e9c58ad680b217bf526259193cb9519a 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%2FAiden01%2Fvm" "/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/Aiden01/vm 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/Aiden01/vm [INFO] finished tweaking git repo https://github.com/Aiden01/vm [INFO] tweaked toml for git repo https://github.com/Aiden01/vm written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Aiden01/vm 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] ed89edf29521b8e697175bd52d141f2eda01b4219b8b962519421e3ff70b42d8 [INFO] running `Command { std: "docker" "start" "-a" "ed89edf29521b8e697175bd52d141f2eda01b4219b8b962519421e3ff70b42d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed89edf29521b8e697175bd52d141f2eda01b4219b8b962519421e3ff70b42d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed89edf29521b8e697175bd52d141f2eda01b4219b8b962519421e3ff70b42d8", kill_on_drop: false }` [INFO] [stdout] ed89edf29521b8e697175bd52d141f2eda01b4219b8b962519421e3ff70b42d8 [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] 1dcb25a3a6d0f9109a6f2ab64dcf333264fe77bee0bbb5becaa4ea3112403556 [INFO] running `Command { std: "docker" "start" "-a" "1dcb25a3a6d0f9109a6f2ab64dcf333264fe77bee0bbb5becaa4ea3112403556", kill_on_drop: false }` [INFO] [stderr] Checking vm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variants `Jump`, `JumpIfFalse`, `Store`, `Load`, and `BuildList` are never constructed [INFO] [stdout] --> src/instruction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Instr<'a> { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 5 | Jump(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | JumpIfFalse(usize), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | Store(&'a str), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Load(&'a str), [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | BuildList(usize), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instr` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sub`, `Mult`, and `Div` are never constructed [INFO] [stdout] --> src/instruction.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Binary { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 17 | Add, [INFO] [stdout] 18 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | Mult, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | Div, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Binary` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ret_addr` is never read [INFO] [stdout] --> src/stack.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Frame<'a, T> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 7 | pub ret_addr: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Frame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push2` and `ret` are never used [INFO] [stdout] --> src/stack.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a, T: Clone> Stack<'a, T> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn push2(&mut self, data: (T, T)) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn ret(&mut self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String` and `Bool` are never constructed [INFO] [stdout] --> src/value.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Value<'a> { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | String(&'a str), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vm.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | NotInScope(&'a str), [INFO] [stdout] | ---------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 | NotInScope(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vm.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | MismatchedType(&'a str), [INFO] [stdout] | -------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 | MismatchedType(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ret` is never used [INFO] [stdout] --> src/vm.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> Vm<'a> { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | fn ret(&mut self) -> VmResult<'a, ()> { [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/stack.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 57 | let a = self.pop()?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 58 | let b = self.pop()?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 59 | Some((a, b)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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: aborting due to 1 previous error; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Jump`, `JumpIfFalse`, `Store`, `Load`, and `BuildList` are never constructed [INFO] [stdout] --> src/instruction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Instr<'a> { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 5 | Jump(usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | JumpIfFalse(usize), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | Store(&'a str), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Load(&'a str), [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | BuildList(usize), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instr` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sub`, `Mult`, and `Div` are never constructed [INFO] [stdout] --> src/instruction.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Binary { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 17 | Add, [INFO] [stdout] 18 | Sub, [INFO] [stdout] | ^^^ [INFO] [stdout] 19 | Mult, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | Div, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Binary` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ret_addr` is never read [INFO] [stdout] --> src/stack.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Frame<'a, T> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 7 | pub ret_addr: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Frame` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push2` and `ret` are never used [INFO] [stdout] --> src/stack.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a, T: Clone> Stack<'a, T> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn push2(&mut self, data: (T, T)) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn ret(&mut self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String` and `Bool` are never constructed [INFO] [stdout] --> src/value.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Value<'a> { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | String(&'a str), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vm.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | NotInScope(&'a str), [INFO] [stdout] | ---------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 | NotInScope(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/vm.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | MismatchedType(&'a str), [INFO] [stdout] | -------------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `VmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 | MismatchedType(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ret` is never used [INFO] [stdout] --> src/vm.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> Vm<'a> { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 85 | fn ret(&mut self) -> VmResult<'a, ()> { [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/stack.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 57 | let a = self.pop()?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 58 | let b = self.pop()?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 59 | Some((a, b)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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] [stderr] error: could not compile `vm` (bin "vm") due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `vm` (bin "vm" test) due to 2 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1dcb25a3a6d0f9109a6f2ab64dcf333264fe77bee0bbb5becaa4ea3112403556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dcb25a3a6d0f9109a6f2ab64dcf333264fe77bee0bbb5becaa4ea3112403556", kill_on_drop: false }` [INFO] [stdout] 1dcb25a3a6d0f9109a6f2ab64dcf333264fe77bee0bbb5becaa4ea3112403556