[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 master#ebf0cf75d368c035f4c7e7246d203bd469ee4a51 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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eduidl/rust-ffi-example on toolchain ebf0cf75d368c035f4c7e7246d203bd469ee4a51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "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-tc1/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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "fetch" "--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] Downloading crates ... [INFO] [stderr] Downloaded rustc-hash v1.1.0 [INFO] [stderr] Downloaded shlex v1.1.0 [INFO] [stderr] Downloaded which v4.2.5 [INFO] [stderr] Downloaded peeking_take_while v0.1.2 [INFO] [stderr] Downloaded either v1.6.1 [INFO] [stderr] Downloaded os_str_bytes v6.1.0 [INFO] [stderr] Downloaded c_vec v2.0.0 [INFO] [stderr] Downloaded clang-sys v1.3.3 [INFO] [stderr] Downloaded indexmap v1.9.0 [INFO] [stderr] Downloaded cexpr v0.6.0 [INFO] [stderr] Downloaded minimal-lexical v0.2.1 [INFO] [stderr] Downloaded nom v7.1.1 [INFO] [stderr] Downloaded aho-corasick v0.7.18 [INFO] [stderr] Downloaded hashbrown v0.12.1 [INFO] [stderr] Downloaded clap v3.2.5 [INFO] [stderr] Downloaded regex v1.5.6 [INFO] [stderr] Downloaded bindgen v0.60.1 [INFO] [stderr] Downloaded glob v0.3.0 [INFO] [stderr] Downloaded textwrap v0.15.0 [INFO] [stderr] Downloaded lazycell v1.3.0 [INFO] [stderr] Downloaded log v0.4.17 [INFO] [stderr] Downloaded memchr v2.5.0 [INFO] [stderr] Downloaded env_logger v0.9.0 [INFO] [stderr] Downloaded unicode-ident v1.0.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.40 [INFO] [stderr] Downloaded quote v1.0.20 [INFO] [stderr] Downloaded libc v0.2.126 [INFO] [stderr] Downloaded libloading v0.7.3 [INFO] [stderr] Downloaded clap_lex v0.2.2 [INFO] [stderr] Downloaded humantime v2.1.0 [INFO] [stderr] Downloaded cc v1.0.73 [INFO] [stderr] Downloaded regex-syntax v0.6.26 [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 222df641f961e4556dcc35ecab84aa5d96fbf0f1a3b49339eae973830da79b0c [INFO] running `Command { std: "docker" "start" "-a" "222df641f961e4556dcc35ecab84aa5d96fbf0f1a3b49339eae973830da79b0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "222df641f961e4556dcc35ecab84aa5d96fbf0f1a3b49339eae973830da79b0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "222df641f961e4556dcc35ecab84aa5d96fbf0f1a3b49339eae973830da79b0c", kill_on_drop: false }` [INFO] [stdout] 222df641f961e4556dcc35ecab84aa5d96fbf0f1a3b49339eae973830da79b0c [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=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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9f31413d5259ca4f282515b0024ea88aae76ddaaf0c7633fc10fa6980c7833e [INFO] running `Command { std: "docker" "start" "-a" "e9f31413d5259ca4f282515b0024ea88aae76ddaaf0c7633fc10fa6980c7833e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling clang-sys v1.3.3 [INFO] [stderr] Compiling indexmap v1.9.0 [INFO] [stderr] Compiling os_str_bytes v6.1.0 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling clap_lex v0.2.2 [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 atty v0.2.14 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling clap v3.2.5 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling c_vec v2.0.0 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling cexpr v0.6.0 [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.43s [INFO] running `Command { std: "docker" "inspect" "e9f31413d5259ca4f282515b0024ea88aae76ddaaf0c7633fc10fa6980c7833e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9f31413d5259ca4f282515b0024ea88aae76ddaaf0c7633fc10fa6980c7833e", kill_on_drop: false }` [INFO] [stdout] e9f31413d5259ca4f282515b0024ea88aae76ddaaf0c7633fc10fa6980c7833e [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=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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b093acead8153fc6a58e18cbf7a25eb239b7232053d6c194db807c318915684 [INFO] running `Command { std: "docker" "start" "-a" "0b093acead8153fc6a58e18cbf7a25eb239b7232053d6c194db807c318915684", 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.65s [INFO] running `Command { std: "docker" "inspect" "0b093acead8153fc6a58e18cbf7a25eb239b7232053d6c194db807c318915684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b093acead8153fc6a58e18cbf7a25eb239b7232053d6c194db807c318915684", kill_on_drop: false }` [INFO] [stdout] 0b093acead8153fc6a58e18cbf7a25eb239b7232053d6c194db807c318915684 [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=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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 17e27975406e743efa54cf49db9a1c08e549de7f8019697bc6e2e8f7f211c459 [INFO] running `Command { std: "docker" "start" "-a" "17e27975406e743efa54cf49db9a1c08e549de7f8019697bc6e2e8f7f211c459", 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.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ffi_example-3c7e3adf0d68a12e) [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] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ffi_example_sys-0d1443a7eb26a48c) [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.01s [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" "17e27975406e743efa54cf49db9a1c08e549de7f8019697bc6e2e8f7f211c459", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17e27975406e743efa54cf49db9a1c08e549de7f8019697bc6e2e8f7f211c459", kill_on_drop: false }` [INFO] [stdout] 17e27975406e743efa54cf49db9a1c08e549de7f8019697bc6e2e8f7f211c459