[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-2 [INFO] extracting crate const-field-offset-macro 0.1.5 into /workspace/builds/worker-2-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-2-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] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] b8d85d93e76ba7de09319eba699e9fe9d84654d8273486b65833cae8fd96618c [INFO] running `Command { std: "docker" "start" "-a" "b8d85d93e76ba7de09319eba699e9fe9d84654d8273486b65833cae8fd96618c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8d85d93e76ba7de09319eba699e9fe9d84654d8273486b65833cae8fd96618c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8d85d93e76ba7de09319eba699e9fe9d84654d8273486b65833cae8fd96618c", kill_on_drop: false }` [INFO] [stdout] b8d85d93e76ba7de09319eba699e9fe9d84654d8273486b65833cae8fd96618c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] b2d6291f1e85d4ce299e749c8f0adbc5be3d8740d3c66ff1cbfe9e0a0bb2c575 [INFO] running `Command { std: "docker" "start" "-a" "b2d6291f1e85d4ce299e749c8f0adbc5be3d8740d3c66ff1cbfe9e0a0bb2c575", kill_on_drop: false }` [INFO] [stderr] Compiling const-field-offset-macro v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "b2d6291f1e85d4ce299e749c8f0adbc5be3d8740d3c66ff1cbfe9e0a0bb2c575", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2d6291f1e85d4ce299e749c8f0adbc5be3d8740d3c66ff1cbfe9e0a0bb2c575", kill_on_drop: false }` [INFO] [stdout] b2d6291f1e85d4ce299e749c8f0adbc5be3d8740d3c66ff1cbfe9e0a0bb2c575 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 595cff54bf193f3572a2453f04c1ba8cd4ca6162beee8ccdca06e01884e18e05 [INFO] running `Command { std: "docker" "start" "-a" "595cff54bf193f3572a2453f04c1ba8cd4ca6162beee8ccdca06e01884e18e05", kill_on_drop: false }` [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling const-field-offset-macro v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "595cff54bf193f3572a2453f04c1ba8cd4ca6162beee8ccdca06e01884e18e05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "595cff54bf193f3572a2453f04c1ba8cd4ca6162beee8ccdca06e01884e18e05", kill_on_drop: false }` [INFO] [stdout] 595cff54bf193f3572a2453f04c1ba8cd4ca6162beee8ccdca06e01884e18e05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] d52cabc1bf79eba750cf40b7b27e2a368d3b0466367a06b8d4b20a7957ed3b8a [INFO] running `Command { std: "docker" "start" "-a" "d52cabc1bf79eba750cf40b7b27e2a368d3b0466367a06b8d4b20a7957ed3b8a", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [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 - const_field_offset (line 98) ... FAILED [INFO] [stdout] test macro.rs - const_field_offset (line 52) ... FAILED [INFO] [stdout] test macro.rs - const_field_offset (line 73) ... FAILED [INFO] [stdout] test macro.rs - _NO_REPR_C (line 346) - compile fail ... ok [INFO] [stdout] test macro.rs - const_field_offset (line 23) ... FAILED [INFO] [stdout] test macro.rs - _REPR_PACKED (line 358) - compile fail ... ok [INFO] [stdout] test macro.rs - _PIN_NO_UNPIN (line 390) - compile fail ... ok [INFO] [stdout] test macro.rs - _PIN_NO_DROP (line 372) - compile fail ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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 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] ---- 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 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] [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.54s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d52cabc1bf79eba750cf40b7b27e2a368d3b0466367a06b8d4b20a7957ed3b8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d52cabc1bf79eba750cf40b7b27e2a368d3b0466367a06b8d4b20a7957ed3b8a", kill_on_drop: false }` [INFO] [stdout] d52cabc1bf79eba750cf40b7b27e2a368d3b0466367a06b8d4b20a7957ed3b8a