[INFO] fetching crate rust_swig 0.5.1... [INFO] checking rust_swig-0.5.1 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate rust_swig 0.5.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate rust_swig 0.5.1 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 rust_swig 0.5.1 [INFO] finished tweaking crates.io crate rust_swig 0.5.1 [INFO] tweaked toml for crates.io crate rust_swig 0.5.1 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 64 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding env_logger v0.7.1 (available: v0.11.5) [INFO] [stderr] Adding fixedbitset v0.2.0 (available: v0.5.7) [INFO] [stderr] Adding hashbrown v0.12.3 (available: v0.14.5) [INFO] [stderr] Adding heck v0.3.3 (available: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.1.19 (available: v0.4.0) [INFO] [stderr] Adding humantime v1.3.0 (available: v2.1.0) [INFO] [stderr] Adding indexmap v1.9.3 (available: v2.5.0) [INFO] [stderr] Adding jni-sys v0.3.0 (available: v0.4.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding petgraph v0.5.1 (available: v0.6.5) [INFO] [stderr] Adding pulldown-cmark v0.7.2 (available: v0.12.1) [INFO] [stderr] Adding quick-error v1.2.3 (available: v2.0.1) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding smol_str v0.1.24 (available: v0.3.1) [INFO] [stderr] Adding strum v0.18.0 (available: v0.26.3) [INFO] [stderr] Adding strum_macros v0.18.0 (available: v0.26.4) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] [stderr] Adding which v3.1.1 (available: v6.0.3) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [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-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3da8216684e58f19938dac8c4d478ca1042828185ba429c4f44b59de09dd00e [INFO] running `Command { std: "docker" "start" "-a" "b3da8216684e58f19938dac8c4d478ca1042828185ba429c4f44b59de09dd00e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3da8216684e58f19938dac8c4d478ca1042828185ba429c4f44b59de09dd00e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3da8216684e58f19938dac8c4d478ca1042828185ba429c4f44b59de09dd00e", kill_on_drop: false }` [INFO] [stdout] b3da8216684e58f19938dac8c4d478ca1042828185ba429c4f44b59de09dd00e [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64c569c1c2ff378cab6dd1eb2b1e5ad28ffbfd68997d866079b8e2d70c1bd9c2 [INFO] running `Command { std: "docker" "start" "-a" "64c569c1c2ff378cab6dd1eb2b1e5ad28ffbfd68997d866079b8e2d70c1bd9c2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking unicode-ident v1.0.13 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking fixedbitset v0.2.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling pulldown-cmark v0.7.2 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking which v3.1.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking jni-sys v0.3.0 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking heck v0.3.3 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking petgraph v0.5.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking smol_str v0.1.24 [INFO] [stderr] Checking tempfile v3.13.0 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling strum_macros v0.18.0 [INFO] [stderr] Compiling rust_swig v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking strum v0.18.0 [INFO] [stdout] error: this value of type `(Vec, bool)` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/code_parse.rs:526:21 [INFO] [stdout] | [INFO] [stdout] 523 | fn try_from(x: syn::Signature) -> std::result::Result { [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] 526 | inputs: parse_fn_args(x.inputs)?.0, [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: this value of type `(Vec, bool)` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/code_parse.rs:526:21 [INFO] [stdout] | [INFO] [stdout] 523 | fn try_from(x: syn::Signature) -> std::result::Result { [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] 526 | inputs: parse_fn_args(x.inputs)?.0, [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: this value of type `Option<(syn::Type, TokenStream2)>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/python/mod.rs:555:44 [INFO] [stdout] | [INFO] [stdout] 544 | rust_call: TokenStream, [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 555 | } else if let Some((ty, conversion)) = if_exported_class_generate_return_conversion( [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 556 | | &rust_type, [INFO] [stdout] 557 | | conv_map, [INFO] [stdout] 558 | | &rust_call, [INFO] [stdout] 559 | | method_span, [INFO] [stdout] 560 | | src_id, [INFO] [stdout] 561 | | )? { [INFO] [stdout] | |______^ [INFO] [stdout] ... [INFO] [stdout] 668 | parse_type! {( #( #types, )* )}, [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] 669 | / quote! { [INFO] [stdout] 670 | | { [INFO] [stdout] 671 | | let tuple = #rust_call; [INFO] [stdout] 672 | | ( [INFO] [stdout] ... | [INFO] [stdout] 675 | | } [INFO] [stdout] 676 | | }, [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] ::: src/lib.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | ($($tt:tt)*) => {{ [INFO] [stdout] | ______________________- [INFO] [stdout] 13 | | let ty: syn::Type = syn::parse_quote! { $($tt)* }; [INFO] [stdout] 14 | | ty [INFO] [stdout] 15 | | }} [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<(syn::Type, TokenStream2)>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/python/mod.rs:555:44 [INFO] [stdout] | [INFO] [stdout] 544 | rust_call: TokenStream, [INFO] [stdout] | --------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 555 | } else if let Some((ty, conversion)) = if_exported_class_generate_return_conversion( [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] 556 | | &rust_type, [INFO] [stdout] 557 | | conv_map, [INFO] [stdout] 558 | | &rust_call, [INFO] [stdout] 559 | | method_span, [INFO] [stdout] 560 | | src_id, [INFO] [stdout] 561 | | )? { [INFO] [stdout] | |______^ [INFO] [stdout] ... [INFO] [stdout] 668 | parse_type! {( #( #types, )* )}, [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] 669 | / quote! { [INFO] [stdout] 670 | | { [INFO] [stdout] 671 | | let tuple = #rust_call; [INFO] [stdout] 672 | | ( [INFO] [stdout] ... | [INFO] [stdout] 675 | | } [INFO] [stdout] 676 | | }, [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] ::: src/lib.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | ($($tt:tt)*) => {{ [INFO] [stdout] | ______________________- [INFO] [stdout] 13 | | let ty: syn::Type = syn::parse_quote! { $($tt)* }; [INFO] [stdout] 14 | | ty [INFO] [stdout] 15 | | }} [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 `subst_map::TyParamsSubstMap<'_>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/typemap/ast/tests.rs:428:13 [INFO] [stdout] | [INFO] [stdout] 396 | let ty1: Type = syn::parse_str( [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 410 | let ty2: Type = syn::parse_str( [INFO] [stdout] | --- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 428 | let mut subst_map = TyParamsSubstMap::default(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | ($($tt:tt)*) => {{ [INFO] [stdout] | ______________________- [INFO] [stdout] | |______________________| [INFO] [stdout] 13 | | let ty: syn::Type = syn::parse_quote! { $($tt)* }; [INFO] [stdout] 14 | | ty [INFO] [stdout] 15 | | }} [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] warning: method `name` is never used [INFO] [stdout] --> src/typemap/utils.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) trait ForeignTypeInfoT { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] 26 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `output` is never used [INFO] [stdout] --> src/typemap/utils.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) trait ForeignMethodSignature { [INFO] [stdout] | ---------------------- method in this trait [INFO] [stdout] 40 | type FI: ForeignTypeInfoT; [INFO] [stdout] 41 | fn output(&self) -> &dyn ForeignTypeInfoT; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `span` is never read [INFO] [stdout] --> src/types.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 125 | pub(crate) struct FnDecl { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 126 | pub(crate) span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnDecl` 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: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_swig` (lib) due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/typemap/utils.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) trait ForeignTypeInfoT { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] 26 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `output` is never used [INFO] [stdout] --> src/typemap/utils.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) trait ForeignMethodSignature { [INFO] [stdout] | ---------------------- method in this trait [INFO] [stdout] 40 | type FI: ForeignTypeInfoT; [INFO] [stdout] 41 | fn output(&self) -> &dyn ForeignTypeInfoT; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `span` is never read [INFO] [stdout] --> src/types.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 125 | pub(crate) struct FnDecl { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 126 | pub(crate) span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FnDecl` 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: aborting due to 3 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_swig` (lib test) due to 4 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "64c569c1c2ff378cab6dd1eb2b1e5ad28ffbfd68997d866079b8e2d70c1bd9c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64c569c1c2ff378cab6dd1eb2b1e5ad28ffbfd68997d866079b8e2d70c1bd9c2", kill_on_drop: false }` [INFO] [stdout] 64c569c1c2ff378cab6dd1eb2b1e5ad28ffbfd68997d866079b8e2d70c1bd9c2