[INFO] fetching crate senpy-ffi 0.1.3... [INFO] testing senpy-ffi-0.1.3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate senpy-ffi 0.1.3 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate senpy-ffi 0.1.3 [INFO] finished tweaking crates.io crate senpy-ffi 0.1.3 [INFO] tweaked toml for crates.io crate senpy-ffi 0.1.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate senpy-ffi 0.1.3 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 167 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded find-msvc-tools v0.1.0 [INFO] [stderr] Downloaded senpy v0.1.3 [INFO] [stderr] Downloaded cc v1.2.35 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0096b1eb2ad4540d52471efa80a95e7adf1129f9a819b5f2fe691fac422bcd3 [INFO] running `Command { std: "docker" "start" "-a" "c0096b1eb2ad4540d52471efa80a95e7adf1129f9a819b5f2fe691fac422bcd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0096b1eb2ad4540d52471efa80a95e7adf1129f9a819b5f2fe691fac422bcd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0096b1eb2ad4540d52471efa80a95e7adf1129f9a819b5f2fe691fac422bcd3", kill_on_drop: false }` [INFO] [stdout] c0096b1eb2ad4540d52471efa80a95e7adf1129f9a819b5f2fe691fac422bcd3 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8247fedd89465f1f173d3beab9694f4a0dc27ece3d37ed6fc577aab777c3ad5a [INFO] running `Command { std: "docker" "start" "-a" "8247fedd89465f1f173d3beab9694f4a0dc27ece3d37ed6fc577aab777c3ad5a", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling senpy v0.1.3 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling cc v1.2.35 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling senpy-ffi v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error: a dangling pointer will be produced because the temporary `Vec<*mut i8>` will be dropped [INFO] [stdout] --> src/lib.rs:122:60 [INFO] [stdout] | [INFO] [stdout] 122 | Err(_) => vec![CString::new("-1").unwrap().into_raw()].as_mut_ptr(), [INFO] [stdout] | -------------------------------------------- ^^^^^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `Vec<*mut i8>` 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_mut_ptr` the `Vec<*mut i8>` 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 `Vec<*mut i8>` to lives at least as long as the pointer returned by the call to `as_mut_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `Vec<*mut i8>` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | warnings, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangling_pointers_from_temporaries)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: a dangling pointer will be produced because the temporary `Vec<*mut i8>` will be dropped [INFO] [stdout] --> src/lib.rs:150:60 [INFO] [stdout] | [INFO] [stdout] 150 | Err(_) => vec![CString::new("-1").unwrap().into_raw()].as_mut_ptr(), [INFO] [stdout] | -------------------------------------------- ^^^^^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `Vec<*mut i8>` 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_mut_ptr` the `Vec<*mut i8>` 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 `Vec<*mut i8>` to lives at least as long as the pointer returned by the call to `as_mut_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `Vec<*mut i8>` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `senpy-ffi` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "8247fedd89465f1f173d3beab9694f4a0dc27ece3d37ed6fc577aab777c3ad5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8247fedd89465f1f173d3beab9694f4a0dc27ece3d37ed6fc577aab777c3ad5a", kill_on_drop: false }` [INFO] [stdout] 8247fedd89465f1f173d3beab9694f4a0dc27ece3d37ed6fc577aab777c3ad5a