[INFO] cloning repository https://github.com/diggymo/rustack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/diggymo/rustack" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiggymo%2Frustack", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiggymo%2Frustack'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7025dd9844e981f83b7a61f4d07418c166f3960c [INFO] checking diggymo/rustack/7025dd9844e981f83b7a61f4d07418c166f3960c 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%2Fdiggymo%2Frustack" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/diggymo/rustack 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/diggymo/rustack [INFO] finished tweaking git repo https://github.com/diggymo/rustack [INFO] tweaked toml for git repo https://github.com/diggymo/rustack written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/diggymo/rustack 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 5737d7c912749808b30ee05765e7a4c2bedaecb3f4da6c177dccd02e71080cb3 [INFO] running `Command { std: "docker" "start" "-a" "5737d7c912749808b30ee05765e7a4c2bedaecb3f4da6c177dccd02e71080cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5737d7c912749808b30ee05765e7a4c2bedaecb3f4da6c177dccd02e71080cb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5737d7c912749808b30ee05765e7a4c2bedaecb3f4da6c177dccd02e71080cb3", kill_on_drop: false }` [INFO] [stdout] 5737d7c912749808b30ee05765e7a4c2bedaecb3f4da6c177dccd02e71080cb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 8f229ec97b80578630975ae064cc1c9d3048b3d4689c458d3c0a3d1a05d0ff8d [INFO] running `Command { std: "docker" "start" "-a" "8f229ec97b80578630975ae064cc1c9d3048b3d4689c458d3c0a3d1a05d0ff8d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.69 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling test-log-macros v0.2.16 [INFO] [stderr] Checking test-log v0.2.16 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking tracing-chrome v0.7.2 [INFO] [stderr] Checking rustack v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main_4.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main_4.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_chrome::ChromeLayerBuilder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing_chrome::ChromeLayerBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env_logger` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt` [INFO] [stdout] --> src/main.rs:619:5 [INFO] [stdout] | [INFO] [stdout] 619 | use tracing_subscriber::fmt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Registry` [INFO] [stdout] --> src/main.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::Err` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nom::Err; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_chrome::ChromeLayerBuilder` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing_chrome::ChromeLayerBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env_logger` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use env_logger; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt` [INFO] [stdout] --> src/main.rs:619:5 [INFO] [stdout] | [INFO] [stdout] 619 | use tracing_subscriber::fmt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `registry::Registry` [INFO] [stdout] --> src/main.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [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/main_2.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 118 | .and_then(|f| std::fs::File::open(f).ok()) [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: aborting due to 1 previous error [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_2.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 118 | .and_then(|f| std::fs::File::open(f).ok()) [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: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustack` (bin "main_2") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rustack` (bin "main_2" test) due to 2 previous errors [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 109 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 110 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 111 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 112 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 113 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/main.rs:620:26 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/main.rs:620:26 [INFO] [stdout] | [INFO] [stdout] 620 | use tracing_subscriber::{prelude::*, registry::Registry}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 218 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 219 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 220 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 221 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 222 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 218 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 219 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 220 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 221 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 222 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 223 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:428:17 [INFO] [stdout] | [INFO] [stdout] 428 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:428:17 [INFO] [stdout] | [INFO] [stdout] 428 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_type` [INFO] [stdout] --> src/main.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | return_type, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `return_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main_4.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 109 | (F64(lhs), rhs) => F64(d(*lhs, coerce_f64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 110 | (lhs, F64(rhs)) => F64(d(coerce_f64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 111 | (I64(lhs), rhs) => I64(i(*lhs, coerce_i64(rhs))), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 112 | (lhs, I64(rhs)) => I64(i(coerce_i64(lhs), *rhs)), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 113 | (Str(lhs), Str(rhs)) => Str(s(lhs, rhs)), [INFO] [stdout] 114 | _ => panic!("arienai..."), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main_4.rs:771:16 [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [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/main_4.rs:777:11 [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression> { [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/main_4.rs:782:10 [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main_4.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex_eval` is never used [INFO] [stdout] --> src/main_4.rs:624:4 [INFO] [stdout] | [INFO] [stdout] 624 | fn ex_eval<'src>(input: &'src str, frame: &mut StackFrame<'src>) -> EvalResult { [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/main_4.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 325 | let (input, stmts) = many0(statement)(input)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 328 | Ok((input, stmts)) [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: 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_4.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 399 | let (input, statements) = delimited( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 406 | Ok(( [INFO] [stdout] | ________^ [INFO] [stdout] 407 | | input, [INFO] [stdout] 408 | | Statement::FnDef { [INFO] [stdout] 409 | | name: fn_name, [INFO] [stdout] ... | [INFO] [stdout] 412 | | }, [INFO] [stdout] 413 | | )) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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_4.rs:425:22 [INFO] [stdout] | [INFO] [stdout] 423 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 424 | info!("var_def success, [{:#?}]", &input); [INFO] [stdout] 425 | (next_input, Statement::VarDef(parsed.1, parsed.3)) [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_4.rs:437:22 [INFO] [stdout] | [INFO] [stdout] 435 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 436 | info!("var_assign success, [{:#?}]", &input); [INFO] [stdout] 437 | (next_input, Statement::VarAssign(parsed.0, parsed.2)) [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_4.rs:444:22 [INFO] [stdout] | [INFO] [stdout] 442 | expr(input).map(|(next_input, parsed_expression)| { [INFO] [stdout] | ------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 443 | info!("expr_statement success, [{:#?}]", &input); [INFO] [stdout] 444 | (next_input, Statement::Expression(parsed_expression)) [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_4.rs:640:5 [INFO] [stdout] | [INFO] [stdout] 638 | let (i, init) = term(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 639 | [INFO] [stdout] 640 | / fold_many0( [INFO] [stdout] 641 | | pair(space_delimited(alt((char('+'), char('-')))), term), [INFO] [stdout] 642 | | move || init.clone(), [INFO] [stdout] 643 | | |acc, (op, val)| match op { [INFO] [stdout] ... | [INFO] [stdout] 647 | | }, [INFO] [stdout] 648 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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_4.rs:740:8 [INFO] [stdout] | [INFO] [stdout] 737 | let (i, first) = value_expr(i)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 738 | let (i, cond) = space_delimited(alt((char('<'), char('>'))))(i)?; [INFO] [stdout] 739 | let (i, second) = value_expr(i)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 740 | Ok(( [INFO] [stdout] | ________^ [INFO] [stdout] 741 | | i, [INFO] [stdout] 742 | | match cond { [INFO] [stdout] 743 | | '<' => Expression::Lt(Box::new(first), Box::new(second)), [INFO] [stdout] ... | [INFO] [stdout] 746 | | }, [INFO] [stdout] 747 | | )) [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] | [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_4.rs:753:5 [INFO] [stdout] | [INFO] [stdout] 751 | let (i, init) = factor(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 752 | [INFO] [stdout] 753 | / fold_many0( [INFO] [stdout] 754 | | pair(space_delimited(alt((char('*'), char('/')))), factor), [INFO] [stdout] 755 | | move || init.clone(), [INFO] [stdout] 756 | | |acc, (op, val): (char, Expression)| match op { [INFO] [stdout] ... | [INFO] [stdout] 760 | | }, [INFO] [stdout] 761 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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_4.rs:779:27 [INFO] [stdout] | [INFO] [stdout] 779 | .map(|(i, a)| (i, Expression::NumLiteral(a.parse().unwrap()))) [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 9 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustack` (bin "main_4") due to 10 previous errors; 7 warnings emitted [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:963:16 [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [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/main_4.rs:771:16 [INFO] [stdout] | [INFO] [stdout] 771 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [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/main_4.rs:777:11 [INFO] [stdout] | [INFO] [stdout] 777 | fn number(mut input: &str) -> IResult<&str, Expression> { [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/main_4.rs:782:10 [INFO] [stdout] | [INFO] [stdout] 782 | fn ident(mut input: &str) -> IResult<&str, Expression> { [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/main.rs:969:11 [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression> { [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/main.rs:974:10 [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression> { [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/main.rs:963:16 [INFO] [stdout] | [INFO] [stdout] 963 | fn str_literal(mut input: &str) -> IResult<&str, Expression> { [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/main.rs:969:11 [INFO] [stdout] | [INFO] [stdout] 969 | fn number(mut input: &str) -> IResult<&str, Expression> { [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/main.rs:974:10 [INFO] [stdout] | [INFO] [stdout] 974 | fn ident(mut input: &str) -> IResult<&str, Expression> { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main_4.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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_4.rs:328:8 [INFO] [stdout] | [INFO] [stdout] 325 | let (input, stmts) = many0(statement)(input)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 328 | Ok((input, stmts)) [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] warning: fields `vars`, `funcs`, and `super_context` are never read [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TypeCheckContext<'src> { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 40 | vars: HashMap<&'src str, TypeDecl>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | funcs: HashMap<&'src str, FnDef<'src>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | super_context: Option<&'src TypeCheckContext<'src>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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_4.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 399 | let (input, statements) = delimited( [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 406 | Ok(( [INFO] [stdout] | ________^ [INFO] [stdout] 407 | | input, [INFO] [stdout] 408 | | Statement::FnDef { [INFO] [stdout] 409 | | name: fn_name, [INFO] [stdout] ... | [INFO] [stdout] 412 | | }, [INFO] [stdout] 413 | | )) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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: methods `get_var` and `get_fn` are never used [INFO] [stdout] --> src/main.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl<'src> TypeCheckContext<'src> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_var(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_fn(&self, name: &str) -> Option<&FnDef<'src>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl TypeCheckError { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 112 | fn new(msg: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tc_coerce_type` is never used [INFO] [stdout] --> src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn tc_coerce_type<'src>(value: &TypeDecl, target: &TypeDecl) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [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/main_4.rs:425:22 [INFO] [stdout] | [INFO] [stdout] 423 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 424 | info!("var_def success, [{:#?}]", &input); [INFO] [stdout] 425 | (next_input, Statement::VarDef(parsed.1, parsed.3)) [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_4.rs:437:22 [INFO] [stdout] | [INFO] [stdout] 435 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 436 | info!("var_assign success, [{:#?}]", &input); [INFO] [stdout] 437 | (next_input, Statement::VarAssign(parsed.0, parsed.2)) [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_4.rs:444:22 [INFO] [stdout] | [INFO] [stdout] 442 | expr(input).map(|(next_input, parsed_expression)| { [INFO] [stdout] | ------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 443 | info!("expr_statement success, [{:#?}]", &input); [INFO] [stdout] 444 | (next_input, Statement::Expression(parsed_expression)) [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:581:22 [INFO] [stdout] | [INFO] [stdout] 579 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 580 | info!("var_def success, [{:#?}]", &input); [INFO] [stdout] 581 | (next_input, Statement::VarDef(parsed.1, parsed.3, parsed.5)) [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:608:22 [INFO] [stdout] | [INFO] [stdout] 606 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 607 | info!("var_assign success, [{:#?}]", &input); [INFO] [stdout] 608 | (next_input, Statement::VarAssign(parsed.0, parsed.2)) [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:616:22 [INFO] [stdout] | [INFO] [stdout] 614 | expr(input).map(|(next_input, parsed_expression)| { [INFO] [stdout] | ------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 615 | info!("expr_statement success, [{:#?}]", &input); [INFO] [stdout] 616 | (next_input, Statement::Expression(parsed_expression)) [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_4.rs:640:5 [INFO] [stdout] | [INFO] [stdout] 638 | let (i, init) = term(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 639 | [INFO] [stdout] 640 | / fold_many0( [INFO] [stdout] 641 | | pair(space_delimited(alt((char('+'), char('-')))), term), [INFO] [stdout] 642 | | move || init.clone(), [INFO] [stdout] 643 | | |acc, (op, val)| match op { [INFO] [stdout] ... | [INFO] [stdout] 647 | | }, [INFO] [stdout] 648 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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:832:5 [INFO] [stdout] | [INFO] [stdout] 830 | let (i, init) = term(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 831 | [INFO] [stdout] 832 | / fold_many0( [INFO] [stdout] 833 | | pair(space_delimited(alt((char('+'), char('-')))), term), [INFO] [stdout] 834 | | move || init.clone(), [INFO] [stdout] 835 | | |acc, (op, val)| match op { [INFO] [stdout] ... | [INFO] [stdout] 839 | | }, [INFO] [stdout] 840 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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_4.rs:740:8 [INFO] [stdout] | [INFO] [stdout] 737 | let (i, first) = value_expr(i)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 738 | let (i, cond) = space_delimited(alt((char('<'), char('>'))))(i)?; [INFO] [stdout] 739 | let (i, second) = value_expr(i)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 740 | Ok(( [INFO] [stdout] | ________^ [INFO] [stdout] 741 | | i, [INFO] [stdout] 742 | | match cond { [INFO] [stdout] 743 | | '<' => Expression::Lt(Box::new(first), Box::new(second)), [INFO] [stdout] ... | [INFO] [stdout] 746 | | }, [INFO] [stdout] 747 | | )) [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] | [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:932:8 [INFO] [stdout] | [INFO] [stdout] 929 | let (i, first) = value_expr(i)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 930 | let (i, cond) = space_delimited(alt((char('<'), char('>'))))(i)?; [INFO] [stdout] 931 | let (i, second) = value_expr(i)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 932 | Ok(( [INFO] [stdout] | ________^ [INFO] [stdout] 933 | | i, [INFO] [stdout] 934 | | match cond { [INFO] [stdout] 935 | | '<' => Expression::Lt(Box::new(first), Box::new(second)), [INFO] [stdout] ... | [INFO] [stdout] 938 | | }, [INFO] [stdout] 939 | | )) [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] | [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:945:5 [INFO] [stdout] | [INFO] [stdout] 943 | let (i, init) = factor(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 944 | [INFO] [stdout] 945 | / fold_many0( [INFO] [stdout] 946 | | pair(space_delimited(alt((char('*'), char('/')))), factor), [INFO] [stdout] 947 | | move || init.clone(), [INFO] [stdout] 948 | | |acc, (op, val): (char, Expression)| match op { [INFO] [stdout] ... | [INFO] [stdout] 952 | | }, [INFO] [stdout] 953 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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:971:27 [INFO] [stdout] | [INFO] [stdout] 971 | .map(|(i, a)| (i, Expression::NumLiteral(a.parse().unwrap()))) [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_4.rs:753:5 [INFO] [stdout] | [INFO] [stdout] 751 | let (i, init) = factor(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 752 | [INFO] [stdout] 753 | / fold_many0( [INFO] [stdout] 754 | | pair(space_delimited(alt((char('*'), char('/')))), factor), [INFO] [stdout] 755 | | move || init.clone(), [INFO] [stdout] 756 | | |acc, (op, val): (char, Expression)| match op { [INFO] [stdout] ... | [INFO] [stdout] 760 | | }, [INFO] [stdout] 761 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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_4.rs:779:27 [INFO] [stdout] | [INFO] [stdout] 779 | .map(|(i, a)| (i, Expression::NumLiteral(a.parse().unwrap()))) [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 9 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vars`, `funcs`, and `super_context` are never read [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct TypeCheckContext<'src> { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 40 | vars: HashMap<&'src str, TypeDecl>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | funcs: HashMap<&'src str, FnDef<'src>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | super_context: Option<&'src TypeCheckContext<'src>>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_var` and `get_fn` are never used [INFO] [stdout] --> src/main.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl<'src> TypeCheckContext<'src> { [INFO] [stdout] | --------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_var(&self, name: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn get_fn(&self, name: &str) -> Option<&FnDef<'src>> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl TypeCheckError { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 112 | fn new(msg: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tc_coerce_type` is never used [INFO] [stdout] --> src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn tc_coerce_type<'src>(value: &TypeDecl, target: &TypeDecl) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_var` is never used [INFO] [stdout] --> src/main.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl<'src> StackFrame<'src> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn set_var(&mut self, name: &str, value: Value) -> &f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex_eval` is never used [INFO] [stdout] --> src/main.rs:816:4 [INFO] [stdout] | [INFO] [stdout] 816 | fn ex_eval<'src>(input: &'src str, frame: &mut StackFrame<'src>) -> EvalResult { [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/main.rs:581:22 [INFO] [stdout] | [INFO] [stdout] 579 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 580 | info!("var_def success, [{:#?}]", &input); [INFO] [stdout] 581 | (next_input, Statement::VarDef(parsed.1, parsed.3, parsed.5)) [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:608:22 [INFO] [stdout] | [INFO] [stdout] 606 | .map(|(next_input, parsed)| { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 607 | info!("var_assign success, [{:#?}]", &input); [INFO] [stdout] 608 | (next_input, Statement::VarAssign(parsed.0, parsed.2)) [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:616:22 [INFO] [stdout] | [INFO] [stdout] 614 | expr(input).map(|(next_input, parsed_expression)| { [INFO] [stdout] | ------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 615 | info!("expr_statement success, [{:#?}]", &input); [INFO] [stdout] 616 | (next_input, Statement::Expression(parsed_expression)) [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:832:5 [INFO] [stdout] | [INFO] [stdout] 830 | let (i, init) = term(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 831 | [INFO] [stdout] 832 | / fold_many0( [INFO] [stdout] 833 | | pair(space_delimited(alt((char('+'), char('-')))), term), [INFO] [stdout] 834 | | move || init.clone(), [INFO] [stdout] 835 | | |acc, (op, val)| match op { [INFO] [stdout] ... | [INFO] [stdout] 839 | | }, [INFO] [stdout] 840 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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:932:8 [INFO] [stdout] | [INFO] [stdout] 929 | let (i, first) = value_expr(i)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 930 | let (i, cond) = space_delimited(alt((char('<'), char('>'))))(i)?; [INFO] [stdout] 931 | let (i, second) = value_expr(i)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 932 | Ok(( [INFO] [stdout] | ________^ [INFO] [stdout] 933 | | i, [INFO] [stdout] 934 | | match cond { [INFO] [stdout] 935 | | '<' => Expression::Lt(Box::new(first), Box::new(second)), [INFO] [stdout] ... | [INFO] [stdout] 938 | | }, [INFO] [stdout] 939 | | )) [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] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustack` (bin "main_4" test) due to 10 previous errors; 6 warnings emitted [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:945:5 [INFO] [stdout] | [INFO] [stdout] 943 | let (i, init) = factor(input)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 944 | [INFO] [stdout] 945 | / fold_many0( [INFO] [stdout] 946 | | pair(space_delimited(alt((char('*'), char('/')))), factor), [INFO] [stdout] 947 | | move || init.clone(), [INFO] [stdout] 948 | | |acc, (op, val): (char, Expression)| match op { [INFO] [stdout] ... | [INFO] [stdout] 952 | | }, [INFO] [stdout] 953 | | )(i) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_____| [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:971:27 [INFO] [stdout] | [INFO] [stdout] 971 | .map(|(i, a)| (i, Expression::NumLiteral(a.parse().unwrap()))) [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] [stderr] error: could not compile `rustack` (bin "rustack" test) due to 8 previous errors; 19 warnings emitted [INFO] [stdout] error: aborting due to 7 previous errors; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustack` (bin "rustack") due to 8 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8f229ec97b80578630975ae064cc1c9d3048b3d4689c458d3c0a3d1a05d0ff8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f229ec97b80578630975ae064cc1c9d3048b3d4689c458d3c0a3d1a05d0ff8d", kill_on_drop: false }` [INFO] [stdout] 8f229ec97b80578630975ae064cc1c9d3048b3d4689c458d3c0a3d1a05d0ff8d