[INFO] fetching crate cmacro 0.2.2... [INFO] checking cmacro-0.2.2 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate cmacro 0.2.2 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate cmacro 0.2.2 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cmacro 0.2.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate cmacro 0.2.2 [INFO] tweaked toml for crates.io crate cmacro 0.2.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 25 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09368ea64a6a377d38fa50e64d7df1542f1d93e8e4091ed7f8066ea8d01cbbe9 [INFO] running `Command { std: "docker" "start" "-a" "09368ea64a6a377d38fa50e64d7df1542f1d93e8e4091ed7f8066ea8d01cbbe9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09368ea64a6a377d38fa50e64d7df1542f1d93e8e4091ed7f8066ea8d01cbbe9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09368ea64a6a377d38fa50e64d7df1542f1d93e8e4091ed7f8066ea8d01cbbe9", kill_on_drop: false }` [INFO] [stdout] 09368ea64a6a377d38fa50e64d7df1542f1d93e8e4091ed7f8066ea8d01cbbe9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 686de195a5978656a2164f2968772b9a981db1c9259659f4597d06a7d944dfb7 [INFO] running `Command { std: "docker" "start" "-a" "686de195a5978656a2164f2968772b9a981db1c9259659f4597d06a7d944dfb7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking unicode-ident v1.0.13 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking cmacro v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking clang v2.0.0 [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/ty.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | let leading_colon = if *leading_colon { Some(quote! { :: }) } else { None }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 324 | let ids = segments.iter().map(|id| id.to_token_stream(ctx)); [INFO] [stdout] 325 | tokens.append_all(quote! { #leading_colon #(#ids)::* }) [INFO] [stdout] | ------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/identifier.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | let trait_prefix = ctx.trait_prefix(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | quote! { #trait_prefix concat_idents!(#(#ids),*) } [INFO] [stdout] | -------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expr.rs:1087:13 [INFO] [stdout] | [INFO] [stdout] 1087 | let ffi_prefix = ctx.ffi_prefix(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1102 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] | |___________________________| [INFO] [stdout] 1103 | | { [INFO] [stdout] 1104 | | const BYTES: &[u8] = #trait_prefix concat!(#(#names),*, '\0').as_bytes(); [INFO] [stdout] 1105 | | BYTES.as_ptr() as *const #ffi_prefix c_char [INFO] [stdout] 1106 | | } [INFO] [stdout] 1107 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: this value of type `Vec` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let block = block.iter().map(|stmt| stmt.to_token_stream(ctx)).collect::>(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] 187 | [INFO] [stdout] 188 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] 189 | | { [INFO] [stdout] 190 | | #(#block)* [INFO] [stdout] 191 | | } [INFO] [stdout] 192 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 198 | | let else_branch = if else_branch.is_empty() { None } else { Some(quote! { else { #(#else_branch);* } }) }; [INFO] [stdout] | | ------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 199 | | [INFO] [stdout] 200 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] 201 | | if #condition { [INFO] [stdout] 202 | | #(#if_branch)* [INFO] [stdout] 203 | | } #else_branch [INFO] [stdout] 204 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 210 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] 211 | | loop { [INFO] [stdout] 212 | | #(#block)* [INFO] [stdout] ... | [INFO] [stdout] 217 | | } [INFO] [stdout] 218 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cmacro` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/ty.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | let leading_colon = if *leading_colon { Some(quote! { :: }) } else { None }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 324 | let ids = segments.iter().map(|id| id.to_token_stream(ctx)); [INFO] [stdout] 325 | tokens.append_all(quote! { #leading_colon #(#ids)::* }) [INFO] [stdout] | ------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/identifier.rs:323:13 [INFO] [stdout] | [INFO] [stdout] 323 | let trait_prefix = ctx.trait_prefix(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | quote! { #trait_prefix concat_idents!(#(#ids),*) } [INFO] [stdout] | -------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: this value of type `Option` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/expr.rs:1087:13 [INFO] [stdout] | [INFO] [stdout] 1087 | let ffi_prefix = ctx.ffi_prefix(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1102 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] | |___________________________| [INFO] [stdout] 1103 | | { [INFO] [stdout] 1104 | | const BYTES: &[u8] = #trait_prefix concat!(#(#names),*, '\0').as_bytes(); [INFO] [stdout] 1105 | | BYTES.as_ptr() as *const #ffi_prefix c_char [INFO] [stdout] 1106 | | } [INFO] [stdout] 1107 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: this value of type `Vec` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/statement.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let block = block.iter().map(|stmt| stmt.to_token_stream(ctx)).collect::>(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] 187 | [INFO] [stdout] 188 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] 189 | | { [INFO] [stdout] 190 | | #(#block)* [INFO] [stdout] 191 | | } [INFO] [stdout] 192 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 198 | | let else_branch = if else_branch.is_empty() { None } else { Some(quote! { else { #(#else_branch);* } }) }; [INFO] [stdout] | | ------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 199 | | [INFO] [stdout] 200 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] 201 | | if #condition { [INFO] [stdout] 202 | | #(#if_branch)* [INFO] [stdout] 203 | | } #else_branch [INFO] [stdout] 204 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 210 | tokens.append_all(quote! { [INFO] [stdout] | ___________________________- [INFO] [stdout] | |___________________________| [INFO] [stdout] 211 | | loop { [INFO] [stdout] 212 | | #(#block)* [INFO] [stdout] ... | [INFO] [stdout] 217 | | } [INFO] [stdout] 218 | | }) [INFO] [stdout] | | - [INFO] [stdout] | |_________| [INFO] [stdout] | |_________these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | these local bindings with significant drop implementation may 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: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cmacro` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "686de195a5978656a2164f2968772b9a981db1c9259659f4597d06a7d944dfb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "686de195a5978656a2164f2968772b9a981db1c9259659f4597d06a7d944dfb7", kill_on_drop: false }` [INFO] [stdout] 686de195a5978656a2164f2968772b9a981db1c9259659f4597d06a7d944dfb7