[INFO] fetching crate drop-with-owned-fields 0.1.1... [INFO] checking drop-with-owned-fields-0.1.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate drop-with-owned-fields 0.1.1 into /workspace/builds/worker-4-tc2/source [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-4-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate drop-with-owned-fields 0.1.1 [INFO] finished tweaking crates.io crate drop-with-owned-fields 0.1.1 [INFO] tweaked toml for crates.io crate drop-with-owned-fields 0.1.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate drop-with-owned-fields 0.1.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d70d740d9c76e2ddfe57a01f506e647690df4c832ae1679fc815f9fbdd92169 [INFO] running `Command { std: "docker" "start" "-a" "3d70d740d9c76e2ddfe57a01f506e647690df4c832ae1679fc815f9fbdd92169", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d70d740d9c76e2ddfe57a01f506e647690df4c832ae1679fc815f9fbdd92169", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d70d740d9c76e2ddfe57a01f506e647690df4c832ae1679fc815f9fbdd92169", kill_on_drop: false }` [INFO] [stdout] 3d70d740d9c76e2ddfe57a01f506e647690df4c832ae1679fc815f9fbdd92169 [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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fea9e22dd21b55a9d26d0e6be4b8b8516cd9a5bba442d9e48a2e82ede9eda7b [INFO] running `Command { std: "docker" "start" "-a" "4fea9e22dd21b55a9d26d0e6be4b8b8516cd9a5bba442d9e48a2e82ede9eda7b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling drop-with-owned-fields-proc_macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking drop-with-owned-fields v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: `#[drop_with_owned_fields::drop_with_owned_fields]`: support for this kind of input requires enabling the `drop-sugar` Cargo feature, like so: [INFO] [stdout] # Cargo.toml: [INFO] [stdout] [INFO] [stdout] [dependencies] [INFO] [stdout] # ... [INFO] [stdout] drop-with-owned-fields.version = "x.y.z" [INFO] [stdout] drop-with-owned-fields.features = ["drop-sugar"] [INFO] [stdout] --> tests/defer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | impl Drop for Defer { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Defer: DropWithOwnedFields` is not satisfied [INFO] [stdout] --> tests/defer.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[drop_with_owned_fields(as _)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `DropWithOwnedFields` is not implemented for `Defer` [INFO] [stdout] | [INFO] [stdout] = note: The `#[drop_with_owned_fields]` annotation expects 🫵 you to provide a companion `impl` of `DropWithOwnedFields` (the whole point!). [INFO] [stdout] [INFO] [stdout] If you have enabled the `"drop-sugar"` Cargo feature, you can even write a direct `impl` of `Drop` instead, but with a `#[drop_with_owned_fields]` annotation on top of it. [INFO] [stdout] [INFO] [stdout] = note: this error originates in the attribute macro `drop_with_owned_fields` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `drop-with-owned-fields` (test "defer") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `Txn` is never constructed [INFO] [stdout] --> tests/main.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Txn {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `roll_back` is never used [INFO] [stdout] --> tests/main.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Txn { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 15 | fn roll_back(self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4fea9e22dd21b55a9d26d0e6be4b8b8516cd9a5bba442d9e48a2e82ede9eda7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fea9e22dd21b55a9d26d0e6be4b8b8516cd9a5bba442d9e48a2e82ede9eda7b", kill_on_drop: false }` [INFO] [stdout] 4fea9e22dd21b55a9d26d0e6be4b8b8516cd9a5bba442d9e48a2e82ede9eda7b