[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 try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fresin-io-playground%2Fresin-pam" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/resin-io-playground/resin-pam on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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/source/Cargo.toml [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: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f1ea70ffc645806caac822fe8e86d22cd3bdec22e4ff2d25a38ad66598a1564 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1f1ea70ffc645806caac822fe8e86d22cd3bdec22e4ff2d25a38ad66598a1564", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f1ea70ffc645806caac822fe8e86d22cd3bdec22e4ff2d25a38ad66598a1564", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f1ea70ffc645806caac822fe8e86d22cd3bdec22e4ff2d25a38ad66598a1564", kill_on_drop: false }` [INFO] [stdout] 1f1ea70ffc645806caac822fe8e86d22cd3bdec22e4ff2d25a38ad66598a1564 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b2ca97e399ea727ab2116cd0058041a6213decda4f52a0ddb5300c5de5d41f4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6b2ca97e399ea727ab2116cd0058041a6213decda4f52a0ddb5300c5de5d41f4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v0.4.19 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling serde v1.0.79 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Compiling itoa v0.4.3 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling untrusted v0.6.2 [INFO] [stderr] Compiling byteorder v1.2.6 [INFO] [stderr] Compiling libc v0.1.12 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling pam v0.1.0 (/opt/rustwide/workdir/lib/pam) [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [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] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [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] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` 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 `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [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] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` 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 `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Box`, which is not FFI-safe [INFO] [stdout] --> lib/pam/src/module.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | data: Box, [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [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] warning: `extern` block uses type `Box`, 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, [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] warning: 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(_: *const PamHandle, c_data: Box, _: PamResultCode) { [INFO] [stdout] 56 | | unsafe { [INFO] [stdout] 57 | | let data: Box = mem::transmute(c_data); [INFO] [stdout] 58 | | mem::drop(data); [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(no_mangle_generic_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling ring v0.13.2 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Compiling syn v0.15.6 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.79 [INFO] [stderr] Compiling serde_json v1.0.31 [INFO] [stderr] Compiling jsonwebtoken v5.0.1 [INFO] [stderr] Compiling pam-jwt v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PAM_TEXT_INFO` [INFO] [stdout] --> src/lib.rs:23:67 [INFO] [stdout] | [INFO] [stdout] 23 | use pam::constants::{PamResultCode, PamFlag, PAM_PROMPT_ECHO_OFF, PAM_TEXT_INFO}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / macro_rules! pam_try { [INFO] [stdout] 29 | | ($e:expr) => ( [INFO] [stdout] 30 | | match $e { [INFO] [stdout] 31 | | Ok(v) => v, [INFO] [stdout] ... | [INFO] [stdout] 43 | | ); [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 16.42s [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6b2ca97e399ea727ab2116cd0058041a6213decda4f52a0ddb5300c5de5d41f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b2ca97e399ea727ab2116cd0058041a6213decda4f52a0ddb5300c5de5d41f4", kill_on_drop: false }` [INFO] [stdout] 6b2ca97e399ea727ab2116cd0058041a6213decda4f52a0ddb5300c5de5d41f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3531baefc1d1ddfdebc4ad5a11974c4888984ac0e0ca956228f8bc9225c8c4b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d3531baefc1d1ddfdebc4ad5a11974c4888984ac0e0ca956228f8bc9225c8c4b", kill_on_drop: false }` [INFO] [stderr] Compiling pam-jwt v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [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] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [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] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` 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 `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [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] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` 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 `CString` 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: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` block uses type `Box`, which is not FFI-safe [INFO] [stdout] --> lib/pam/src/module.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | data: Box, [INFO] [stdout] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes)]` on by default [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] warning: `extern` block uses type `Box`, 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, [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] warning: 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(_: *const PamHandle, c_data: Box, _: PamResultCode) { [INFO] [stdout] 56 | | unsafe { [INFO] [stdout] 57 | | let data: Box = mem::transmute(c_data); [INFO] [stdout] 58 | | mem::drop(data); [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(no_mangle_generic_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PAM_TEXT_INFO` [INFO] [stdout] --> src/lib.rs:23:67 [INFO] [stdout] | [INFO] [stdout] 23 | use pam::constants::{PamResultCode, PamFlag, PAM_PROMPT_ECHO_OFF, PAM_TEXT_INFO}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / macro_rules! pam_try { [INFO] [stdout] 29 | | ($e:expr) => ( [INFO] [stdout] 30 | | match $e { [INFO] [stdout] 31 | | Ok(v) => v, [INFO] [stdout] ... | [INFO] [stdout] 43 | | ); [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "d3531baefc1d1ddfdebc4ad5a11974c4888984ac0e0ca956228f8bc9225c8c4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3531baefc1d1ddfdebc4ad5a11974c4888984ac0e0ca956228f8bc9225c8c4b", kill_on_drop: false }` [INFO] [stdout] d3531baefc1d1ddfdebc4ad5a11974c4888984ac0e0ca956228f8bc9225c8c4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6d9406b6bbf273b236894ce6701cb5b2f0b63c7c82283287cd2b0f5369fee9e6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6d9406b6bbf273b236894ce6701cb5b2f0b63c7c82283287cd2b0f5369fee9e6", kill_on_drop: false }` [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> lib/pam/src/module.rs:86:48 [INFO] [stderr] | [INFO] [stderr] 86 | let c_key = CString::new(key).unwrap().as_ptr() as *const _; [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> lib/pam/src/module.rs:104:48 [INFO] [stderr] | [INFO] [stderr] 104 | let c_key = CString::new(key).unwrap().as_ptr() as *const _; [INFO] [stderr] | -------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> lib/pam/src/module.rs:173:49 [INFO] [stderr] | [INFO] [stderr] 173 | Some(p) => CString::new(p).unwrap().as_ptr() as *const _, [INFO] [stderr] | ------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `Box`, which is not FFI-safe [INFO] [stderr] --> lib/pam/src/module.rs:32:27 [INFO] [stderr] | [INFO] [stderr] 32 | data: Box, [INFO] [stderr] | ^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(improper_ctypes)]` on by default [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: `extern` block uses type `Box`, which is not FFI-safe [INFO] [stderr] --> lib/pam/src/module.rs:33:30 [INFO] [stderr] | [INFO] [stderr] 33 | cleanup: extern "C" fn(pamh: *const PamHandle, [INFO] [stderr] | ______________________________^ [INFO] [stderr] 34 | | data: Box, [INFO] [stderr] 35 | | error_status: PamResultCode)) [INFO] [stderr] | |_______________________________________________________________________^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: functions generic over types or consts must be mangled [INFO] [stderr] --> lib/pam/src/module.rs:55:1 [INFO] [stderr] | [INFO] [stderr] 54 | #[no_mangle] [INFO] [stderr] | ------------ help: remove this attribute [INFO] [stderr] 55 | / pub extern "C" fn cleanup(_: *const PamHandle, c_data: Box, _: PamResultCode) { [INFO] [stderr] 56 | | unsafe { [INFO] [stderr] 57 | | let data: Box = mem::transmute(c_data); [INFO] [stderr] 58 | | mem::drop(data); [INFO] [stderr] 59 | | } [INFO] [stderr] 60 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(no_mangle_generic_items)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 6 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused import: `PAM_TEXT_INFO` [INFO] [stderr] --> src/lib.rs:23:67 [INFO] [stderr] | [INFO] [stderr] 23 | use pam::constants::{PamResultCode, PamFlag, PAM_PROMPT_ECHO_OFF, PAM_TEXT_INFO}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused macro definition [INFO] [stderr] --> src/lib.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | / macro_rules! pam_try { [INFO] [stderr] 29 | | ($e:expr) => ( [INFO] [stderr] 30 | | match $e { [INFO] [stderr] 31 | | Ok(v) => v, [INFO] [stderr] ... | [INFO] [stderr] 43 | | ); [INFO] [stderr] 44 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/pam_jwt-5047b2e8283239f6) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6d9406b6bbf273b236894ce6701cb5b2f0b63c7c82283287cd2b0f5369fee9e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d9406b6bbf273b236894ce6701cb5b2f0b63c7c82283287cd2b0f5369fee9e6", kill_on_drop: false }` [INFO] [stdout] 6d9406b6bbf273b236894ce6701cb5b2f0b63c7c82283287cd2b0f5369fee9e6