[INFO] fetching crate const-field-offset 0.1.3... [INFO] checking const-field-offset-0.1.3 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [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 rustc_version v0.4.0 [INFO] [stderr] Downloaded semver v1.0.21 [INFO] [stderr] Downloaded field-offset v0.3.6 [INFO] [stderr] Downloaded const-field-offset-macro v0.1.3 [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] 385fa05af1a6c70e5253198b63dcbe63dfa20d0262b8e6d93fb578631f173107 [INFO] running `Command { std: "docker" "start" "-a" "385fa05af1a6c70e5253198b63dcbe63dfa20d0262b8e6d93fb578631f173107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "385fa05af1a6c70e5253198b63dcbe63dfa20d0262b8e6d93fb578631f173107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "385fa05af1a6c70e5253198b63dcbe63dfa20d0262b8e6d93fb578631f173107", kill_on_drop: false }` [INFO] [stdout] 385fa05af1a6c70e5253198b63dcbe63dfa20d0262b8e6d93fb578631f173107 [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] d0d3a97e32f938d86db0a83f9cc24e06357fb3d534579dbfbf4f64cf4c1f7cef [INFO] running `Command { std: "docker" "start" "-a" "d0d3a97e32f938d86db0a83f9cc24e06357fb3d534579dbfbf4f64cf4c1f7cef", 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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.83s [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d0d3a97e32f938d86db0a83f9cc24e06357fb3d534579dbfbf4f64cf4c1f7cef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0d3a97e32f938d86db0a83f9cc24e06357fb3d534579dbfbf4f64cf4c1f7cef", kill_on_drop: false }` [INFO] [stdout] d0d3a97e32f938d86db0a83f9cc24e06357fb3d534579dbfbf4f64cf4c1f7cef [INFO] checking const-field-offset-0.1.3 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [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] 0699817612e816989a06b66f2c4c74895118ee3b79d7f3e178698d4290f39463 [INFO] running `Command { std: "docker" "start" "-a" "0699817612e816989a06b66f2c4c74895118ee3b79d7f3e178698d4290f39463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0699817612e816989a06b66f2c4c74895118ee3b79d7f3e178698d4290f39463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0699817612e816989a06b66f2c4c74895118ee3b79d7f3e178698d4290f39463", kill_on_drop: false }` [INFO] [stdout] 0699817612e816989a06b66f2c4c74895118ee3b79d7f3e178698d4290f39463 [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] d9880b3ce6ea4d7f5fb5d21ad45fa23ded5caff9b80a50249bfb9f88081d4d55 [INFO] running `Command { std: "docker" "start" "-a" "d9880b3ce6ea4d7f5fb5d21ad45fa23ded5caff9b80a50249bfb9f88081d4d55", 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" "d9880b3ce6ea4d7f5fb5d21ad45fa23ded5caff9b80a50249bfb9f88081d4d55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9880b3ce6ea4d7f5fb5d21ad45fa23ded5caff9b80a50249bfb9f88081d4d55", kill_on_drop: false }` [INFO] [stdout] d9880b3ce6ea4d7f5fb5d21ad45fa23ded5caff9b80a50249bfb9f88081d4d55