[INFO] fetching crate ontio-codegen 0.2.1... [INFO] checking ontio-codegen-0.2.1 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate ontio-codegen 0.2.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate ontio-codegen 0.2.1 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ontio-codegen 0.2.1 [INFO] finished tweaking crates.io crate ontio-codegen 0.2.1 [INFO] tweaked toml for crates.io crate ontio-codegen 0.2.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 24 packages to latest compatible versions [INFO] [stderr] Adding block-buffer v0.9.0 (available: v0.10.4) [INFO] [stderr] Adding digest v0.9.0 (available: v0.10.7) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding heck v0.3.3 (available: v0.5.0) [INFO] [stderr] Adding num v0.3.1 (available: v0.4.3) [INFO] [stderr] Adding num-bigint v0.3.3 (available: v0.4.6) [INFO] [stderr] Adding num-complex v0.3.1 (available: v0.4.6) [INFO] [stderr] Adding num-rational v0.3.2 (available: v0.4.2) [INFO] [stderr] Adding sha2 v0.9.9 (available: v0.10.8) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d8e5c36c96530b79ca6b86bf9ec379c486b33025947692c9693498728eca6c5 [INFO] running `Command { std: "docker" "start" "-a" "2d8e5c36c96530b79ca6b86bf9ec379c486b33025947692c9693498728eca6c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d8e5c36c96530b79ca6b86bf9ec379c486b33025947692c9693498728eca6c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d8e5c36c96530b79ca6b86bf9ec379c486b33025947692c9693498728eca6c5", kill_on_drop: false }` [INFO] [stdout] 2d8e5c36c96530b79ca6b86bf9ec379c486b33025947692c9693498728eca6c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4bc92b3dbcb15b079a2d24666b4a6b8dbc1bceab68b41b0952d81eef40b4ffc5 [INFO] running `Command { std: "docker" "start" "-a" "4bc92b3dbcb15b079a2d24666b4a6b8dbc1bceab68b41b0952d81eef40b4ffc5", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking unicode-ident v1.0.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking proc-macro2 v1.0.86 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking heck v0.3.3 [INFO] [stderr] Checking quote v1.0.37 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking ontio-codegen v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] error: this value of type `LitStr` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/contract.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | let action_literal = syn::LitStr::new(&action_name.to_string(), proc_macro2::Span::call_site()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | Some(quote!{ [INFO] [stdout] | ______________________________- [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] 168 | | #action_literal => { [INFO] [stdout] 169 | | let res = contract_instance.#action_name(#(#args),*); [INFO] [stdout] 170 | | let mut sink = ontio_std::abi::Sink::new(16); [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] 174 | | }) [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] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 177 | Some(quote!{ [INFO] [stdout] | ______________________________- [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] 178 | | #action_literal => { [INFO] [stdout] 179 | | contract_instance.#action_name(#(source.read::<#args>().expect(arg_decode_err)),*); [INFO] [stdout] 180 | | alloc::vec::Vec::new() [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | }) [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] | 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 `syn::Item` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn event(metadata: TokenStream, input: TokenStream) -> TokenStream { [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | match syn::parse::(input).unwrap() { [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] warning: field `name` is never read [INFO] [stdout] --> src/contract.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 103 | struct ContractEvent { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 104 | name: syn::Ident, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `LitStr` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/contract.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | let action_literal = syn::LitStr::new(&action_name.to_string(), proc_macro2::Span::call_site()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | Some(quote!{ [INFO] [stdout] | ______________________________- [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] 168 | | #action_literal => { [INFO] [stdout] 169 | | let res = contract_instance.#action_name(#(#args),*); [INFO] [stdout] 170 | | let mut sink = ontio_std::abi::Sink::new(16); [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] 174 | | }) [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] | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 177 | Some(quote!{ [INFO] [stdout] | ______________________________- [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] | |______________________________| [INFO] [stdout] 178 | | #action_literal => { [INFO] [stdout] 179 | | contract_instance.#action_name(#(source.read::<#args>().expect(arg_decode_err)),*); [INFO] [stdout] 180 | | alloc::vec::Vec::new() [INFO] [stdout] 181 | | } [INFO] [stdout] 182 | | }) [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] | 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] [stderr] error: could not compile `ontio-codegen` (lib) due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this value of type `syn::Item` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn event(metadata: TokenStream, input: TokenStream) -> TokenStream { [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 24 | match syn::parse::(input).unwrap() { [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] warning: field `name` is never read [INFO] [stdout] --> src/contract.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 103 | struct ContractEvent { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 104 | name: syn::Ident, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ontio-codegen` (lib test) due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "4bc92b3dbcb15b079a2d24666b4a6b8dbc1bceab68b41b0952d81eef40b4ffc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bc92b3dbcb15b079a2d24666b4a6b8dbc1bceab68b41b0952d81eef40b4ffc5", kill_on_drop: false }` [INFO] [stdout] 4bc92b3dbcb15b079a2d24666b4a6b8dbc1bceab68b41b0952d81eef40b4ffc5