[INFO] cloning repository https://github.com/bbawj/rclox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bbawj/rclox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbbawj%2Frclox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbbawj%2Frclox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9aa049c6df6e87fee6a1a52bf92fc55789b69275 [INFO] checking bbawj/rclox/9aa049c6df6e87fee6a1a52bf92fc55789b69275 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%2Fbbawj%2Frclox" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bbawj/rclox 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/bbawj/rclox [INFO] finished tweaking git repo https://github.com/bbawj/rclox [INFO] tweaked toml for git repo https://github.com/bbawj/rclox written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bbawj/rclox 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 69cec9e2ca6fd1bf236533344183b4b26b36147056ec1b84dc1326ab7f1ef8f8 [INFO] running `Command { std: "docker" "start" "-a" "69cec9e2ca6fd1bf236533344183b4b26b36147056ec1b84dc1326ab7f1ef8f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69cec9e2ca6fd1bf236533344183b4b26b36147056ec1b84dc1326ab7f1ef8f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69cec9e2ca6fd1bf236533344183b4b26b36147056ec1b84dc1326ab7f1ef8f8", kill_on_drop: false }` [INFO] [stdout] 69cec9e2ca6fd1bf236533344183b4b26b36147056ec1b84dc1326ab7f1ef8f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 08c0f1f2767eb324018cf4c6622ad6ec73c18d67164582600a80b6b9a8b91a7f [INFO] running `Command { std: "docker" "start" "-a" "08c0f1f2767eb324018cf4c6622ad6ec73c18d67164582600a80b6b9a8b91a7f", kill_on_drop: false }` [INFO] [stderr] Checking rclox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `as_bool`, `as_number`, `bool_val`, and `vm::Vm` [INFO] [stdout] --> src/debug.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | value::{as_obj, as_string, as_function, bool_val, as_bool, as_number}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 5 | vm::Vm, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell` and `rc::Rc` [INFO] [stdout] --> src/value.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{rc::Rc, cell::RefCell}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc`, and `self` [INFO] [stdout] --> src/vm.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | time::{self, SystemTime}, rc::Rc, cell::RefCell, [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chunk` and `ObjFunction` [INFO] [stdout] --> src/vm.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | chunk::{Chunk, OpCode}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | compile::{Compiler, INTERNER}, [INFO] [stdout] 9 | object::{Obj, ObjFunction, allocate_closure, ObjClosure, allocate_upvalue, ObjUpvalue}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `as_bool`, `as_number`, `bool_val`, and `vm::Vm` [INFO] [stdout] --> src/debug.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | value::{as_obj, as_string, as_function, bool_val, as_bool, as_number}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 5 | vm::Vm, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell` and `rc::Rc` [INFO] [stdout] --> src/value.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{rc::Rc, cell::RefCell}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `rc::Rc`, and `self` [INFO] [stdout] --> src/vm.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | time::{self, SystemTime}, rc::Rc, cell::RefCell, [INFO] [stdout] | ^^^^ ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Chunk` and `ObjFunction` [INFO] [stdout] --> src/vm.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | chunk::{Chunk, OpCode}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | compile::{Compiler, INTERNER}, [INFO] [stdout] 9 | object::{Obj, ObjFunction, allocate_closure, ObjClosure, allocate_upvalue, ObjUpvalue}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:874:26 [INFO] [stdout] | [INFO] [stdout] 874 | fn number(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:887:26 [INFO] [stdout] | [INFO] [stdout] 887 | fn string(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:936:27 [INFO] [stdout] | [INFO] [stdout] 936 | fn literal(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:947:28 [INFO] [stdout] | [INFO] [stdout] 947 | fn grouping(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:952:25 [INFO] [stdout] | [INFO] [stdout] 952 | fn unary(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:965:26 [INFO] [stdout] | [INFO] [stdout] 965 | fn binary(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/debug.rs:112:39 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn simple_instruction(name: &str, offset: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/vm.rs:189:40 [INFO] [stdout] | [INFO] [stdout] 189 | OpCode::OpConstantLong(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/vm.rs:556:17 [INFO] [stdout] | [INFO] [stdout] 556 | fn clock_native(args: Vec>) -> Value { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ObjUpvalue` is never constructed [INFO] [stdout] --> src/object.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Obj { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | ObjUpvalue(ObjUpvalue) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` 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: function `allocate_native` is never used [INFO] [stdout] --> src/object.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn allocate_native(function: fn(args: Vec>) -> Value) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_obj` is never used [INFO] [stdout] --> src/value.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn is_obj(value: &Value) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_native` is never used [INFO] [stdout] --> src/value.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn is_native(value: &Value) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InterpretParserError` is never constructed [INFO] [stdout] --> src/vm.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum InterpretError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 51 | InterpretParserError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterpretError` 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/compile.rs:893:33 [INFO] [stdout] | [INFO] [stdout] 891 | let value = allocate_string(INTERNER.lock().as_deref_mut().unwrap(), string); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 892 | self.current_chunk() [INFO] [stdout] 893 | .write_constant(crate::value::Value::ValObj(value), line) [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/object.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn allocate_closure(function: Box) -> ObjClosure { [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 93 | let upvalue_count = function.upvalue_count; [INFO] [stdout] 94 | ObjClosure { function: Rc::new(*function), upvalues: vec![std::ptr::null_mut();upvalue_count.into()], upvalue_count } [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/object.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn allocate_upvalue(location: usize, value: Value) -> Box { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | Box::new(ObjUpvalue { [INFO] [stdout] | ______________^ [INFO] [stdout] 99 | | value: Box::into_raw(Box::new(value)), [INFO] [stdout] 100 | | closed: Box::new(Value::ValNil), [INFO] [stdout] 101 | | location, [INFO] [stdout] 102 | | next: std::ptr::null_mut() [INFO] [stdout] 103 | | }) [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/value.rs:78:11 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn as_function(value: Value) -> Box { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | match *as_obj(value) { [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/vm.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 89 | let compiler = Compiler::new(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 90 | [INFO] [stdout] 91 | let frames = [INIT_FRAME; FRAMES_MAX as usize]; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | [INFO] [stdout] 93 | let mut stack = [INIT; STACK_MAX as usize]; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 96 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 97 | | stack, [INFO] [stdout] 98 | | stack_top: 0, [INFO] [stdout] 99 | | compiler, [INFO] [stdout] ... | [INFO] [stdout] 103 | | open_upvalues: std::ptr::null_mut(), [INFO] [stdout] 104 | | }) [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 5 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rclox` (bin "rclox") due to 6 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:874:26 [INFO] [stdout] | [INFO] [stdout] 874 | fn number(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:887:26 [INFO] [stdout] | [INFO] [stdout] 887 | fn string(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:936:27 [INFO] [stdout] | [INFO] [stdout] 936 | fn literal(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:947:28 [INFO] [stdout] | [INFO] [stdout] 947 | fn grouping(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:952:25 [INFO] [stdout] | [INFO] [stdout] 952 | fn unary(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_assign` [INFO] [stdout] --> src/compile.rs:965:26 [INFO] [stdout] | [INFO] [stdout] 965 | fn binary(&mut self, can_assign: bool) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_assign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/debug.rs:112:39 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn simple_instruction(name: &str, offset: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/vm.rs:189:40 [INFO] [stdout] | [INFO] [stdout] 189 | OpCode::OpConstantLong(c) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/vm.rs:556:17 [INFO] [stdout] | [INFO] [stdout] 556 | fn clock_native(args: Vec>) -> Value { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ObjUpvalue` is never constructed [INFO] [stdout] --> src/object.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Obj { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | ObjUpvalue(ObjUpvalue) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` 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: function `allocate_native` is never used [INFO] [stdout] --> src/object.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn allocate_native(function: fn(args: Vec>) -> Value) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_obj` is never used [INFO] [stdout] --> src/value.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn is_obj(value: &Value) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_native` is never used [INFO] [stdout] --> src/value.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn is_native(value: &Value) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InterpretParserError` is never constructed [INFO] [stdout] --> src/vm.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum InterpretError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 51 | InterpretParserError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterpretError` 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/compile.rs:893:33 [INFO] [stdout] | [INFO] [stdout] 891 | let value = allocate_string(INTERNER.lock().as_deref_mut().unwrap(), string); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 892 | self.current_chunk() [INFO] [stdout] 893 | .write_constant(crate::value::Value::ValObj(value), line) [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/object.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn allocate_closure(function: Box) -> ObjClosure { [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 93 | let upvalue_count = function.upvalue_count; [INFO] [stdout] 94 | ObjClosure { function: Rc::new(*function), upvalues: vec![std::ptr::null_mut();upvalue_count.into()], upvalue_count } [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/object.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn allocate_upvalue(location: usize, value: Value) -> Box { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 98 | Box::new(ObjUpvalue { [INFO] [stdout] | ______________^ [INFO] [stdout] 99 | | value: Box::into_raw(Box::new(value)), [INFO] [stdout] 100 | | closed: Box::new(Value::ValNil), [INFO] [stdout] 101 | | location, [INFO] [stdout] 102 | | next: std::ptr::null_mut() [INFO] [stdout] 103 | | }) [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/value.rs:78:11 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn as_function(value: Value) -> Box { [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 78 | match *as_obj(value) { [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/vm.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 89 | let compiler = Compiler::new(); [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 90 | [INFO] [stdout] 91 | let frames = [INIT_FRAME; FRAMES_MAX as usize]; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | [INFO] [stdout] 93 | let mut stack = [INIT; STACK_MAX as usize]; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 96 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 97 | | stack, [INFO] [stdout] 98 | | stack_top: 0, [INFO] [stdout] 99 | | compiler, [INFO] [stdout] ... | [INFO] [stdout] 103 | | open_upvalues: std::ptr::null_mut(), [INFO] [stdout] 104 | | }) [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 5 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rclox` (bin "rclox" test) due to 6 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "08c0f1f2767eb324018cf4c6622ad6ec73c18d67164582600a80b6b9a8b91a7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08c0f1f2767eb324018cf4c6622ad6ec73c18d67164582600a80b6b9a8b91a7f", kill_on_drop: false }` [INFO] [stdout] 08c0f1f2767eb324018cf4c6622ad6ec73c18d67164582600a80b6b9a8b91a7f