[INFO] fetching crate func_wrap 0.1.3... [INFO] checking func_wrap-0.1.3 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate func_wrap 0.1.3 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate func_wrap 0.1.3 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 func_wrap 0.1.3 [INFO] finished tweaking crates.io crate func_wrap 0.1.3 [INFO] tweaked toml for crates.io crate func_wrap 0.1.3 written to /workspace/builds/worker-4-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] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.77) [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] 81e655be71d40af2eeb06793549f44218aabdc30e4330651c6ef77b038590095 [INFO] running `Command { std: "docker" "start" "-a" "81e655be71d40af2eeb06793549f44218aabdc30e4330651c6ef77b038590095", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81e655be71d40af2eeb06793549f44218aabdc30e4330651c6ef77b038590095", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81e655be71d40af2eeb06793549f44218aabdc30e4330651c6ef77b038590095", kill_on_drop: false }` [INFO] [stdout] 81e655be71d40af2eeb06793549f44218aabdc30e4330651c6ef77b038590095 [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] 775cf6f6958e7009af69a52c909b6e8546f7759572e493e2f47f00bef2be6e53 [INFO] running `Command { std: "docker" "start" "-a" "775cf6f6958e7009af69a52c909b6e8546f7759572e493e2f47f00bef2be6e53", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking func_wrap v0.1.3 (/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/lib.rs:73:7 [INFO] [stdout] | [INFO] [stdout] 70 | block: Block, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 73 | {Some({ [INFO] [stdout] | _______^ [INFO] [stdout] 74 | | WrappedFuncCall { [INFO] [stdout] 75 | | sig: func.clone(), [INFO] [stdout] 76 | | call_site_args: [INFO] [stdout] ... | [INFO] [stdout] 113 | | } [INFO] [stdout] 114 | | })} [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/lib.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | .map(|(n, fn_arg)| Some(match *fn_arg { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 81 | | | FnArg::Receiver(ref receiver) => { [INFO] [stdout] 82 | | if outer_scope.is_none() { return None; } [INFO] [stdout] 83 | | let self_ = format_ident!( [INFO] [stdout] ... | [INFO] [stdout] 106 | | }, [INFO] [stdout] 107 | | })) [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/lib.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 126 | let turbofish = { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 127 | let _ = temp; [INFO] [stdout] 128 | let each_ty = sig.generics.type_params().map(|it| &it.ident); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 129 | let each_const = sig.generics.const_params().map(|it| &it.ident); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 130 | / quote!( [INFO] [stdout] 131 | | ::< [INFO] [stdout] 132 | | #(#each_ty ,)* [INFO] [stdout] | | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 133 | | #( {#each_const} ),* [INFO] [stdout] | | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 134 | | > [INFO] [stdout] 135 | | ) [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] 136 | }; [INFO] [stdout] 137 | out.extend(match outer_scope { [INFO] [stdout] | ____________________^ [INFO] [stdout] 138 | | None => quote!( [INFO] [stdout] 139 | ({ [INFO] [stdout] 140 | #[inline(always)] [INFO] [stdout] ... [INFO] [stdout] 231 | }, [INFO] [stdout] 232 | | }) [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/lib.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 238 | input: impl Into, [INFO] [stdout] | ----------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 239 | / mut with: impl FnMut( [INFO] [stdout] 240 | | &'_ mut ImplItemMethod, [INFO] [stdout] 241 | | Option>, [INFO] [stdout] 242 | | ) -> Result<()>, [INFO] [stdout] | |___________________- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 243 | ) -> Result [INFO] [stdout] 244 | {Ok({ [INFO] [stdout] | _____^ [INFO] [stdout] 245 | | let mut input: Item = parse2(input.into())?; [INFO] [stdout] 246 | | match input { [INFO] [stdout] 247 | | | Item::Fn(ref mut it_fn) => { [INFO] [stdout] ... | [INFO] [stdout] 332 | | input [INFO] [stdout] 333 | | })} [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 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `func_wrap` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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/lib.rs:73:7 [INFO] [stdout] | [INFO] [stdout] 70 | block: Block, [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 73 | {Some({ [INFO] [stdout] | _______^ [INFO] [stdout] 74 | | WrappedFuncCall { [INFO] [stdout] 75 | | sig: func.clone(), [INFO] [stdout] 76 | | call_site_args: [INFO] [stdout] ... | [INFO] [stdout] 113 | | } [INFO] [stdout] 114 | | })} [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/lib.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | .map(|(n, fn_arg)| Some(match *fn_arg { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 81 | | | FnArg::Receiver(ref receiver) => { [INFO] [stdout] 82 | | if outer_scope.is_none() { return None; } [INFO] [stdout] 83 | | let self_ = format_ident!( [INFO] [stdout] ... | [INFO] [stdout] 106 | | }, [INFO] [stdout] 107 | | })) [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/lib.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 126 | let turbofish = { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 127 | let _ = temp; [INFO] [stdout] 128 | let each_ty = sig.generics.type_params().map(|it| &it.ident); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 129 | let each_const = sig.generics.const_params().map(|it| &it.ident); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 130 | / quote!( [INFO] [stdout] 131 | | ::< [INFO] [stdout] 132 | | #(#each_ty ,)* [INFO] [stdout] | | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 133 | | #( {#each_const} ),* [INFO] [stdout] | | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 134 | | > [INFO] [stdout] 135 | | ) [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] 136 | }; [INFO] [stdout] 137 | out.extend(match outer_scope { [INFO] [stdout] | ____________________^ [INFO] [stdout] 138 | | None => quote!( [INFO] [stdout] 139 | ({ [INFO] [stdout] 140 | #[inline(always)] [INFO] [stdout] ... [INFO] [stdout] 231 | }, [INFO] [stdout] 232 | | }) [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/lib.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 238 | input: impl Into, [INFO] [stdout] | ----------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 239 | / mut with: impl FnMut( [INFO] [stdout] 240 | | &'_ mut ImplItemMethod, [INFO] [stdout] 241 | | Option>, [INFO] [stdout] 242 | | ) -> Result<()>, [INFO] [stdout] | |___________________- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 243 | ) -> Result [INFO] [stdout] 244 | {Ok({ [INFO] [stdout] | _____^ [INFO] [stdout] 245 | | let mut input: Item = parse2(input.into())?; [INFO] [stdout] 246 | | match input { [INFO] [stdout] 247 | | | Item::Fn(ref mut it_fn) => { [INFO] [stdout] ... | [INFO] [stdout] 332 | | input [INFO] [stdout] 333 | | })} [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/tests.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 15 | tt1: ::proc_macro2::TokenTree, [INFO] [stdout] | ----------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 16 | tt2: ::proc_macro2::TokenTree, [INFO] [stdout] | ----------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 20 | match (tt1, tt2) { [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/tests.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 40 | fn proc_macro (input: TokenStream) [INFO] [stdout] | ------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 43 | / parse_and_func_wrap_with(input, |func, wrapped_func_call| Ok({ [INFO] [stdout] 44 | | if let Some(wrapped_func_call) = wrapped_func_call { [INFO] [stdout] 45 | | func.block = parse_quote!({ #wrapped_func_call }); [INFO] [stdout] 46 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 50 | | } [INFO] [stdout] 51 | | })).map_or_else(|err| err.to_compile_error(), |it| it.into_token_stream()) [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 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `func_wrap` (lib test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "775cf6f6958e7009af69a52c909b6e8546f7759572e493e2f47f00bef2be6e53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "775cf6f6958e7009af69a52c909b6e8546f7759572e493e2f47f00bef2be6e53", kill_on_drop: false }` [INFO] [stdout] 775cf6f6958e7009af69a52c909b6e8546f7759572e493e2f47f00bef2be6e53