[INFO] fetching crate const-field-offset 0.1.3... [INFO] checking const-field-offset-0.1.3 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate const-field-offset 0.1.3 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate const-field-offset 0.1.3 on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate const-field-offset 0.1.3 [INFO] finished tweaking crates.io crate const-field-offset 0.1.3 [INFO] tweaked toml for crates.io crate const-field-offset 0.1.3 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" "+5518eaa946291f00471af8b254b2a1715f234882" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded const-field-offset-macro v0.1.3 [INFO] [stderr] Downloaded field-offset v0.3.6 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 034595b58e64f40d12504a4cd3c86335eee365d7055dcecd17d84a2047908ca2 [INFO] running `Command { std: "docker" "start" "-a" "034595b58e64f40d12504a4cd3c86335eee365d7055dcecd17d84a2047908ca2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "034595b58e64f40d12504a4cd3c86335eee365d7055dcecd17d84a2047908ca2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "034595b58e64f40d12504a4cd3c86335eee365d7055dcecd17d84a2047908ca2", kill_on_drop: false }` [INFO] [stdout] 034595b58e64f40d12504a4cd3c86335eee365d7055dcecd17d84a2047908ca2 [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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c1dce8411835229328fb7d5367c76f8fb6ab52c2062401fca2a38144b00173a [INFO] running `Command { std: "docker" "start" "-a" "9c1dce8411835229328fb7d5367c76f8fb6ab52c2062401fca2a38144b00173a", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.21 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Compiling const-field-offset-macro v0.1.3 [INFO] [stderr] Checking const-field-offset v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `1`, `2`, `3`, and `4` are never read [INFO] [stdout] --> tests/test_field_offset.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 71 | #[derive(FieldOffsets)] [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 76 | pub a: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 77 | b: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] 78 | c: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 79 | d: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 76 ~ pub a: (), [INFO] [stdout] 77 ~ b: (), [INFO] [stdout] 78 ~ c: (), [INFO] [stdout] 79 ~ d: (), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1`, `2`, and `3` are never read [INFO] [stdout] --> tests/test_field_offset.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(FieldOffsets)] [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 87 | k: core::cell::Cell, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | xx: MyStruct, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 89 | v: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 87 ~ k: (), [INFO] [stdout] 88 ~ xx: (), [INFO] [stdout] 89 ~ v: (), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/test_field_offset.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 111 | #[derive(FieldOffsets)] [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 116 | x: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 116 | x: (), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.98s [INFO] running `Command { std: "docker" "inspect" "9c1dce8411835229328fb7d5367c76f8fb6ab52c2062401fca2a38144b00173a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c1dce8411835229328fb7d5367c76f8fb6ab52c2062401fca2a38144b00173a", kill_on_drop: false }` [INFO] [stdout] 9c1dce8411835229328fb7d5367c76f8fb6ab52c2062401fca2a38144b00173a [INFO] checking const-field-offset-0.1.3 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] extracting crate const-field-offset 0.1.3 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate const-field-offset 0.1.3 on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate const-field-offset 0.1.3 [INFO] finished tweaking crates.io crate const-field-offset 0.1.3 [INFO] tweaked toml for crates.io crate const-field-offset 0.1.3 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be06d79918160fae0f416fb71d767275d47f9eb62e01ef5ee2a5337d155e20be [INFO] running `Command { std: "docker" "start" "-a" "be06d79918160fae0f416fb71d767275d47f9eb62e01ef5ee2a5337d155e20be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be06d79918160fae0f416fb71d767275d47f9eb62e01ef5ee2a5337d155e20be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be06d79918160fae0f416fb71d767275d47f9eb62e01ef5ee2a5337d155e20be", kill_on_drop: false }` [INFO] [stdout] be06d79918160fae0f416fb71d767275d47f9eb62e01ef5ee2a5337d155e20be [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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1800a62b96861c55645b64cb8b7fc3be9980f9d2b6a5b4ace2583bd7028c1a2 [INFO] running `Command { std: "docker" "start" "-a" "d1800a62b96861c55645b64cb8b7fc3be9980f9d2b6a5b4ace2583bd7028c1a2", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.21 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Compiling const-field-offset-macro v0.1.3 [INFO] [stderr] Checking const-field-offset v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `1`, `2`, `3`, and `4` are never read [INFO] [stdout] --> tests/test_field_offset.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 71 | #[derive(FieldOffsets)] [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 76 | pub a: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 77 | b: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] 78 | c: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 79 | d: u16, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 76 ~ pub a: (), [INFO] [stdout] 77 ~ b: (), [INFO] [stdout] 78 ~ c: (), [INFO] [stdout] 79 ~ d: (), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1`, `2`, and `3` are never read [INFO] [stdout] --> tests/test_field_offset.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(FieldOffsets)] [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 87 | k: core::cell::Cell, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | xx: MyStruct, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 89 | v: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 87 ~ k: (), [INFO] [stdout] 88 ~ xx: (), [INFO] [stdout] 89 ~ v: (), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/test_field_offset.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 111 | #[derive(FieldOffsets)] [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 116 | x: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 116 | x: (), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/test_field_offset.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | #[derive(FieldOffsets)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current associated constant `FIELD_OFFSETS` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FieldOffsets` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/test_field_offset.rs:82:10 [INFO] [stdout] | [INFO] [stdout] 82 | #[derive(FieldOffsets)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current associated constant `FIELD_OFFSETS` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FieldOffsets` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/test_field_offset.rs:111:10 [INFO] [stdout] | [INFO] [stdout] 111 | #[derive(FieldOffsets)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current associated constant `FIELD_OFFSETS` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `FieldOffsets` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `const-field-offset` (test "test_field_offset") due to 4 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d1800a62b96861c55645b64cb8b7fc3be9980f9d2b6a5b4ace2583bd7028c1a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1800a62b96861c55645b64cb8b7fc3be9980f9d2b6a5b4ace2583bd7028c1a2", kill_on_drop: false }` [INFO] [stdout] d1800a62b96861c55645b64cb8b7fc3be9980f9d2b6a5b4ace2583bd7028c1a2