[INFO] fetching crate const-field-offset-macro 0.1.5... [INFO] testing const-field-offset-macro-0.1.5 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate const-field-offset-macro 0.1.5 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate const-field-offset-macro 0.1.5 [INFO] finished tweaking crates.io crate const-field-offset-macro 0.1.5 [INFO] tweaked toml for crates.io crate const-field-offset-macro 0.1.5 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate const-field-offset-macro 0.1.5 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f9b7546596d5b70d6888575317356e01fba7b395e5b27f1401816fb14ebbf6f5 [INFO] running `Command { std: "docker" "start" "-a" "f9b7546596d5b70d6888575317356e01fba7b395e5b27f1401816fb14ebbf6f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9b7546596d5b70d6888575317356e01fba7b395e5b27f1401816fb14ebbf6f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9b7546596d5b70d6888575317356e01fba7b395e5b27f1401816fb14ebbf6f5", kill_on_drop: false }` [INFO] [stdout] f9b7546596d5b70d6888575317356e01fba7b395e5b27f1401816fb14ebbf6f5 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d02a864179eeb91727e98152ea33123fb108278bcdd395d18537bd631ff0118 [INFO] running `Command { std: "docker" "start" "-a" "9d02a864179eeb91727e98152ea33123fb108278bcdd395d18537bd631ff0118", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling const-field-offset-macro v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.92s [INFO] running `Command { std: "docker" "inspect" "9d02a864179eeb91727e98152ea33123fb108278bcdd395d18537bd631ff0118", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d02a864179eeb91727e98152ea33123fb108278bcdd395d18537bd631ff0118", kill_on_drop: false }` [INFO] [stdout] 9d02a864179eeb91727e98152ea33123fb108278bcdd395d18537bd631ff0118 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8643dac91795c6f6066ff37362c316d4b92c046b1956323dba0706351293d07 [INFO] running `Command { std: "docker" "start" "-a" "f8643dac91795c6f6066ff37362c316d4b92c046b1956323dba0706351293d07", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling const-field-offset-macro v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "f8643dac91795c6f6066ff37362c316d4b92c046b1956323dba0706351293d07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8643dac91795c6f6066ff37362c316d4b92c046b1956323dba0706351293d07", kill_on_drop: false }` [INFO] [stdout] f8643dac91795c6f6066ff37362c316d4b92c046b1956323dba0706351293d07 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 147dc09f5e87ded7bc896c90d01a4ca064e321d457fb559cd5dcf0b117ce3ff1 [INFO] running `Command { std: "docker" "start" "-a" "147dc09f5e87ded7bc896c90d01a4ca064e321d457fb559cd5dcf0b117ce3ff1", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests macro.rs (/opt/rustwide/target/debug/deps/const_field_offset_macro-347e83fc6a96fd29) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests const_field_offset_macro [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test macro.rs - _NO_REPR_C (line 346) - compile fail ... ok [INFO] [stdout] test macro.rs - const_field_offset (line 73) ... FAILED [INFO] [stdout] test macro.rs - const_field_offset (line 98) ... FAILED [INFO] [stdout] test macro.rs - _PIN_NO_UNPIN (line 390) - compile fail ... ok [INFO] [stdout] test macro.rs - _REPR_PACKED (line 358) - compile fail ... ok [INFO] [stdout] test macro.rs - const_field_offset (line 23) ... FAILED [INFO] [stdout] test macro.rs - _PIN_NO_DROP (line 372) - compile fail ... ok [INFO] [stdout] test macro.rs - const_field_offset (line 52) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- macro.rs - const_field_offset (line 73) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `const_field_offset` [INFO] [stdout] --> macro.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 3 | use const_field_offset::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `const_field_offset` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | use const_field_offset_macro::*; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FieldOffsets` in this scope [INFO] [stdout] --> macro.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(FieldOffsets)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use const_field_offset_macro::FieldOffsets; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pin_drop` in this scope [INFO] [stdout] --> macro.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[pin_drop] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `pin_drop` is an attribute that can be used by the derive macro `FieldOffsets`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- macro.rs - const_field_offset (line 98) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `const_field_offset` [INFO] [stdout] --> macro.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 4 | mod xxx { pub use const_field_offset as cfo; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no external crate `const_field_offset` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `const_field_offset` in this scope [INFO] [stdout] --> macro.rs:103:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[const_field_offset(xxx::cfo)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `const_field_offset` is an attribute that can be used by the derive macro `FieldOffsets`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- macro.rs - const_field_offset (line 23) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `const_field_offset` [INFO] [stdout] --> macro.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 3 | use const_field_offset::FieldOffsets; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `const_field_offset` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | use const_field_offset_macro::FieldOffsets; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FIELD_OFFSETS` found for struct `Foo` in the current scope [INFO] [stdout] --> macro.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 6 | struct Foo { [INFO] [stdout] | ---------- associated item `FIELD_OFFSETS` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 11 | const FOO : usize = Foo::FIELD_OFFSETS.field_2.get_byte_offset(); [INFO] [stdout] | ^^^^^^^^^^^^^ associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- macro.rs - const_field_offset (line 52) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `const_field_offset` [INFO] [stdout] --> macro.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 3 | use const_field_offset::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `const_field_offset` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | use const_field_offset_macro::*; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `FieldOffsets` in this scope [INFO] [stdout] --> macro.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(FieldOffsets)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use const_field_offset_macro::FieldOffsets; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `pin` in this scope [INFO] [stdout] --> macro.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[pin] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `pin` is an attribute that can be used by the derive macro `FieldOffsets`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FIELD_OFFSETS` found for struct `Foo` in the current scope [INFO] [stdout] --> macro.rs:62:56 [INFO] [stdout] | [INFO] [stdout] 7 | struct Foo { [INFO] [stdout] | ---------- associated item `FIELD_OFFSETS` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 12 | const FIELD_2 : FieldOffset = Foo::FIELD_OFFSETS.field_2; [INFO] [stdout] | ^^^^^^^^^^^^^ associated item not found in `Foo` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] macro.rs - const_field_offset (line 23) [INFO] [stdout] macro.rs - const_field_offset (line 52) [INFO] [stdout] macro.rs - const_field_offset (line 73) [INFO] [stdout] macro.rs - const_field_offset (line 98) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "147dc09f5e87ded7bc896c90d01a4ca064e321d457fb559cd5dcf0b117ce3ff1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "147dc09f5e87ded7bc896c90d01a4ca064e321d457fb559cd5dcf0b117ce3ff1", kill_on_drop: false }` [INFO] [stdout] 147dc09f5e87ded7bc896c90d01a4ca064e321d457fb559cd5dcf0b117ce3ff1