[INFO] cloning repository https://github.com/Salpadding/learning-wasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Salpadding/learning-wasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalpadding%2Flearning-wasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalpadding%2Flearning-wasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9ea7d04e677015207fc3ed4988b1e6ad6f30ba5b [INFO] checking Salpadding/learning-wasm/9ea7d04e677015207fc3ed4988b1e6ad6f30ba5b 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%2FSalpadding%2Flearning-wasm" "/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/Salpadding/learning-wasm 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/Salpadding/learning-wasm [INFO] finished tweaking git repo https://github.com/Salpadding/learning-wasm [INFO] tweaked toml for git repo https://github.com/Salpadding/learning-wasm written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Salpadding/learning-wasm 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] 86d1424f5b7202fb75cfc26ba618b31c683b003f242fb76f5b4ec38f6738f964 [INFO] running `Command { std: "docker" "start" "-a" "86d1424f5b7202fb75cfc26ba618b31c683b003f242fb76f5b4ec38f6738f964", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86d1424f5b7202fb75cfc26ba618b31c683b003f242fb76f5b4ec38f6738f964", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86d1424f5b7202fb75cfc26ba618b31c683b003f242fb76f5b4ec38f6738f964", kill_on_drop: false }` [INFO] [stdout] 86d1424f5b7202fb75cfc26ba618b31c683b003f242fb76f5b4ec38f6738f964 [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] c17c3d8ba79056e29a43f996a50abee74fdd43571f4732bcc76b25ec18c3f372 [INFO] running `Command { std: "docker" "start" "-a" "c17c3d8ba79056e29a43f996a50abee74fdd43571f4732bcc76b25ec18c3f372", kill_on_drop: false }` [INFO] [stderr] Checking learning-wasm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `simd` [INFO] [stdout] --> src/elements/mod.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | #[cfg(feature="simd")] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `reduced-stack-buffer`, and `std` [INFO] [stdout] = help: consider adding `simd` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/elements/module.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::super::print_stream` [INFO] [stdout] --> src/elements/module.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | use super::super::print_stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/elements/primitives.rs:337:30 [INFO] [stdout] | [INFO] [stdout] 337 | use super::{Deserialize, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::print_stream` [INFO] [stdout] --> src/elements/sections.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use super::print_stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueType` [INFO] [stdout] --> src/elements/global_entry.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use super::types::{ValueType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instruction` [INFO] [stdout] --> src/elements/global_entry.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use super::ops::{Instruction, InitExpr}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `simd` [INFO] [stdout] --> src/elements/mod.rs:154:10 [INFO] [stdout] | [INFO] [stdout] 154 | #[cfg(feature="simd")] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `reduced-stack-buffer`, and `std` [INFO] [stdout] = help: consider adding `simd` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `simd` [INFO] [stdout] --> src/elements/mod.rs:195:10 [INFO] [stdout] | [INFO] [stdout] 195 | #[cfg(feature="simd")] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `reduced-stack-buffer`, and `std` [INFO] [stdout] = help: consider adding `simd` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `simd` [INFO] [stdout] --> src/elements/mod.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | #[cfg(feature="simd")] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `reduced-stack-buffer`, and `std` [INFO] [stdout] = help: consider adding `simd` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::print_stream` [INFO] [stdout] --> src/elements/sections.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use super::print_stream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueType` [INFO] [stdout] --> src/elements/global_entry.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use super::types::{ValueType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instruction` [INFO] [stdout] --> src/elements/global_entry.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use super::ops::{Instruction, InitExpr}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `simd` [INFO] [stdout] --> src/elements/mod.rs:154:10 [INFO] [stdout] | [INFO] [stdout] 154 | #[cfg(feature="simd")] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `reduced-stack-buffer`, and `std` [INFO] [stdout] = help: consider adding `simd` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `simd` [INFO] [stdout] --> src/elements/mod.rs:195:10 [INFO] [stdout] | [INFO] [stdout] 195 | #[cfg(feature="simd")] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `reduced-stack-buffer`, and `std` [INFO] [stdout] = help: consider adding `simd` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/elements/module.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let m = Module::deserialize(&mut buf).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/elements/ops.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut ins: Vec = Vec::new(); [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/elements/ops.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut ins: Vec = Vec::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let m = Module::default(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AInt` is never used [INFO] [stdout] --> src/main.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type AInt = i32; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BInt` is never used [INFO] [stdout] --> src/main.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type BInt = i32; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `A` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_stream` is never used [INFO] [stdout] --> src/elements/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn print_stream(r: &mut R, max_len: usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/elements/mod.rs:72:2 [INFO] [stdout] | [INFO] [stdout] 64 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 72 | InconsistentLength { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | InvalidVarUint64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | /// Inconsistent metadata. [INFO] [stdout] 108 | InconsistentMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 109 | /// Invalid section id. [INFO] [stdout] 110 | InvalidSectionId(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 111 | /// Sections are out of order. [INFO] [stdout] 112 | SectionsOutOfOrder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 113 | /// Duplicated sections. [INFO] [stdout] 114 | DuplicatedSections(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | InconsistentCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 127 | /// Only flags 0, 1, and 2 are accepted on segments. [INFO] [stdout] 128 | InvalidSegmentFlags(u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | DuplicatedNameSubsections(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | /// Unknown name subsection type. [INFO] [stdout] 134 | UnknownNameSubsectionType(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has derived impls for the traits `Clone` and `Debug`, but these are 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/elements/primitives.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 153 | let mut res: Vec = Vec::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 160 | Ok(CountedList(res)) [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/elements/sections.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 262 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 265 | GlobalSection(v) [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] [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/elements/sections.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 278 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 281 | ElementSection(v) [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] [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/elements/sections.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 294 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 297 | DataSection(v) [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] [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/elements/sections.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 311 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 314 | CodeSection(v) [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] [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/elements/func.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 59 | let instructions = Instructions::deserialize(&mut body_reader)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | body_reader.close()?; [INFO] [stdout] 61 | Ok(FuncBody { locals: locals, instructions: instructions }) [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] [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/elements/ops.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 21 | let mut instructions = Vec::new(); [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 38 | Ok(Instructions(instructions)) [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/elements/ops.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 51 | let mut ins: Vec = Vec::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 62 | Ok(InitExpr(ins)) [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/elements/global_entry.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 19 | let init_expr = InitExpr::deserialize(reader)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | Ok ( [INFO] [stdout] 21 | GlobalEntry { global_type, init_expr } [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] [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/elements/segment.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 25 | let offset = InitExpr::deserialize(reader)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 32 | Ok(ElementSegment { [INFO] [stdout] | ____________^ [INFO] [stdout] 33 | | index, [INFO] [stdout] 34 | | offset: Some(offset), [INFO] [stdout] 35 | | members, [INFO] [stdout] 36 | | }) [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/elements/segment.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 53 | let offset = InitExpr::deserialize(reader)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | Ok(DataSegment { [INFO] [stdout] | ____________^ [INFO] [stdout] 58 | | index: index.into(), [INFO] [stdout] 59 | | offset: Some(offset), [INFO] [stdout] 60 | | value: value_buf, [INFO] [stdout] 61 | | }) [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: aborting due to 11 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `learning-wasm` (bin "learning-wasm" test) due to 12 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let m = Module::default(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AInt` is never used [INFO] [stdout] --> src/main.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type AInt = i32; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BInt` is never used [INFO] [stdout] --> src/main.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type BInt = i32; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `A` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | trait A { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_stream` is never used [INFO] [stdout] --> src/elements/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn print_stream(r: &mut R, max_len: usize) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/elements/mod.rs:72:2 [INFO] [stdout] | [INFO] [stdout] 64 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 72 | InconsistentLength { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | InvalidVarUint64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 107 | /// Inconsistent metadata. [INFO] [stdout] 108 | InconsistentMetadata, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 109 | /// Invalid section id. [INFO] [stdout] 110 | InvalidSectionId(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 111 | /// Sections are out of order. [INFO] [stdout] 112 | SectionsOutOfOrder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 113 | /// Duplicated sections. [INFO] [stdout] 114 | DuplicatedSections(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | InconsistentCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 127 | /// Only flags 0, 1, and 2 are accepted on segments. [INFO] [stdout] 128 | InvalidSegmentFlags(u32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | DuplicatedNameSubsections(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | /// Unknown name subsection type. [INFO] [stdout] 134 | UnknownNameSubsectionType(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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: associated function `new` is never used [INFO] [stdout] --> src/io.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a, T: io::Read> BufReader<'a, T> { [INFO] [stdout] | -------------------------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(r: &'a mut T) -> BufReader<'a, T> { [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/elements/primitives.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 153 | let mut res: Vec = Vec::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 160 | Ok(CountedList(res)) [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/elements/sections.rs:265:13 [INFO] [stdout] | [INFO] [stdout] 262 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 265 | GlobalSection(v) [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] [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/elements/sections.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 278 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 281 | ElementSection(v) [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] [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/elements/sections.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 294 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 297 | DataSection(v) [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] [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/elements/sections.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 311 | let v: Vec = CountedList::deserialize(&mut rd)?.into_inner(); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 314 | CodeSection(v) [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] [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/elements/func.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 59 | let instructions = Instructions::deserialize(&mut body_reader)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 60 | body_reader.close()?; [INFO] [stdout] 61 | Ok(FuncBody { locals: locals, instructions: instructions }) [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] [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/elements/ops.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 21 | let mut instructions = Vec::new(); [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 38 | Ok(Instructions(instructions)) [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/elements/ops.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 51 | let mut ins: Vec = Vec::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 62 | Ok(InitExpr(ins)) [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/elements/global_entry.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 19 | let init_expr = InitExpr::deserialize(reader)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | Ok ( [INFO] [stdout] 21 | GlobalEntry { global_type, init_expr } [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] [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/elements/segment.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 25 | let offset = InitExpr::deserialize(reader)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 32 | Ok(ElementSegment { [INFO] [stdout] | ____________^ [INFO] [stdout] 33 | | index, [INFO] [stdout] 34 | | offset: Some(offset), [INFO] [stdout] 35 | | members, [INFO] [stdout] 36 | | }) [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/elements/segment.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 53 | let offset = InitExpr::deserialize(reader)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | Ok(DataSegment { [INFO] [stdout] | ____________^ [INFO] [stdout] 58 | | index: index.into(), [INFO] [stdout] 59 | | offset: Some(offset), [INFO] [stdout] 60 | | value: value_buf, [INFO] [stdout] 61 | | }) [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: aborting due to 11 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `learning-wasm` (bin "learning-wasm") due to 12 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c17c3d8ba79056e29a43f996a50abee74fdd43571f4732bcc76b25ec18c3f372", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c17c3d8ba79056e29a43f996a50abee74fdd43571f4732bcc76b25ec18c3f372", kill_on_drop: false }` [INFO] [stdout] c17c3d8ba79056e29a43f996a50abee74fdd43571f4732bcc76b25ec18c3f372