[INFO] cloning repository https://github.com/brunoshiroma/benchtool-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brunoshiroma/benchtool-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrunoshiroma%2Fbenchtool-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrunoshiroma%2Fbenchtool-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0570c04afd4db68aa1ce780743577b7a20433a33 [INFO] checking brunoshiroma/benchtool-rust against try#6619027b13a87a3597115f2c8231f107bf3a7a5f for pr-139624 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrunoshiroma%2Fbenchtool-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/brunoshiroma/benchtool-rust on toolchain 6619027b13a87a3597115f2c8231f107bf3a7a5f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config [INFO] started tweaking git repo https://github.com/brunoshiroma/benchtool-rust [INFO] finished tweaking git repo https://github.com/brunoshiroma/benchtool-rust [INFO] tweaked toml for git repo https://github.com/brunoshiroma/benchtool-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/brunoshiroma/benchtool-rust 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" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0edba801a04c92744427f319dfd9c68091b4b571b45a021cf264ad8bae8259f7 [INFO] running `Command { std: "docker" "start" "-a" "0edba801a04c92744427f319dfd9c68091b4b571b45a021cf264ad8bae8259f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0edba801a04c92744427f319dfd9c68091b4b571b45a021cf264ad8bae8259f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0edba801a04c92744427f319dfd9c68091b4b571b45a021cf264ad8bae8259f7", kill_on_drop: false }` [INFO] [stdout] 0edba801a04c92744427f319dfd9c68091b4b571b45a021cf264ad8bae8259f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a651498fef4aa1c56b5cf5a1c087e54e6cfd6a0ed399ba1d0b2d61d07a899c4 [INFO] running `Command { std: "docker" "start" "-a" "2a651498fef4aa1c56b5cf5a1c087e54e6cfd6a0ed399ba1d0b2d61d07a899c4", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking benchtool-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: extern declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub extern fn benchtool_rust_call(iteration: i32, repeat: i32, bench_type: i32) -> *const c_char{ [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub extern fn benchtool_rust_call(iteration: i32, repeat: i32, bench_type: i32) -> *const c_char{ [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `String` will be dropped [INFO] [stdout] --> src/lib.rs:7:80 [INFO] [stdout] | [INFO] [stdout] 7 | benchtool::executor::benchtool_rust_execute(iteration, repeat, bench_type).as_ptr() as *const c_char [INFO] [stdout] | -------------------------------------------------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `String` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `String` 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: you must make sure that the variable you bind the `String` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `String` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `String` will be dropped [INFO] [stdout] --> src/lib.rs:7:80 [INFO] [stdout] | [INFO] [stdout] 7 | benchtool::executor::benchtool_rust_execute(iteration, repeat, bench_type).as_ptr() as *const c_char [INFO] [stdout] | -------------------------------------------------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `String` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `String` 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: you must make sure that the variable you bind the `String` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `String` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.22s [INFO] running `Command { std: "docker" "inspect" "2a651498fef4aa1c56b5cf5a1c087e54e6cfd6a0ed399ba1d0b2d61d07a899c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a651498fef4aa1c56b5cf5a1c087e54e6cfd6a0ed399ba1d0b2d61d07a899c4", kill_on_drop: false }` [INFO] [stdout] 2a651498fef4aa1c56b5cf5a1c087e54e6cfd6a0ed399ba1d0b2d61d07a899c4