[INFO] fetching crate inject-macro 0.1.1... [INFO] checking inject-macro-0.1.1 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate inject-macro 0.1.1 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate inject-macro 0.1.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 inject-macro 0.1.1 [INFO] finished tweaking crates.io crate inject-macro 0.1.1 [INFO] tweaked toml for crates.io crate inject-macro 0.1.1 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [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-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 30f85fcfdb1ccf6de9028367aef589ca137cb96beb456522d54d6635be91822e [INFO] running `Command { std: "docker" "start" "-a" "30f85fcfdb1ccf6de9028367aef589ca137cb96beb456522d54d6635be91822e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "30f85fcfdb1ccf6de9028367aef589ca137cb96beb456522d54d6635be91822e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30f85fcfdb1ccf6de9028367aef589ca137cb96beb456522d54d6635be91822e", kill_on_drop: false }` [INFO] [stdout] 30f85fcfdb1ccf6de9028367aef589ca137cb96beb456522d54d6635be91822e [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a0774e28faaa320709e78e4b3a301f5be13ff29680f252993c176d87da6e5e9 [INFO] running `Command { std: "docker" "start" "-a" "1a0774e28faaa320709e78e4b3a301f5be13ff29680f252993c176d87da6e5e9", kill_on_drop: false }` [INFO] [stderr] Checking syn v1.0.109 [INFO] [stderr] Checking inject-macro v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: this value of type `Generics` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/inject/input/constructor.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 54 | let content; [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | generics: input.parse()?, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 59 | paren: parenthesized!(content in input), [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] | [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] warning: methods `and`, `or`, and `or_then` are never used [INFO] [stdout] --> src/bool_to_option.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) trait BoolToOption: Copy + std::ops::Not { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] 2 | fn and(self, t: T) -> Option; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | fn or(self, t: T) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn or_then(self, f: impl FnOnce() -> T) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `comma1` and `comma2` are never read [INFO] [stdout] --> src/call/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Call { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 13 | pub ident: Expr, [INFO] [stdout] 14 | pub comma1: Token![,], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub func: Ident, [INFO] [stdout] 16 | pub comma2: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `keyword`, `equals`, and `brace` are never read [INFO] [stdout] --> src/call/kwargs.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Kwargs { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub keyword: kw::kwargs, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub equals: Token![=], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub brace: Brace, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `keyword` and `colon` are never read [INFO] [stdout] --> src/get.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Create { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub keyword: kw::create, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub colon: Token![:], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `comma` and `comma2` are never read [INFO] [stdout] --> src/get.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Get { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 29 | pub expr: Expr, [INFO] [stdout] 30 | pub comma: Token![,], [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub comma2: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eq` is never read [INFO] [stdout] --> src/inject/arguments/argument/default.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 57 | struct DefaultArg { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 58 | pub field: Ident, [INFO] [stdout] 59 | pub eq: Option, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `vis`, `defaultness`, and `block` are never read [INFO] [stdout] --> src/inject/input/constructor.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ConstructorImpl { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 9 | pub attrs: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub vis: Visibility, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | pub defaultness: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | pub sig: Constructor, [INFO] [stdout] 13 | pub block: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fn_token`, `paren`, `arrow`, and `output` are never read [INFO] [stdout] --> src/inject/input/constructor.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Constructor { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | pub fn_token: Token![fn], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub paren: Paren, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | pub inputs: Punctuated, [INFO] [stdout] 48 | pub arrow: Token![->], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub output: Token![Self], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `vis`, and `block` are never read [INFO] [stdout] --> src/inject/input/free_function.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct FreeFunctionImpl { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 12 | pub attrs: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | pub vis: Visibility, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub sig: FreeFunction, [INFO] [stdout] 15 | pub block: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `unsafety`, `asyncness`, `fn_token`, `paren`, and `output` are never read [INFO] [stdout] --> src/inject/input/free_function.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct FreeFunction { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 30 | pub unsafety: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub asyncness: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub fn_token: Token![fn], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub paren: Paren, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | pub inputs: Punctuated, [INFO] [stdout] 37 | pub output: ReturnType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generics` is never used [INFO] [stdout] --> src/inject/input/injectable_signature.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait InjectableSignature { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn generics(&self) -> &Generics; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `inject-macro` (lib) due to 2 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this value of type `Generics` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/inject/input/constructor.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 54 | let content; [INFO] [stdout] | ------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 58 | generics: input.parse()?, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 59 | paren: parenthesized!(content in input), [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] | [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] warning: fields `comma1` and `comma2` are never read [INFO] [stdout] --> src/call/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Call { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 13 | pub ident: Expr, [INFO] [stdout] 14 | pub comma1: Token![,], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub func: Ident, [INFO] [stdout] 16 | pub comma2: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `keyword`, `equals`, and `brace` are never read [INFO] [stdout] --> src/call/kwargs.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Kwargs { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub keyword: kw::kwargs, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub equals: Token![=], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub brace: Brace, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `keyword` and `colon` are never read [INFO] [stdout] --> src/get.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Create { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub keyword: kw::create, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub colon: Token![:], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `comma2` is never read [INFO] [stdout] --> src/get.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Get { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub comma2: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eq` is never read [INFO] [stdout] --> src/inject/arguments/argument/default.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 57 | struct DefaultArg { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 58 | pub field: Ident, [INFO] [stdout] 59 | pub eq: Option, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `vis`, `defaultness`, and `block` are never read [INFO] [stdout] --> src/inject/input/constructor.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ConstructorImpl { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 9 | pub attrs: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub vis: Visibility, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | pub defaultness: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 12 | pub sig: Constructor, [INFO] [stdout] 13 | pub block: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fn_token`, `paren`, `arrow`, and `output` are never read [INFO] [stdout] --> src/inject/input/constructor.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Constructor { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | pub fn_token: Token![fn], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub paren: Paren, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | pub inputs: Punctuated, [INFO] [stdout] 48 | pub arrow: Token![->], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 49 | pub output: Token![Self], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `attrs`, `vis`, and `block` are never read [INFO] [stdout] --> src/inject/input/free_function.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct FreeFunctionImpl { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 12 | pub attrs: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | pub vis: Visibility, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub sig: FreeFunction, [INFO] [stdout] 15 | pub block: Block, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `unsafety`, `asyncness`, `fn_token`, `paren`, and `output` are never read [INFO] [stdout] --> src/inject/input/free_function.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct FreeFunction { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 30 | pub unsafety: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | pub asyncness: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub fn_token: Token![fn], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub paren: Paren, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | pub inputs: Punctuated, [INFO] [stdout] 37 | pub output: ReturnType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generics` is never used [INFO] [stdout] --> src/inject/input/injectable_signature.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait InjectableSignature { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 7 | fn generics(&self) -> &Generics; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `inject-macro` (lib test) due to 2 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1a0774e28faaa320709e78e4b3a301f5be13ff29680f252993c176d87da6e5e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a0774e28faaa320709e78e4b3a301f5be13ff29680f252993c176d87da6e5e9", kill_on_drop: false }` [INFO] [stdout] 1a0774e28faaa320709e78e4b3a301f5be13ff29680f252993c176d87da6e5e9