[INFO] fetching crate vtable 0.2.0... [INFO] checking vtable-0.2.0 against try#da25749bf5e6ba5ed862ff361c19afff2a986b2d for pr-132712 [INFO] extracting crate vtable 0.2.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate vtable 0.2.0 on toolchain da25749bf5e6ba5ed862ff361c19afff2a986b2d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate vtable 0.2.0 [INFO] finished tweaking crates.io crate vtable 0.2.0 [INFO] tweaked toml for crates.io crate vtable 0.2.0 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" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 14 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 330076487c4750715dac96748bf482cd91bd8ab2f79780ba0330fc1c8c799717 [INFO] running `Command { std: "docker" "start" "-a" "330076487c4750715dac96748bf482cd91bd8ab2f79780ba0330fc1c8c799717", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "330076487c4750715dac96748bf482cd91bd8ab2f79780ba0330fc1c8c799717", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "330076487c4750715dac96748bf482cd91bd8ab2f79780ba0330fc1c8c799717", kill_on_drop: false }` [INFO] [stdout] 330076487c4750715dac96748bf482cd91bd8ab2f79780ba0330fc1c8c799717 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+da25749bf5e6ba5ed862ff361c19afff2a986b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a688ec34a15bea29c69030321a95846c0e6750a5a075ec717a44acec09237b4e [INFO] running `Command { std: "docker" "start" "-a" "a688ec34a15bea29c69030321a95846c0e6750a5a075ec717a44acec09237b4e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling portable-atomic v1.9.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling const-field-offset-macro v0.1.5 [INFO] [stderr] Compiling vtable-macro v0.2.0 [INFO] [stderr] Checking const-field-offset v0.1.5 [INFO] [stderr] Checking vtable v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stderr] Fixed src/vrc.rs (1 fix) [INFO] [stderr] Migrating tests/test_vrc.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_vrc` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_vrc.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected item, found `{` [INFO] [stderr] --> tests/test_vrc.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | { unsafe #[vtable]} [INFO] [stderr] | ^ expected item [INFO] [stderr] | [INFO] [stderr] = note: for a full list of items that can appear in modules, see [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating tests/test_vtable.rs from 2021 edition to 2024 [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_vrc.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[vtable] [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 29 | FooVTable_static!(static SOME_STRUCT_TYPE for SomeStruct); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_vrc.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[vtable] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | FooVTable_static!(static SOME_STRUCT_TYPE for SomeStruct); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `FooVTable_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_vrc.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[vtable] [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 119 | FooVTable_static!(static SYNC_STRUCT_TYPE for SyncStruct); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_vrc.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[vtable] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | FooVTable_static!(static SYNC_STRUCT_TYPE for SyncStruct); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `FooVTable_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> tests/test_vrc.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | #[vtable] [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 176 | AppVTable_static!(static APP_STRUCT_TYPE for AppStruct); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> tests/test_vrc.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | #[vtable] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | AppVTable_static!(static APP_STRUCT_TYPE for AppStruct); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `AppVTable_static` (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 E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.52s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking vtable v0.2.0 (/tmp/fixit) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "a688ec34a15bea29c69030321a95846c0e6750a5a075ec717a44acec09237b4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a688ec34a15bea29c69030321a95846c0e6750a5a075ec717a44acec09237b4e", kill_on_drop: false }` [INFO] [stdout] a688ec34a15bea29c69030321a95846c0e6750a5a075ec717a44acec09237b4e