[INFO] fetching crate wit-component 0.216.0... [INFO] checking wit-component-0.216.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate wit-component 0.216.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate wit-component 0.216.0 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 crates.io crate wit-component 0.216.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate wit-component 0.216.0 [INFO] tweaked toml for crates.io crate wit-component 0.216.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 142 packages to latest compatible versions [INFO] [stderr] Adding embedded-io v0.4.0 (latest: v0.6.1) [INFO] [stderr] Adding gimli v0.29.0 (latest: v0.31.0) [INFO] [stderr] Adding hashbrown v0.13.2 (latest: v0.14.5) [INFO] [stderr] Adding heck v0.4.1 (latest: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (latest: v0.4.0) [INFO] [stderr] Adding itertools v0.12.1 (latest: v0.13.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (latest: v0.6.5) [INFO] [stderr] Adding rustc-hash v1.1.0 (latest: v2.0.0) [INFO] [stderr] Adding wasm-encoder v0.215.0 (latest: v0.216.0) [INFO] [stderr] Adding wasmparser v0.215.0 (latest: v0.216.0) [INFO] [stderr] Adding wasmprinter v0.215.0 (latest: v0.216.0) [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [INFO] [stderr] Adding wit-parser v0.215.0 (latest: v0.216.0) [INFO] [stderr] Adding yansi v0.5.1 (latest: v1.0.1) [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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 146a73fb094fe3570f9fd14a56dc387ab3df153d732057538de3417a7eec6de3 [INFO] running `Command { std: "docker" "start" "-a" "146a73fb094fe3570f9fd14a56dc387ab3df153d732057538de3417a7eec6de3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "146a73fb094fe3570f9fd14a56dc387ab3df153d732057538de3417a7eec6de3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "146a73fb094fe3570f9fd14a56dc387ab3df153d732057538de3417a7eec6de3", kill_on_drop: false }` [INFO] [stdout] 146a73fb094fe3570f9fd14a56dc387ab3df153d732057538de3417a7eec6de3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] caa590cb9c693dc3fb02c355c1ccaba91ba4401d88b1711b53a4959c2f83d543 [INFO] running `Command { std: "docker" "start" "-a" "caa590cb9c693dc3fb02c355c1ccaba91ba4401d88b1711b53a4959c2f83d543", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling cranelift-isle v0.111.0 [INFO] [stderr] Compiling cranelift-codegen-shared v0.111.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Checking leb128 v0.2.5 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking arbitrary v1.3.2 [INFO] [stderr] Compiling cranelift-codegen-meta v0.111.0 [INFO] [stderr] Checking slice-group-by v0.3.1 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Compiling id-arena v2.2.1 [INFO] [stderr] Checking cobs v0.2.3 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking wasm-encoder v0.215.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking cranelift-control v0.111.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Compiling wasmtime-component-macro v24.0.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking wasmtime-component-util v24.0.0 [INFO] [stderr] Checking clap_builder v4.5.15 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking unicode-xid v0.2.5 [INFO] [stderr] Checking wasmtime-jit-icache-coherence v24.0.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking wasmtime-asm-macros v24.0.0 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking wasmtime-slab v24.0.0 [INFO] [stderr] Checking sptr v0.3.2 [INFO] [stderr] Checking escape8259 v0.5.3 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Compiling cranelift-codegen v0.111.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking memfd v0.6.4 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling wasmparser v0.215.0 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling wasmtime-versioned-export-macros v24.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Compiling wasmtime v24.0.0 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking clap v4.5.16 [INFO] [stderr] Checking libtest-mimic v0.7.3 [INFO] [stderr] Compiling wit-parser v0.215.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking cranelift-bitset v0.111.0 [INFO] [stderr] Checking postcard v1.0.10 [INFO] [stderr] Checking cranelift-entity v0.111.0 [INFO] [stderr] Checking regalloc2 v0.9.3 [INFO] [stderr] Checking spdx v0.10.6 [INFO] [stderr] Checking cranelift-bforest v0.111.0 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Checking wasmparser v0.216.0 [INFO] [stderr] Checking object v0.36.4 [INFO] [stderr] Compiling wasmtime-wit-bindgen v24.0.0 [INFO] [stderr] Checking wasm-encoder v0.216.0 [INFO] [stderr] Checking wit-parser v0.216.0 [INFO] [stderr] Checking wasmprinter v0.216.0 [INFO] [stderr] Checking wasmtime-types v24.0.0 [INFO] [stderr] Checking wasmprinter v0.215.0 [INFO] [stderr] Checking wast v216.0.0 [INFO] [stderr] Checking wasm-metadata v0.216.0 [INFO] [stderr] Checking wasmtime-environ v24.0.0 [INFO] [stderr] Checking wit-component v0.216.0 (/opt/rustwide/workdir) [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/encoding.rs:283:34 [INFO] [stdout] | [INFO] [stdout] 281 | types: impl Iterator>, [INFO] [stdout] | --------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 282 | ) -> Self { [INFO] [stdout] 283 | Self::for_types(resolve, types.flatten()) [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/encoding/world.rs:295:32 [INFO] [stdout] | [INFO] [stdout] 295 | lowerings: Default::default(), [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/gc.rs:1038:5 [INFO] [stdout] | [INFO] [stdout] 1036 | iter: impl Iterator + 'a, [INFO] [stdout] | ---------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 1037 | ) -> impl Iterator + 'a { [INFO] [stdout] 1038 | iter.enumerate().filter_map(|(i, t)| { [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/linking.rs:1018:17 [INFO] [stdout] | [INFO] [stdout] 1015 | .map(|(k, v)| { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1018 | / v.into_iter() [INFO] [stdout] 1019 | | .map(|v| indexes[v]) [INFO] [stdout] 1020 | | .collect_unique::>(), [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/linking.rs:1563:9 [INFO] [stdout] | [INFO] [stdout] 1279 | let adapter_names = self [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1338 | let exporters = resolve_exporters(&metadata)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1350 | let (exporters, missing, _) = resolve_symbols(&metadata, &exporters); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1381 | let dependencies = find_dependencies(&metadata, &exporters)?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1418 | let mut encoder = ComponentEncoder::default() [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1447 | let mut seen = HashSet::new(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1563 | / encoder [INFO] [stdout] 1564 | | .library( [INFO] [stdout] 1565 | | "__init", [INFO] [stdout] 1566 | | &make_init_module( [INFO] [stdout] ... | [INFO] [stdout] 1586 | | }, [INFO] [stdout] 1587 | | )? [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] | | 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] | | 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] | | 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] | |______________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/metadata.rs:103:23 [INFO] [stdout] | [INFO] [stdout] 76 | let mut resolve = Resolve::default(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 103 | metadata: ModuleMetadata::default(), [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/metadata.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 76 | let mut resolve = Resolve::default(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 104 | producers: None, [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/metadata.rs:233:8 [INFO] [stdout] | [INFO] [stdout] 214 | let (resolve, world) = wit_parser::decoding::decode_world(wasm)?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 226 | None => bail!("missing custom section of name `{CUSTOM_SECTION_NAME}`"), [INFO] [stdout] | --------------------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 227 | Some([CURRENT_VERSION, byte]) => decode_string_encoding(*byte)?, [INFO] [stdout] 228 | Some([]) => bail!("custom section `{CUSTOM_SECTION_NAME}` in unknown format"), [INFO] [stdout] | ----------------------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 229 | Some([version, ..]) => bail!( [INFO] [stdout] | ________________________________- [INFO] [stdout] 230 | | "custom section `{CUSTOM_SECTION_NAME}` uses format {version} but only {CURRENT_VERSION} is supported" [INFO] [stdout] 231 | | ), [INFO] [stdout] | |_________- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 232 | }; [INFO] [stdout] 233 | Ok((resolve, world, string_encoding)) [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] | 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/metadata.rs:284:12 [INFO] [stdout] | [INFO] [stdout] 257 | let resolve; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 284 | Ok(Bindgen { [INFO] [stdout] | ____________^ [INFO] [stdout] 285 | | metadata: ModuleMetadata::new(&resolve, world, encoding), [INFO] [stdout] 286 | | producers: wasm_metadata::Producers::from_wasm(wasm)?, [INFO] [stdout] 287 | | resolve, [INFO] [stdout] 288 | | world, [INFO] [stdout] 289 | | }) [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 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wit-component` (lib) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "caa590cb9c693dc3fb02c355c1ccaba91ba4401d88b1711b53a4959c2f83d543", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caa590cb9c693dc3fb02c355c1ccaba91ba4401d88b1711b53a4959c2f83d543", kill_on_drop: false }` [INFO] [stdout] caa590cb9c693dc3fb02c355c1ccaba91ba4401d88b1711b53a4959c2f83d543