[INFO] fetching crate objective-rust-macros 0.1.0... [INFO] building objective-rust-macros-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate objective-rust-macros 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate objective-rust-macros 0.1.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate objective-rust-macros 0.1.0 [INFO] finished tweaking crates.io crate objective-rust-macros 0.1.0 [INFO] tweaked toml for crates.io crate objective-rust-macros 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed3dff51edecf4afbc640b6253dc2e975f9aa0cbf413d0f6e980b3a8f36ae5e7 [INFO] running `Command { std: "docker" "start" "-a" "ed3dff51edecf4afbc640b6253dc2e975f9aa0cbf413d0f6e980b3a8f36ae5e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed3dff51edecf4afbc640b6253dc2e975f9aa0cbf413d0f6e980b3a8f36ae5e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed3dff51edecf4afbc640b6253dc2e975f9aa0cbf413d0f6e980b3a8f36ae5e7", kill_on_drop: false }` [INFO] [stdout] ed3dff51edecf4afbc640b6253dc2e975f9aa0cbf413d0f6e980b3a8f36ae5e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe473ebbfaf0f6daf0d357e0c498a130961ea698d4652f922a9da8483cb4fb16 [INFO] running `Command { std: "docker" "start" "-a" "fe473ebbfaf0f6daf0d357e0c498a130961ea698d4652f922a9da8483cb4fb16", kill_on_drop: false }` [INFO] [stderr] Compiling objective-rust-macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/parser.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 44 | while let Some(raw_token) = tokens.next() { [INFO] [stdout] | --------- ^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#6` [INFO] [stdout] | | up until Edition 2021 `#6` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | `raw_token` calls a custom destructor [INFO] [stdout] | `raw_token` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 52 | tokens.next().unwrap(); [INFO] [stdout] | ---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] 53 | [INFO] [stdout] 54 | let Some(TokenTree::Group(group)) = tokens.next() else { [INFO] [stdout] | ----- ------------- [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | `#2` will be dropped later as of Edition 2024 [INFO] [stdout] | `group` calls a custom destructor [INFO] [stdout] | `group` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 83 | let mut scope = vec![ [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `scope` calls a custom destructor [INFO] [stdout] | `scope` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 88 | let Some(TokenTree::Group(braces)) = tokens.next() else { [INFO] [stdout] | ------ ------------- [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#3` [INFO] [stdout] | | `#3` will be dropped later as of Edition 2024 [INFO] [stdout] | `braces` calls a custom destructor [INFO] [stdout] | `braces` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 103 | let scoped_output = parse_macro_input(braces.stream().into_iter().peekable())?; [INFO] [stdout] | ---------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#4` [INFO] [stdout] | `#4` will be dropped later as of Edition 2024 [INFO] [stdout] 104 | let scoped_tokens = crate::codegen::generate(scoped_output)?; [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#5` [INFO] [stdout] | `#5` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 116 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: `#6` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `raw_token` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `group` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `scope` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `braces` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#3` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#4` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#5` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] = note: this error originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/parser.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | while let Some(raw_token) = tokens.next() { [INFO] [stdout] | --------- ^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#7` [INFO] [stdout] | | up until Edition 2021 `#7` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | `raw_token` calls a custom destructor [INFO] [stdout] | `raw_token` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 132 | let Some(TokenTree::Ident(name)) = tokens.next() else { [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 139 | let Some(TokenTree::Punct(semicolon)) = tokens.next() else { [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | `#2` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 168 | let Some(TokenTree::Group(brackets)) = tokens.next() else { [INFO] [stdout] | -------- ------------- [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#3` [INFO] [stdout] | | `#3` will be dropped later as of Edition 2024 [INFO] [stdout] | `brackets` calls a custom destructor [INFO] [stdout] | `brackets` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 176 | let mut tokens = brackets.stream().into_iter(); [INFO] [stdout] | ---------- [INFO] [stdout] | | [INFO] [stdout] | `tokens` calls a custom destructor [INFO] [stdout] | `tokens` will be dropped later as of Edition 2024 [INFO] [stdout] 177 | let Some(TokenTree::Ident(name)) = tokens.next() else { [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#4` [INFO] [stdout] | `#4` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 187 | let Some(TokenTree::Punct(equals)) = tokens.next() else { [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#5` [INFO] [stdout] | `#5` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 202 | let Some(TokenTree::Literal(selector)) = tokens.next() else { [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#6` [INFO] [stdout] | `#6` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 233 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: `#7` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `raw_token` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `brackets` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#3` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `tokens` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#4` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#5` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] note: `#6` invokes this custom destructor [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/proc_macro/src/bridge/client.rs:100:1 [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: this error originates in the macro `define_client_handles` which comes from the expansion of the macro `with_api_handle_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `objective-rust-macros` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "fe473ebbfaf0f6daf0d357e0c498a130961ea698d4652f922a9da8483cb4fb16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe473ebbfaf0f6daf0d357e0c498a130961ea698d4652f922a9da8483cb4fb16", kill_on_drop: false }` [INFO] [stdout] fe473ebbfaf0f6daf0d357e0c498a130961ea698d4652f922a9da8483cb4fb16