[INFO] cloning repository https://github.com/ZhangHanDong/proc_codegen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZhangHanDong/proc_codegen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangHanDong%2Fproc_codegen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangHanDong%2Fproc_codegen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d69502f52daa56298466089122cb4c441de18f9 [INFO] checking ZhangHanDong/proc_codegen/1d69502f52daa56298466089122cb4c441de18f9 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangHanDong%2Fproc_codegen" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZhangHanDong/proc_codegen 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 git repo https://github.com/ZhangHanDong/proc_codegen [INFO] finished tweaking git repo https://github.com/ZhangHanDong/proc_codegen [INFO] tweaked toml for git repo https://github.com/ZhangHanDong/proc_codegen written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ZhangHanDong/proc_codegen already has a lockfile, it will not be regenerated [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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] d7fef86ec378d58ff424dfd012f2e0215e29c2e606b43af562c664d7c1567449 [INFO] running `Command { std: "docker" "start" "-a" "d7fef86ec378d58ff424dfd012f2e0215e29c2e606b43af562c664d7c1567449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d7fef86ec378d58ff424dfd012f2e0215e29c2e606b43af562c664d7c1567449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7fef86ec378d58ff424dfd012f2e0215e29c2e606b43af562c664d7c1567449", kill_on_drop: false }` [INFO] [stdout] d7fef86ec378d58ff424dfd012f2e0215e29c2e606b43af562c664d7c1567449 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 97afd453b5d0ff406e915d65c3978d1d74b5ef8f7f917a900aad6cc12dd35ed5 [INFO] running `Command { std: "docker" "start" "-a" "97afd453b5d0ff406e915d65c3978d1d74b5ef8f7f917a900aad6cc12dd35ed5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Compiling codegen v0.1.0 (/opt/rustwide/workdir/codegen) [INFO] [stdout] warning: unused imports: `Expr`, `Type`, and `parenthesized` [INFO] [stdout] --> codegen/src/lib.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | syn::{parenthesized, braced, Field, Expr, Type, parse_macro_input, token, Ident, Token}, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `toml` [INFO] [stdout] --> codegen/src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use toml; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> codegen/src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> codegen/src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> codegen/src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> codegen/src/genstruct.rs:101:45 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) fn struct_by_conf_to_tokenstream(input: TokenStream) -> TokenStream { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> codegen/src/genstruct.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut fields_quote = { [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> codegen/src/genstruct.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut args_quote = { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> codegen/src/genstruct.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut args_name_quote = { [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tagged` is never read [INFO] [stdout] --> codegen/src/conf.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) struct StructEntry { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 17 | pub(crate) name: String, [INFO] [stdout] 18 | pub(crate) tagged: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructEntry` 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] warning: field `brace_token` is never read [INFO] [stdout] --> codegen/src/genstruct.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct Genstruct { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 8 | pub name: Ident, [INFO] [stdout] 9 | pub brace_token: token::Brace, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConfPath` is never constructed [INFO] [stdout] --> codegen/src/genstruct.rs:83:19 [INFO] [stdout] | [INFO] [stdout] 83 | pub(crate) struct ConfPath { [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] --> codegen/src/conf.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut file = match File::open(file_path) { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | Ok(f) => f, [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | Err(e) => panic!("no such file {} exception:{}", file_path, e) [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 45 | toml::from_str::(&str_val).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] = 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] --> codegen/src/genstruct.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | let fields; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 19 | let brace_token = braced!(fields in input); [INFO] [stdout] | ------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | let fields = fields.parse_terminated(Field::parse_named)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 21 | [INFO] [stdout] 22 | Ok(Genstruct { [INFO] [stdout] | ____________^ [INFO] [stdout] 23 | | name, [INFO] [stdout] 24 | | brace_token, [INFO] [stdout] 25 | | fields, [INFO] [stdout] 26 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [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 2 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `codegen` (lib) due to 3 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "97afd453b5d0ff406e915d65c3978d1d74b5ef8f7f917a900aad6cc12dd35ed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97afd453b5d0ff406e915d65c3978d1d74b5ef8f7f917a900aad6cc12dd35ed5", kill_on_drop: false }` [INFO] [stdout] 97afd453b5d0ff406e915d65c3978d1d74b5ef8f7f917a900aad6cc12dd35ed5