[INFO] fetching crate spez-macros 0.1.0... [INFO] checking spez-macros-0.1.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate spez-macros 0.1.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate spez-macros 0.1.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 spez-macros 0.1.0 [INFO] finished tweaking crates.io crate spez-macros 0.1.0 [INFO] tweaked toml for crates.io crate spez-macros 0.1.0 written to /workspace/builds/worker-0-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 6 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 86de77675fead175534fa8023463e0f865d2844dcdfa6fc9991c1fda946f61c7 [INFO] running `Command { std: "docker" "start" "-a" "86de77675fead175534fa8023463e0f865d2844dcdfa6fc9991c1fda946f61c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86de77675fead175534fa8023463e0f865d2844dcdfa6fc9991c1fda946f61c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86de77675fead175534fa8023463e0f865d2844dcdfa6fc9991c1fda946f61c7", kill_on_drop: false }` [INFO] [stdout] 86de77675fead175534fa8023463e0f865d2844dcdfa6fc9991c1fda946f61c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 343bf4e2746ddf5048fd19035782a5c387e7692716d2091b496bf1838a09dc43 [INFO] running `Command { std: "docker" "start" "-a" "343bf4e2746ddf5048fd19035782a5c387e7692716d2091b496bf1838a09dc43", kill_on_drop: false }` [INFO] [stderr] Checking syn v1.0.109 [INFO] [stderr] Checking spez-macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `for_token`, `at_token`, and `semicolon_token` are never read [INFO] [stdout] --> src/parse.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Args { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub for_token: Token![for], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | pub param: Option, [INFO] [stdout] 9 | pub at_token: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | pub expr: syn::Expr, [INFO] [stdout] 11 | pub semicolon_token: Token![;], [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `match_token` and `arrow_token` are never read [INFO] [stdout] --> src/parse.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Arm { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 16 | pub match_token: Token![match], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub arrow_token: Option]>, [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/lib.rs:14:2 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn spez(tokens: TokenStream) -> TokenStream { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 14 | spez_impl(syn::parse_macro_input!(tokens)).into() [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/parse.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 27 | let param; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 28 | let at_token; [INFO] [stdout] 29 | let expr; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 44 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 45 | | for_token, [INFO] [stdout] 46 | | param, [INFO] [stdout] 47 | | at_token, [INFO] [stdout] ... | [INFO] [stdout] 56 | | }, [INFO] [stdout] 57 | | }) [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/parse.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 64 | let generics = if input.peek(Token![<]) { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 69 | let ty = input.parse()?; [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 70 | let where_clause: Option = input.parse()?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 71 | let (arrow_token, return_type) = if input.peek(Token![->]) { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 76 | let body = input.parse()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 77 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 78 | | match_token, [INFO] [stdout] 79 | | generics: syn::Generics { [INFO] [stdout] 80 | | where_clause, [INFO] [stdout] ... | [INFO] [stdout] 86 | | body, [INFO] [stdout] 87 | | }) [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] | [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/parse.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 91 | fn ident_to_expr(ident: syn::Ident) -> syn::Expr { [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | syn::Expr::Path(syn::ExprPath { [INFO] [stdout] | _____________________^ [INFO] [stdout] 93 | | attrs: Vec::new(), [INFO] [stdout] 94 | | qself: None, [INFO] [stdout] 95 | | path: syn::Path { [INFO] [stdout] ... | [INFO] [stdout] 101 | | }, [INFO] [stdout] 102 | | }) [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; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `spez-macros` (lib test) due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `for_token`, `at_token`, and `semicolon_token` are never read [INFO] [stdout] --> src/parse.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Args { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub for_token: Token![for], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | pub param: Option, [INFO] [stdout] 9 | pub at_token: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | pub expr: syn::Expr, [INFO] [stdout] 11 | pub semicolon_token: Token![;], [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `match_token` and `arrow_token` are never read [INFO] [stdout] --> src/parse.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Arm { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 16 | pub match_token: Token![match], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub arrow_token: Option]>, [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/lib.rs:14:2 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn spez(tokens: TokenStream) -> TokenStream { [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 14 | spez_impl(syn::parse_macro_input!(tokens)).into() [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/parse.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 27 | let param; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 28 | let at_token; [INFO] [stdout] 29 | let expr; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 44 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 45 | | for_token, [INFO] [stdout] 46 | | param, [INFO] [stdout] 47 | | at_token, [INFO] [stdout] ... | [INFO] [stdout] 56 | | }, [INFO] [stdout] 57 | | }) [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/parse.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 64 | let generics = if input.peek(Token![<]) { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 69 | let ty = input.parse()?; [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 70 | let where_clause: Option = input.parse()?; [INFO] [stdout] | ------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 71 | let (arrow_token, return_type) = if input.peek(Token![->]) { [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 76 | let body = input.parse()?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 77 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 78 | | match_token, [INFO] [stdout] 79 | | generics: syn::Generics { [INFO] [stdout] 80 | | where_clause, [INFO] [stdout] ... | [INFO] [stdout] 86 | | body, [INFO] [stdout] 87 | | }) [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] | [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/parse.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 91 | fn ident_to_expr(ident: syn::Ident) -> syn::Expr { [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | syn::Expr::Path(syn::ExprPath { [INFO] [stdout] | _____________________^ [INFO] [stdout] 93 | | attrs: Vec::new(), [INFO] [stdout] 94 | | qself: None, [INFO] [stdout] 95 | | path: syn::Path { [INFO] [stdout] ... | [INFO] [stdout] 101 | | }, [INFO] [stdout] 102 | | }) [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; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `spez-macros` (lib) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "343bf4e2746ddf5048fd19035782a5c387e7692716d2091b496bf1838a09dc43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "343bf4e2746ddf5048fd19035782a5c387e7692716d2091b496bf1838a09dc43", kill_on_drop: false }` [INFO] [stdout] 343bf4e2746ddf5048fd19035782a5c387e7692716d2091b496bf1838a09dc43