[INFO] cloning repository https://github.com/Olangu/bindgen-bug [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Olangu/bindgen-bug" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOlangu%2Fbindgen-bug", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOlangu%2Fbindgen-bug'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 11a799fc7c358c5c1ac51c2de28385f268bf3f0c [INFO] testing Olangu/bindgen-bug against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOlangu%2Fbindgen-bug" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Olangu/bindgen-bug on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Olangu/bindgen-bug [INFO] finished tweaking git repo https://github.com/Olangu/bindgen-bug [INFO] tweaked toml for git repo https://github.com/Olangu/bindgen-bug written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate git repo https://github.com/Olangu/bindgen-bug already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded which v3.1.0 [INFO] [stderr] Downloaded bindgen v0.52.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93dc020b248509a34cfaaf468b3b263fdcca9f3a7ab734a3ece945861160dbf3 [INFO] running `Command { std: "docker" "start" "-a" "93dc020b248509a34cfaaf468b3b263fdcca9f3a7ab734a3ece945861160dbf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93dc020b248509a34cfaaf468b3b263fdcca9f3a7ab734a3ece945861160dbf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93dc020b248509a34cfaaf468b3b263fdcca9f3a7ab734a3ece945861160dbf3", kill_on_drop: false }` [INFO] [stdout] 93dc020b248509a34cfaaf468b3b263fdcca9f3a7ab734a3ece945861160dbf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b86a9ab92ff5cd4d39efd2664ea87b3fab9b4e9c82766ecb227af76d64a62c46 [INFO] running `Command { std: "docker" "start" "-a" "b86a9ab92ff5cd4d39efd2664ea87b3fab9b4e9c82766ecb227af76d64a62c46", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling bindgen v0.52.0 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling clang-sys v0.28.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling which v3.1.0 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling cexpr v0.3.6 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling bindgen-bug v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.33s [INFO] running `Command { std: "docker" "inspect" "b86a9ab92ff5cd4d39efd2664ea87b3fab9b4e9c82766ecb227af76d64a62c46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b86a9ab92ff5cd4d39efd2664ea87b3fab9b4e9c82766ecb227af76d64a62c46", kill_on_drop: false }` [INFO] [stdout] b86a9ab92ff5cd4d39efd2664ea87b3fab9b4e9c82766ecb227af76d64a62c46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26d41aa09faa52e2dbf8732ad987a6045b9dd8f2236071e22787e6ebd1af0c2a [INFO] running `Command { std: "docker" "start" "-a" "26d41aa09faa52e2dbf8732ad987a6045b9dd8f2236071e22787e6ebd1af0c2a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling bindgen-bug v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11397 [INFO] [stdout] | [INFO] [stdout] 3 | ...struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . f as * const _ as usize } , 2usize , con... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unaligned_references)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and 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] warning: reference to packed field is unaligned [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11604 [INFO] [stdout] | [INFO] [stdout] 3 | ... ! ( f ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . g as * const _ as usize } , 4usize , con... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #82523 [INFO] [stdout] = note: fields of packed structs are not properly aligned, and 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] warning: function `bindgen_test_layout___fsid_t` should have a snake case name [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:8030 [INFO] [stdout] | [INFO] [stdout] 3 | ...} # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "S... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_fsid_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:8347 [INFO] [stdout] | [INFO] [stdout] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of f... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11399 [INFO] [stdout] | [INFO] [stdout] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . f as * const _ as usize } , 2usize , concat ! ( "Offset of field... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11606 [INFO] [stdout] | [INFO] [stdout] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . g as * const _ as usize } , 4usize , concat ! ( "Offset of field... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.85s [INFO] running `Command { std: "docker" "inspect" "26d41aa09faa52e2dbf8732ad987a6045b9dd8f2236071e22787e6ebd1af0c2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26d41aa09faa52e2dbf8732ad987a6045b9dd8f2236071e22787e6ebd1af0c2a", kill_on_drop: false }` [INFO] [stdout] 26d41aa09faa52e2dbf8732ad987a6045b9dd8f2236071e22787e6ebd1af0c2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5827d1e1517e3cbefdeb28a0c98038cd8abaa3bf9302b4a122a7b4f9828389ff [INFO] running `Command { std: "docker" "start" "-a" "5827d1e1517e3cbefdeb28a0c98038cd8abaa3bf9302b4a122a7b4f9828389ff", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11397 [INFO] [stderr] | [INFO] [stderr] 3 | ...struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . f as * const _ as usize } , 2usize , con... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unaligned_references)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: reference to packed field is unaligned [INFO] [stderr] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11604 [INFO] [stderr] | [INFO] [stderr] 3 | ... ! ( f ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . g as * const _ as usize } , 4usize , con... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #82523 [INFO] [stderr] = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: function `bindgen_test_layout___fsid_t` should have a snake case name [INFO] [stderr] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:8030 [INFO] [stderr] | [INFO] [stderr] 3 | ...} # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "S... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bindgen_test_layout_fsid_t` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:8347 [INFO] [stderr] | [INFO] [stderr] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of f... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deref_nullptr)]` on by default [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11399 [INFO] [stderr] | [INFO] [stderr] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . f as * const _ as usize } , 2usize , concat ! ( "Offset of field... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] [INFO] [stderr] warning: dereferencing a null pointer [INFO] [stderr] --> /opt/rustwide/target/debug/build/bindgen-bug-28cd7346a2e886ed/out/bindings.rs:3:11606 [INFO] [stderr] | [INFO] [stderr] 3 | ... ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mystruct > ( ) ) ) . g as * const _ as usize } , 4usize , concat ! ( "Offset of field... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stderr] [INFO] [stderr] warning: `bindgen-bug` (bin "bindgen-bug" test) generated 6 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/bindgen_bug-abd2562a9baf9b4d) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test bindgen_test_layout___fsid_t ... ok [INFO] [stdout] test bindgen_test_layout_mystruct ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5827d1e1517e3cbefdeb28a0c98038cd8abaa3bf9302b4a122a7b4f9828389ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5827d1e1517e3cbefdeb28a0c98038cd8abaa3bf9302b4a122a7b4f9828389ff", kill_on_drop: false }` [INFO] [stdout] 5827d1e1517e3cbefdeb28a0c98038cd8abaa3bf9302b4a122a7b4f9828389ff