[INFO] cloning repository https://github.com/jmg292/crypto_interop [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jmg292/crypto_interop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmg292%2Fcrypto_interop", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmg292%2Fcrypto_interop'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c79d1647434d814760119a8a67d727e6fea753a [INFO] checking jmg292/crypto_interop against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmg292%2Fcrypto_interop" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jmg292/crypto_interop on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jmg292/crypto_interop [INFO] finished tweaking git repo https://github.com/jmg292/crypto_interop [INFO] tweaked toml for git repo https://github.com/jmg292/crypto_interop written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/jmg292/crypto_interop already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--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-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cdacb1f60d1782879b385c68a8074e8d53fca990e06acac0373ed393d4b4fce2 [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" "cdacb1f60d1782879b385c68a8074e8d53fca990e06acac0373ed393d4b4fce2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cdacb1f60d1782879b385c68a8074e8d53fca990e06acac0373ed393d4b4fce2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cdacb1f60d1782879b385c68a8074e8d53fca990e06acac0373ed393d4b4fce2", kill_on_drop: false }` [INFO] [stdout] cdacb1f60d1782879b385c68a8074e8d53fca990e06acac0373ed393d4b4fce2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8bc24b9a754a4c378e1d5f31f4cce4088151a699e5bfeb90eaf500450563955 [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" "e8bc24b9a754a4c378e1d5f31f4cce4088151a699e5bfeb90eaf500450563955", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.72 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking subtle v2.2.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking zeroize v1.1.0 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling generic-array v0.14.3 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking typenum v1.12.0 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking hmac-drbg v0.2.0 [INFO] [stderr] Checking universal-hash v0.4.0 [INFO] [stderr] Checking stream-cipher v0.4.1 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking chacha20 v0.4.3 [INFO] [stderr] Checking poly1305 v0.6.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_hc v0.2.0 [INFO] [stderr] Checking chacha20poly1305 v0.5.1 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking global v0.4.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Checking crypto_interop v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function is never used: `from_local_identity` [INFO] [stdout] --> src/authentication.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn from_local_identity(local_identity: LocalIdentity) -> Handshake { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_private_key` [INFO] [stdout] --> src/messaging/wrapper.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn new_private_key() -> SecretKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_public_key_string` [INFO] [stdout] --> src/messaging/wrapper.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn unwrap_public_key_string(public_key_string: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_private_key` [INFO] [stdout] --> src/messaging/wrapper.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn rotate_private_key(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exchange_keys` [INFO] [stdout] --> src/messaging/wrapper.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn exchange_keys(&mut self, peer_public_key_string: &str) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_public_key` [INFO] [stdout] --> src/messaging/wrapper.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn get_public_key(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_message_count` [INFO] [stdout] --> src/messaging/wrapper.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn get_message_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_finalized_handshake` [INFO] [stdout] --> src/messaging/wrapper.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn from_finalized_handshake(finalized_handshake: &Handshake) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_from_file` [INFO] [stdout] --> src/identity/objects.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | fn new_from_file(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `save_to_file` [INFO] [stdout] --> src/identity/objects.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn save_to_file(&self, file_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_file` [INFO] [stdout] --> src/identity/objects.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn from_file(file_path: &str) -> LocalIdentity { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_key_ref` [INFO] [stdout] --> src/identity/authorized_hosts.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_key_ref(&self, fingerprint: &str) -> &RemoteIdentity { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `authorize_key` [INFO] [stdout] --> src/identity/authorized_hosts.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn authorize_key(&mut self, remote_key: RemoteIdentity) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `authorize_key_string` [INFO] [stdout] --> src/identity/authorized_hosts.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn authorize_key_string(&mut self, remote_key_string: &str) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/identity/authorized_hosts.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn load(folder_path: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern fn init(identity_file: &str, authorized_keys_folder: &str) { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern fn init(identity_file: &str, authorized_keys_folder: &str) { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 27 | pub extern fn save_public_key(file_path: &str) -> bool { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8; 16]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub extern fn get_challenge() -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | pub extern fn get_challenge_response(challenge: &[u8]) -> [u8; 193] { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8; 193]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:41:59 [INFO] [stdout] | [INFO] [stdout] 41 | pub extern fn get_challenge_response(challenge: &[u8]) -> [u8; 193] { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:46:54 [INFO] [stdout] | [INFO] [stdout] 46 | pub extern fn finalize_challenge(challenge_response: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:46:76 [INFO] [stdout] | [INFO] [stdout] 46 | pub extern fn finalize_challenge(challenge_response: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | pub extern fn encrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 66 | pub extern fn encrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 80 | pub extern fn decrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:80:54 [INFO] [stdout] | [INFO] [stdout] 80 | pub extern fn decrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_local_identity` [INFO] [stdout] --> src/authentication.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn from_local_identity(local_identity: LocalIdentity) -> Handshake { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_private_key` [INFO] [stdout] --> src/messaging/wrapper.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn new_private_key() -> SecretKey { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unwrap_public_key_string` [INFO] [stdout] --> src/messaging/wrapper.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn unwrap_public_key_string(public_key_string: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_private_key` [INFO] [stdout] --> src/messaging/wrapper.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn rotate_private_key(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exchange_keys` [INFO] [stdout] --> src/messaging/wrapper.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn exchange_keys(&mut self, peer_public_key_string: &str) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_public_key` [INFO] [stdout] --> src/messaging/wrapper.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn get_public_key(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_message_count` [INFO] [stdout] --> src/messaging/wrapper.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn get_message_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_finalized_handshake` [INFO] [stdout] --> src/messaging/wrapper.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn from_finalized_handshake(finalized_handshake: &Handshake) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_from_file` [INFO] [stdout] --> src/identity/objects.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | fn new_from_file(file_path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `save_to_file` [INFO] [stdout] --> src/identity/objects.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn save_to_file(&self, file_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_file` [INFO] [stdout] --> src/identity/objects.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn from_file(file_path: &str) -> LocalIdentity { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_key_ref` [INFO] [stdout] --> src/identity/authorized_hosts.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_key_ref(&self, fingerprint: &str) -> &RemoteIdentity { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `authorize_key` [INFO] [stdout] --> src/identity/authorized_hosts.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn authorize_key(&mut self, remote_key: RemoteIdentity) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `authorize_key_string` [INFO] [stdout] --> src/identity/authorized_hosts.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn authorize_key_string(&mut self, remote_key_string: &str) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/identity/authorized_hosts.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn load(folder_path: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:19:35 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern fn init(identity_file: &str, authorized_keys_folder: &str) { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:19:65 [INFO] [stdout] | [INFO] [stdout] 19 | pub extern fn init(identity_file: &str, authorized_keys_folder: &str) { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 27 | pub extern fn save_public_key(file_path: &str) -> bool { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8; 16]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub extern fn get_challenge() -> [u8; 16] { [INFO] [stdout] | ^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:41:49 [INFO] [stdout] | [INFO] [stdout] 41 | pub extern fn get_challenge_response(challenge: &[u8]) -> [u8; 193] { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8; 193]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:41:59 [INFO] [stdout] | [INFO] [stdout] 41 | pub extern fn get_challenge_response(challenge: &[u8]) -> [u8; 193] { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider passing a pointer to the array [INFO] [stdout] = note: passing raw arrays by value is not FFI-safe [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:46:54 [INFO] [stdout] | [INFO] [stdout] 46 | pub extern fn finalize_challenge(challenge_response: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:46:76 [INFO] [stdout] | [INFO] [stdout] 46 | pub extern fn finalize_challenge(challenge_response: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | pub extern fn encrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 66 | pub extern fn encrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 80 | pub extern fn decrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:80:54 [INFO] [stdout] | [INFO] [stdout] 80 | pub extern fn decrypt(message: &[u8], output_buffer: &mut [u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.22s [INFO] running `Command { std: "docker" "inspect" "e8bc24b9a754a4c378e1d5f31f4cce4088151a699e5bfeb90eaf500450563955", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8bc24b9a754a4c378e1d5f31f4cce4088151a699e5bfeb90eaf500450563955", kill_on_drop: false }` [INFO] [stdout] e8bc24b9a754a4c378e1d5f31f4cce4088151a699e5bfeb90eaf500450563955