[INFO] fetching crate traildb-sys 0.6.3... [INFO] checking traildb-sys-0.6.3 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] extracting crate traildb-sys 0.6.3 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate traildb-sys 0.6.3 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate traildb-sys 0.6.3 [INFO] finished tweaking crates.io crate traildb-sys 0.6.3 [INFO] tweaked toml for crates.io crate traildb-sys 0.6.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 67 packages [INFO] [stderr] Adding bindgen v0.51.1 (latest: v0.69.4) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] [stderr] Adding cexpr v0.3.6 (latest: v0.6.0) [INFO] [stderr] Adding cfg-if v0.1.10 (latest: v1.0.0) [INFO] [stderr] Adding clang-sys v0.28.1 (latest: v1.7.0) [INFO] [stderr] Adding clap v2.34.0 (latest: v4.5.4) [INFO] [stderr] Adding env_logger v0.6.2 (latest: v0.11.3) [INFO] [stderr] Adding hermit-abi v0.1.19 (latest: v0.3.9) [INFO] [stderr] Adding humantime v1.3.0 (latest: v2.1.0) [INFO] [stderr] Adding libflate v0.1.27 (latest: v2.0.0) [INFO] [stderr] Adding libloading v0.5.2 (latest: v0.8.3) [INFO] [stderr] Adding linux-raw-sys v0.4.13 (latest: v0.6.4) [INFO] [stderr] Adding nom v4.2.3 (latest: v7.1.3) [INFO] [stderr] Adding peeking_take_while v0.1.2 (latest: v1.0.0) [INFO] [stderr] Adding quick-error v1.2.3 (latest: v2.0.1) [INFO] [stderr] Adding redox_syscall v0.4.1 (latest: v0.5.1) [INFO] [stderr] Adding shlex v0.1.1 (latest: v1.3.0) [INFO] [stderr] Adding strsim v0.8.0 (latest: v0.11.1) [INFO] [stderr] Adding textwrap v0.11.0 (latest: v0.16.1) [INFO] [stderr] Adding version_check v0.1.5 (latest: v0.9.4) [INFO] [stderr] Adding which v3.1.1 (latest: v6.0.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libflate v0.1.27 [INFO] [stderr] Downloaded bindgen v0.51.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d40d84bb51053200030818f17b21ccedc24d9fe8d64c2e650ccb1217069bc705 [INFO] running `Command { std: "docker" "start" "-a" "d40d84bb51053200030818f17b21ccedc24d9fe8d64c2e650ccb1217069bc705", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d40d84bb51053200030818f17b21ccedc24d9fe8d64c2e650ccb1217069bc705", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d40d84bb51053200030818f17b21ccedc24d9fe8d64c2e650ccb1217069bc705", kill_on_drop: false }` [INFO] [stdout] d40d84bb51053200030818f17b21ccedc24d9fe8d64c2e650ccb1217069bc705 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8150921db1607f0396cf6117aed560716c0289ece0ad0c92a5f8a503aee27735 [INFO] running `Command { std: "docker" "start" "-a" "8150921db1607f0396cf6117aed560716c0289ece0ad0c92a5f8a503aee27735", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling bindgen v0.51.1 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling clang-sys v0.28.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling rle-decode-fast v1.0.3 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling libflate v0.1.27 [INFO] [stderr] Compiling cexpr v0.3.6 [INFO] [stderr] Compiling jobserver v0.1.28 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling filetime v0.2.23 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling cc v1.0.91 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling xattr v1.3.1 [INFO] [stderr] Compiling tar v0.4.40 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling traildb-sys v0.6.3 (/opt/rustwide/workdir) [INFO] [stderr] warning: traildb-sys@0.6.3: /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb.c:553:54: warning: argument 2 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: traildb-sys@0.6.3: 553 | const uint8_t *uuid, [INFO] [stderr] warning: traildb-sys@0.6.3: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: traildb-sys@0.6.3: In file included from /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb_internal.h:9, [INFO] [stderr] warning: traildb-sys@0.6.3: from /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb.c:22: [INFO] [stderr] warning: traildb-sys@0.6.3: /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/traildb.h:162:42: note: previously declared as an array 'const uint8_t[16]' {aka 'const unsigned char[16]'} [INFO] [stderr] warning: traildb-sys@0.6.3: 162 | const uint8_t uuid[16], [INFO] [stderr] warning: traildb-sys@0.6.3: | ~~~~~~~~~~~~~~^~~~~~~~ [INFO] [stdout] error[E0507]: cannot move out of `self.items` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/ffi.rs:3:78123 [INFO] [stdout] | [INFO] [stdout] 3 | ...ive (Debug)] pub struct tdb_event { pub timestamp : u64 , pub num_items : u64 , pub items : __IncompleteArrayField < tdb_item > , } # ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.items` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: traildb-sys@0.6.3: /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb.c:553:54: warning: argument 2 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: traildb-sys@0.6.3: 553 | const uint8_t *uuid, [INFO] [stderr] warning: traildb-sys@0.6.3: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: traildb-sys@0.6.3: In file included from /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb_internal.h:9, [INFO] [stderr] warning: traildb-sys@0.6.3: from /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb.c:22: [INFO] [stderr] warning: traildb-sys@0.6.3: /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/traildb.h:162:42: note: previously declared as an array 'const uint8_t[16]' {aka 'const unsigned char[16]'} [INFO] [stderr] warning: traildb-sys@0.6.3: 162 | const uint8_t uuid[16], [INFO] [stderr] warning: traildb-sys@0.6.3: | ~~~~~~~~~~~~~~^~~~~~~~ [INFO] [stderr] [INFO] [stderr] error: could not compile `traildb-sys` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0507]: cannot move out of `self.items` which is behind a shared reference [INFO] [stdout] --> /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/ffi.rs:3:78123 [INFO] [stdout] | [INFO] [stdout] 3 | ...ive (Debug)] pub struct tdb_event { pub timestamp : u64 , pub num_items : u64 , pub items : __IncompleteArrayField < tdb_item > , } # ... [INFO] [stdout] | ----- in this derive macro expansion ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.items` has type `__IncompleteArrayField`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] = note: `#[derive(Debug)]` triggers a move because taking references to the fields of a packed struct is undefined behaviour [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/ffi.rs:3:78492 [INFO] [stdout] | [INFO] [stdout] 3 | ...db_event))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < tdb_event > ())) . timestamp as * const _ as usize } , 0usize , c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/ffi.rs:3:78704 [INFO] [stdout] | [INFO] [stdout] 3 | ...imestamp))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < tdb_event > ())) . num_items as * const _ as usize } , 8usize , c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0793]: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/ffi.rs:3:78916 [INFO] [stdout] | [INFO] [stdout] 3 | ...(num_items))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < tdb_event > ())) . items as * const _ as usize } , 16usize , co... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses [INFO] [stdout] = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stdout] = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0793. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: traildb-sys@0.6.3: /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb.c:553:54: warning: argument 2 of type 'const uint8_t *' {aka 'const unsigned char *'} declared as a pointer [-Warray-parameter=] [INFO] [stderr] warning: traildb-sys@0.6.3: 553 | const uint8_t *uuid, [INFO] [stderr] warning: traildb-sys@0.6.3: | ~~~~~~~~~~~~~~~^~~~ [INFO] [stderr] warning: traildb-sys@0.6.3: In file included from /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb_internal.h:9, [INFO] [stderr] warning: traildb-sys@0.6.3: from /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/tdb.c:22: [INFO] [stderr] warning: traildb-sys@0.6.3: /opt/rustwide/target/debug/build/traildb-sys-42d796019593ad75/out/traildb-0.6/src/traildb.h:162:42: note: previously declared as an array 'const uint8_t[16]' {aka 'const unsigned char[16]'} [INFO] [stderr] warning: traildb-sys@0.6.3: 162 | const uint8_t uuid[16], [INFO] [stderr] warning: traildb-sys@0.6.3: | ~~~~~~~~~~~~~~^~~~~~~~ [INFO] [stderr] [INFO] [stderr] error: could not compile `traildb-sys` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "8150921db1607f0396cf6117aed560716c0289ece0ad0c92a5f8a503aee27735", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8150921db1607f0396cf6117aed560716c0289ece0ad0c92a5f8a503aee27735", kill_on_drop: false }` [INFO] [stdout] 8150921db1607f0396cf6117aed560716c0289ece0ad0c92a5f8a503aee27735