[INFO] cloning repository https://github.com/thinjade/snbclabelprint [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thinjade/snbclabelprint" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthinjade%2Fsnbclabelprint", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthinjade%2Fsnbclabelprint'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4db23f333fb3821af16498a40d643044168d13a5 [INFO] checking thinjade/snbclabelprint against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthinjade%2Fsnbclabelprint" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thinjade/snbclabelprint on toolchain 901e6d56697c79b2e80df6a487b2318ec6f57ee3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thinjade/snbclabelprint [INFO] finished tweaking git repo https://github.com/thinjade/snbclabelprint [INFO] tweaked toml for git repo https://github.com/thinjade/snbclabelprint written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/thinjade/snbclabelprint 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" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 19c9b365169c08d867dd16b8b479b66b4c8910f60e1948360b36f111b5c25c36 [INFO] running `Command { std: "docker" "start" "-a" "19c9b365169c08d867dd16b8b479b66b4c8910f60e1948360b36f111b5c25c36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "19c9b365169c08d867dd16b8b479b66b4c8910f60e1948360b36f111b5c25c36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19c9b365169c08d867dd16b8b479b66b4c8910f60e1948360b36f111b5c25c36", kill_on_drop: false }` [INFO] [stdout] 19c9b365169c08d867dd16b8b479b66b4c8910f60e1948360b36f111b5c25c36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fd241a6d4d5fafdbb751d268cbcf473b13e9af7619bffbc88e3ceadb579d10c [INFO] running `Command { std: "docker" "start" "-a" "8fd241a6d4d5fafdbb751d268cbcf473b13e9af7619bffbc88e3ceadb579d10c", kill_on_drop: false }` [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling libc v0.2.135 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking libloading v0.7.3 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Checking snbclabelprint v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `HRI` should have a snake case name [INFO] [stdout] --> src/lib.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | HRI: c_int, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hri` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HRI` should have a snake case name [INFO] [stdout] --> src/lib.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | HRI: c_int, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hri` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` 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:344:56 [INFO] [stdout] | [INFO] [stdout] 344 | let p_image_path = format!("{}\0", image_path).as_ptr() as *const 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:344:56 [INFO] [stdout] | [INFO] [stdout] 344 | let p_image_path = format!("{}\0", image_path).as_ptr() as *const 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 1.26s [INFO] running `Command { std: "docker" "inspect" "8fd241a6d4d5fafdbb751d268cbcf473b13e9af7619bffbc88e3ceadb579d10c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fd241a6d4d5fafdbb751d268cbcf473b13e9af7619bffbc88e3ceadb579d10c", kill_on_drop: false }` [INFO] [stdout] 8fd241a6d4d5fafdbb751d268cbcf473b13e9af7619bffbc88e3ceadb579d10c