[INFO] cloning repository https://github.com/eduidl/rust-ffi-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eduidl/rust-ffi-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feduidl%2Frust-ffi-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feduidl%2Frust-ffi-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dbc79947cf85b541a5e24ca5e4784c51ad106ccb [INFO] checking eduidl/rust-ffi-example against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feduidl%2Frust-ffi-example" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eduidl/rust-ffi-example on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eduidl/rust-ffi-example [INFO] finished tweaking git repo https://github.com/eduidl/rust-ffi-example [INFO] tweaked toml for git repo https://github.com/eduidl/rust-ffi-example written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/eduidl/rust-ffi-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 13342950b50a333176b883184bee516815d2493f5220bb12fca844fa3684ff89 [INFO] running `Command { std: "docker" "start" "-a" "13342950b50a333176b883184bee516815d2493f5220bb12fca844fa3684ff89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13342950b50a333176b883184bee516815d2493f5220bb12fca844fa3684ff89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13342950b50a333176b883184bee516815d2493f5220bb12fca844fa3684ff89", kill_on_drop: false }` [INFO] [stdout] 13342950b50a333176b883184bee516815d2493f5220bb12fca844fa3684ff89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72b80cf439995e8db7b98a97b5759b0ba945aadc1bb2dc34630e8f925a539f1f [INFO] running `Command { std: "docker" "start" "-a" "72b80cf439995e8db7b98a97b5759b0ba945aadc1bb2dc34630e8f925a539f1f", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling humantime v2.0.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling bindgen v0.56.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Checking c_vec v2.0.0 [INFO] [stderr] Compiling clang-sys v1.0.3 [INFO] [stderr] Compiling libloading v0.6.6 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling env_logger v0.8.2 [INFO] [stderr] Compiling ffi-example-sys v0.1.0 (/opt/rustwide/workdir/ffi-example-sys) [INFO] [stdout] warning: dereferencing a null pointer [INFO] [stdout] --> /opt/rustwide/target/debug/build/ffi-example-sys-33a0e350f22d308a/out/bindings.rs:3:614 [INFO] [stdout] | [INFO] [stdout] 3 | ...eq ! (unsafe { & (* (:: std :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , conca... [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/ffi-example-sys-33a0e350f22d308a/out/bindings.rs:3:860 [INFO] [stdout] | [INFO] [stdout] 3 | ...eq ! (unsafe { & (* (:: std :: ptr :: null :: < max_align_t > ())) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , conc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ffi-example v0.1.0 (/opt/rustwide/workdir/ffi-example) [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> ffi-example/src/main.rs:19:59 [INFO] [stdout] | [INFO] [stdout] 19 | let c_string_ptr = CString::new("Hello FFI").unwrap().as_ptr(); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> ffi-example/src/main.rs:19:59 [INFO] [stdout] | [INFO] [stdout] 19 | let c_string_ptr = CString::new("Hello FFI").unwrap().as_ptr(); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 36.98s [INFO] running `Command { std: "docker" "inspect" "72b80cf439995e8db7b98a97b5759b0ba945aadc1bb2dc34630e8f925a539f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72b80cf439995e8db7b98a97b5759b0ba945aadc1bb2dc34630e8f925a539f1f", kill_on_drop: false }` [INFO] [stdout] 72b80cf439995e8db7b98a97b5759b0ba945aadc1bb2dc34630e8f925a539f1f