[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] 55ae75112855ce81fc0f31ae21f4317f5942ab90 [INFO] testing eduidl/rust-ffi-example against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feduidl%2Frust-ffi-example" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eduidl/rust-ffi-example on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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-6-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfab291b66978ccfef549befe1a8c4e042d50b2994046403d8c52c336a3e5ab7 [INFO] running `Command { std: "docker" "start" "-a" "cfab291b66978ccfef549befe1a8c4e042d50b2994046403d8c52c336a3e5ab7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfab291b66978ccfef549befe1a8c4e042d50b2994046403d8c52c336a3e5ab7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfab291b66978ccfef549befe1a8c4e042d50b2994046403d8c52c336a3e5ab7", kill_on_drop: false }` [INFO] [stdout] cfab291b66978ccfef549befe1a8c4e042d50b2994046403d8c52c336a3e5ab7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7daf45df644da2254ab812e21dc421254e68fb668aa03665f205da8561ed193 [INFO] running `Command { std: "docker" "start" "-a" "b7daf45df644da2254ab812e21dc421254e68fb668aa03665f205da8561ed193", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling os_str_bytes v6.1.0 [INFO] [stderr] Compiling indexmap v1.9.0 [INFO] [stderr] Compiling clang-sys v1.3.3 [INFO] [stderr] Compiling clap_lex v0.2.2 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling bindgen v0.60.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling clap v3.2.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling c_vec v2.0.0 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling ffi-example-sys v0.1.0 (/opt/rustwide/workdir/ffi-example-sys) [INFO] [stderr] Compiling ffi-example v0.1.0 (/opt/rustwide/workdir/ffi-example) [INFO] [stdout] warning: lint `temporary_cstring_as_ptr` has been renamed to `dangling_pointers_from_temporaries` [INFO] [stdout] --> ffi-example/src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | #[allow(temporary_cstring_as_ptr)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dangling_pointers_from_temporaries` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> ffi-example/src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | drop(slice); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&[i32]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 47 - drop(slice); [INFO] [stdout] 47 + let _ = slice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.19s [INFO] running `Command { std: "docker" "inspect" "b7daf45df644da2254ab812e21dc421254e68fb668aa03665f205da8561ed193", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7daf45df644da2254ab812e21dc421254e68fb668aa03665f205da8561ed193", kill_on_drop: false }` [INFO] [stdout] b7daf45df644da2254ab812e21dc421254e68fb668aa03665f205da8561ed193 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 532a65ccb13e94de16de9123b2a2240e87e41e3ef5eded4a28073d0c87f1ecc3 [INFO] running `Command { std: "docker" "start" "-a" "532a65ccb13e94de16de9123b2a2240e87e41e3ef5eded4a28073d0c87f1ecc3", kill_on_drop: false }` [INFO] [stderr] Compiling ffi-example-sys v0.1.0 (/opt/rustwide/workdir/ffi-example-sys) [INFO] [stderr] Compiling ffi-example v0.1.0 (/opt/rustwide/workdir/ffi-example) [INFO] [stdout] warning: lint `temporary_cstring_as_ptr` has been renamed to `dangling_pointers_from_temporaries` [INFO] [stdout] --> ffi-example/src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | #[allow(temporary_cstring_as_ptr)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dangling_pointers_from_temporaries` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> ffi-example/src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | drop(slice); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&[i32]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 47 - drop(slice); [INFO] [stdout] 47 + let _ = slice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] running `Command { std: "docker" "inspect" "532a65ccb13e94de16de9123b2a2240e87e41e3ef5eded4a28073d0c87f1ecc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "532a65ccb13e94de16de9123b2a2240e87e41e3ef5eded4a28073d0c87f1ecc3", kill_on_drop: false }` [INFO] [stdout] 532a65ccb13e94de16de9123b2a2240e87e41e3ef5eded4a28073d0c87f1ecc3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 99b2560cafab4fdabb034b915834138376c58ada6fbb05fbb1d53be124ed04ff [INFO] running `Command { std: "docker" "start" "-a" "99b2560cafab4fdabb034b915834138376c58ada6fbb05fbb1d53be124ed04ff", kill_on_drop: false }` [INFO] [stderr] warning: lint `temporary_cstring_as_ptr` has been renamed to `dangling_pointers_from_temporaries` [INFO] [stderr] --> ffi-example/src/main.rs:20:13 [INFO] [stderr] | [INFO] [stderr] 20 | #[allow(temporary_cstring_as_ptr)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dangling_pointers_from_temporaries` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stderr] [INFO] [stderr] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stderr] --> ffi-example/src/main.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | drop(slice); [INFO] [stderr] | ^^^^^-----^ [INFO] [stderr] | | [INFO] [stderr] | argument has type `&[i32]` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dropping_references)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the expression or result [INFO] [stderr] | [INFO] [stderr] 47 - drop(slice); [INFO] [stderr] 47 + let _ = slice; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `ffi-example` (bin "ffi-example" test) generated 2 warnings (run `cargo fix --bin "ffi-example" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ffi_example-3c7e3adf0d68a12e) [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ffi_example_sys-0d1443a7eb26a48c) [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] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test bindgen_test_layout_max_align_t ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ffi_example_sys [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] running `Command { std: "docker" "inspect" "99b2560cafab4fdabb034b915834138376c58ada6fbb05fbb1d53be124ed04ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99b2560cafab4fdabb034b915834138376c58ada6fbb05fbb1d53be124ed04ff", kill_on_drop: false }` [INFO] [stdout] 99b2560cafab4fdabb034b915834138376c58ada6fbb05fbb1d53be124ed04ff