[INFO] fetching crate senpy-ffi 0.1.3... [INFO] testing senpy-ffi-0.1.3 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate senpy-ffi 0.1.3 into /workspace/builds/worker-3-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-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate senpy-ffi 0.1.3 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded senpy v0.1.3 [INFO] [stderr] Downloaded const_format v0.2.35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c2de8337da6b36bbdf10f144882d2e6b3ca772eda146f051b183841390d15c6 [INFO] running `Command { std: "docker" "start" "-a" "5c2de8337da6b36bbdf10f144882d2e6b3ca772eda146f051b183841390d15c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c2de8337da6b36bbdf10f144882d2e6b3ca772eda146f051b183841390d15c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c2de8337da6b36bbdf10f144882d2e6b3ca772eda146f051b183841390d15c6", kill_on_drop: false }` [INFO] [stdout] 5c2de8337da6b36bbdf10f144882d2e6b3ca772eda146f051b183841390d15c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 103232797ab928f6e2cd8dc82b3543aa7d8ddedca5cc730c645fbc0a25c70a09 [INFO] running `Command { std: "docker" "start" "-a" "103232797ab928f6e2cd8dc82b3543aa7d8ddedca5cc730c645fbc0a25c70a09", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling openssl-sys v0.9.112 [INFO] [stderr] Compiling tokio v1.51.1 [INFO] [stderr] Compiling openssl v0.10.76 [INFO] [stderr] Compiling hashbrown v0.17.0 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling openssl-probe v0.2.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling senpy v0.1.3 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling const_format v0.2.35 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling zerofrom v0.1.7 [INFO] [stderr] Compiling yoke v0.8.2 [INFO] [stderr] Compiling zerovec v0.11.6 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Compiling tinystr v0.8.3 [INFO] [stderr] Compiling potential_utf v0.1.5 [INFO] [stderr] Compiling icu_collections v2.2.0 [INFO] [stderr] Compiling icu_locale_core v2.2.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.2.0 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling icu_properties v2.2.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [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: this creates a dangling pointer because temporary `Vec<*mut i8>` is dropped at end of statement [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] | -------------------------------------------- ^^^^^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `Vec<*mut i8>` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `Vec<*mut i8>` to a variable such that it outlives the pointer returned by `as_mut_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: 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: this creates a dangling pointer because temporary `Vec<*mut i8>` is dropped at end of statement [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] | -------------------------------------------- ^^^^^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `Vec<*mut i8>` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `Vec<*mut i8>` to a variable such that it outlives the pointer returned by `as_mut_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: 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" "103232797ab928f6e2cd8dc82b3543aa7d8ddedca5cc730c645fbc0a25c70a09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "103232797ab928f6e2cd8dc82b3543aa7d8ddedca5cc730c645fbc0a25c70a09", kill_on_drop: false }` [INFO] [stdout] 103232797ab928f6e2cd8dc82b3543aa7d8ddedca5cc730c645fbc0a25c70a09