[INFO] cloning repository https://github.com/resin-io-playground/resin-pam
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/resin-io-playground/resin-pam" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fresin-io-playground%2Fresin-pam", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fresin-io-playground%2Fresin-pam'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e883acf45cf3dd57e8f5d80508db8ea76fa4caca
[INFO] testing resin-io-playground/resin-pam against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fresin-io-playground%2Fresin-pam" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/resin-io-playground/resin-pam
[INFO] finished tweaking git repo https://github.com/resin-io-playground/resin-pam
[INFO] tweaked toml for git repo https://github.com/resin-io-playground/resin-pam written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/resin-io-playground/resin-pam on toolchain 1.99.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/resin-io-playground/resin-pam 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" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `pam-jwt` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5
[INFO] running `Command { std: "docker" "start" "0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `pam-jwt` (manifest) generated 1 warning
[INFO] [stderr]    Compiling proc-macro2 v0.4.19
[INFO] [stderr]    Compiling version_check v0.1.5
[INFO] [stderr]    Compiling num-traits v0.2.6
[INFO] [stderr]    Compiling libc v0.2.43
[INFO] [stderr]    Compiling cc v1.0.25
[INFO] [stderr]    Compiling num-integer v0.1.39
[INFO] [stderr]    Compiling ryu v0.2.6
[INFO] [stderr]    Compiling serde v1.0.79
[INFO] [stderr]    Compiling untrusted v0.6.2
[INFO] [stderr]    Compiling byteorder v1.2.6
[INFO] [stderr]    Compiling itoa v0.4.3
[INFO] [stderr]    Compiling safemem v0.3.0
[INFO] [stderr]    Compiling libc v0.1.12
[INFO] [stderr]    Compiling pam v0.1.0 (/opt/rustwide/workdir/lib/pam)
[INFO] [stderr]    Compiling base64 v0.9.3
[INFO] [stderr]    Compiling lazy_static v1.1.0
[INFO] [stdout] warning: `extern` block uses type `Box<PamDataT>`, which is not FFI-safe
[INFO] [stdout]   --> lib/pam/src/module.rs:32:27
[INFO] [stdout]    |
[INFO] [stdout] 32 |                     data: Box<PamDataT>,
[INFO] [stdout]    |                           ^^^^^^^^^^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
[INFO] [stdout]    = note: this struct has unspecified layout
[INFO] [stdout]    = note: `#[warn(improper_ctypes)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` block uses type `Box<PamDataT>`, which is not FFI-safe
[INFO] [stdout]   --> lib/pam/src/module.rs:33:30
[INFO] [stdout]    |
[INFO] [stdout] 33 |                       cleanup: extern "C" fn(pamh: *const PamHandle,
[INFO] [stdout]    |  ______________________________^
[INFO] [stdout] 34 | |                                            data: Box<PamDataT>,
[INFO] [stdout] 35 | |                                            error_status: PamResultCode))
[INFO] [stdout]    | |_______________________________________________________________________^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
[INFO] [stdout]    = note: this struct has unspecified layout
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: functions generic over types or consts must be mangled
[INFO] [stdout]   --> lib/pam/src/module.rs:55:1
[INFO] [stdout]    |
[INFO] [stdout] 54 | #[no_mangle]
[INFO] [stdout]    | ------------ help: remove this attribute
[INFO] [stdout] 55 | pub extern "C" fn cleanup<T>(_: *const PamHandle, c_data: Box<PamDataT>, _: PamResultCode) {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement
[INFO] [stdout]   --> lib/pam/src/module.rs:86:48
[INFO] [stdout]    |
[INFO] [stdout] 86 |         let c_key = CString::new(key).unwrap().as_ptr() as *const _;
[INFO] [stdout]    |                     -------------------------- ^^^^^^ pointer created here
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     this `CString` is dropped at end of statement
[INFO] [stdout]    |
[INFO] [stdout]    = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_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 <https://doc.rust-lang.org/reference/destructors.html>
[INFO] [stdout]    = note: `#[warn(dangling_pointers_from_temporaries)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement
[INFO] [stdout]    --> lib/pam/src/module.rs:104:48
[INFO] [stdout]     |
[INFO] [stdout] 104 |         let c_key = CString::new(key).unwrap().as_ptr() as *const _;
[INFO] [stdout]     |                     -------------------------- ^^^^^^ pointer created here
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this `CString` is dropped at end of statement
[INFO] [stdout]     |
[INFO] [stdout]     = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_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 <https://doc.rust-lang.org/reference/destructors.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement
[INFO] [stdout]    --> lib/pam/src/module.rs:173:49
[INFO] [stdout]     |
[INFO] [stdout] 173 |             Some(p) => CString::new(p).unwrap().as_ptr() as *const _,
[INFO] [stdout]     |                        ------------------------ ^^^^^^ pointer created here
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        this `CString` is dropped at end of statement
[INFO] [stdout]     |
[INFO] [stdout]     = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_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 <https://doc.rust-lang.org/reference/destructors.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pam` (lib) due to 1 previous error; 5 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5", kill_on_drop: false }`
[INFO] [stdout] 0972f517359511b9580743659f271641e76445b8f96e2b5ed50a9f22dde92bd5
