[INFO] cloning repository https://github.com/ChihChengLiang/haunted [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChihChengLiang/haunted" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChihChengLiang%2Fhaunted", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChihChengLiang%2Fhaunted'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dad64b8ecd9f06f07956e2f6e7d83b8f43e0adab [INFO] checking ChihChengLiang/haunted/dad64b8ecd9f06f07956e2f6e7d83b8f43e0adab against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChihChengLiang%2Fhaunted" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ChihChengLiang/haunted on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ChihChengLiang/haunted [INFO] finished tweaking git repo https://github.com/ChihChengLiang/haunted [INFO] tweaked toml for git repo https://github.com/ChihChengLiang/haunted written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ChihChengLiang/haunted 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/ChihChengLiang/phantom-zone` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d7760a0174a30fdd299c0e06a67d38e2b1be260ea2c9726fb967e45e17ddd9b [INFO] running `Command { std: "docker" "start" "-a" "5d7760a0174a30fdd299c0e06a67d38e2b1be260ea2c9726fb967e45e17ddd9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d7760a0174a30fdd299c0e06a67d38e2b1be260ea2c9726fb967e45e17ddd9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d7760a0174a30fdd299c0e06a67d38e2b1be260ea2c9726fb967e45e17ddd9b", kill_on_drop: false }` [INFO] [stdout] 5d7760a0174a30fdd299c0e06a67d38e2b1be260ea2c9726fb967e45e17ddd9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a7fd18261d94cf8bb7c95cd9faf93c4594371254a78c82daac321fc4ac65460 [INFO] running `Command { std: "docker" "start" "-a" "6a7fd18261d94cf8bb7c95cd9faf93c4594371254a78c82daac321fc4ac65460", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling indexmap v2.4.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling portable-atomic v1.7.0 [INFO] [stderr] Compiling tokio v1.39.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking rmp v0.8.14 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking rustls-pki-types v1.8.0 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking indicatif v0.17.8 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking rmp-serde v1.3.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking phantom-zone v0.1.0 (https://github.com/ChihChengLiang/phantom-zone?rev=7645ad5b8a329429f44feb2485b0715aad86dab1#7645ad5b) [INFO] [stderr] Checking h2 v0.4.6 [INFO] [stderr] Checking toml_edit v0.22.20 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking hyper-util v0.1.7 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.7 [INFO] [stderr] Checking haunted v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DecryptionShareSubmission`, `DecryptionShare`, and `ServerState` [INFO] [stdout] --> src/client.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | DecryptionShare, DecryptionShareSubmission, Seed, ServerKeyShare, ServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/client.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::{anyhow, bail, Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecryptionShareSubmission`, `DecryptionShare`, and `ServerState` [INFO] [stdout] --> src/client.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | DecryptionShare, DecryptionShareSubmission, Seed, ServerKeyShare, ServerState, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/client.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use anyhow::{anyhow, bail, Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Encryptor`, `KeySwitchWithId`, `MultiPartyDecryptor`, and `SampleExtractor` [INFO] [stdout] --> src/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Encryptor, FheBool, KeySwitchWithId, MultiPartyDecryptor, NonInteractiveSeededFheBools, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | SampleExtractor, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Encryptor`, `KeySwitchWithId`, `MultiPartyDecryptor`, and `SampleExtractor` [INFO] [stdout] --> src/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Encryptor, FheBool, KeySwitchWithId, MultiPartyDecryptor, NonInteractiveSeededFheBools, [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | SampleExtractor, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `derive_server_key` is never used [INFO] [stdout] --> src/server.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn derive_server_key(server_key_shares: &[ServerKeyShare]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_param` is never used [INFO] [stdout] --> src/server.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | async fn get_param(ss: &State) -> Json { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register` is never used [INFO] [stdout] --> src/server.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | async fn register(ss: &State) -> Result, ErrorResponse> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `submit_sks` is never used [INFO] [stdout] --> src/server.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | async fn submit_sks( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `submit_decryption_shares` is never used [INFO] [stdout] --> src/server.rs:82:10 [INFO] [stdout] | [INFO] [stdout] 82 | async fn submit_decryption_shares( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_decryption_share` is never used [INFO] [stdout] --> src/server.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | async fn get_decryption_share( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup` is never used [INFO] [stdout] --> src/server.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn setup(seed: &Seed) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rocket` is never used [INFO] [stdout] --> src/server.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn rocket() -> Rocket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ClientKey` is never used [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub type ClientKey = phantom_zone::ClientKey; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/types.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub type Word = Vec; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CircuitInput` is never used [INFO] [stdout] --> src/types.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) type CircuitInput = Vec; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EncryptedWord` is never used [INFO] [stdout] --> src/types.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | pub(crate) type EncryptedWord = NonInteractiveSeededFheBools, Seed>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WrongServerState`, `UnregisteredUser`, `CipherNotFound`, `DecryptionShareNotFound`, and `OutputNotReady` are never constructed [INFO] [stdout] --> src/types.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 38 | #[error("Wrong server state: expect {expect} but got {got}")] [INFO] [stdout] 39 | WrongServerState { expect: String, got: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | #[error("User #{user_id} is unregistered")] [INFO] [stdout] 41 | UnregisteredUser { user_id: usize }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | #[error("The ciphertext from user #{user_id} not found")] [INFO] [stdout] 43 | CipherNotFound { user_id: UserId }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 44 | #[error("Decryption share of {output_id} from user {user_id} not found")] [INFO] [stdout] 45 | DecryptionShareNotFound { output_id: usize, user_id: UserId }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | #[error("Output not ready")] [INFO] [stdout] 47 | OutputNotReady, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensure` and `transit` are never used [INFO] [stdout] --> src/types.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl ServerState { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 84 | fn ensure(&self, expect: Self) -> Result<&Self, Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn transit(&mut self, next: Self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MutexServerStorage` is never used [INFO] [stdout] --> src/types.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | pub(crate) type MutexServerStorage = Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerStorage` is never constructed [INFO] [stdout] --> src/types.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | pub(crate) struct ServerStorage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/types.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 114 | impl ServerStorage { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 115 | pub(crate) fn new(seed: Seed) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub(crate) fn add_user(&mut self) -> UserId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub(crate) fn ensure(&self, state: ServerState) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub(crate) fn transit(&mut self, state: ServerState) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub(crate) fn get_user(&mut self, user_id: UserId) -> Result<&mut UserRecord, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub(crate) fn check_cipher_submission(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub(crate) fn get_sks(&mut self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserRecord` is never constructed [INFO] [stdout] --> src/types.rs:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | pub(crate) struct UserRecord { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UserStorage` is never used [INFO] [stdout] --> src/types.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | pub(crate) enum UserStorage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_cipher_sks` and `get_mut_decryption_shares` are never used [INFO] [stdout] --> src/types.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 181 | impl UserStorage { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 182 | pub(crate) fn get_cipher_sks(&self) -> Option<&ServerKeyShare> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub(crate) fn get_mut_decryption_shares( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DecryptionSharesMap` is never used [INFO] [stdout] --> src/types.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | pub type DecryptionSharesMap = HashMap<(usize, UserId), DecryptionShare>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DecryptableID` is never used [INFO] [stdout] --> src/types.rs:217:10 [INFO] [stdout] | [INFO] [stdout] 217 | pub type DecryptableID = usize; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Visibility` is never used [INFO] [stdout] --> src/types.rs:219:6 [INFO] [stdout] | [INFO] [stdout] 219 | enum Visibility { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Decryptable` is never constructed [INFO] [stdout] --> src/types.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 224 | struct Decryptable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_decryption_share` are never used [INFO] [stdout] --> src/types.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 233 | impl Decryptable { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 234 | fn new(n_users: usize, word: Word, vis: Visibility) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn add_decryption_share(&mut self, user_id: UserId, share: DecryptionShare) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecryptableManager` is never constructed [INFO] [stdout] --> src/types.rs:252:19 [INFO] [stdout] | [INFO] [stdout] 252 | pub(crate) struct DecryptableManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_decryptable`, `add_public`, `add_designated`, and `list_decryption_duties` are never used [INFO] [stdout] --> src/types.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 257 | impl DecryptableManager { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 258 | pub(crate) fn new(n_users: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn add_decryptable(&mut self, word: Word, vis: Visibility) -> DecryptableID { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | pub(crate) fn add_public(&mut self, word: Word) -> DecryptableID { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub(crate) fn add_designated(&mut self, word: Word, user_id: UserId) -> DecryptableID { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub(crate) fn list_decryption_duties(&self, user_id: UserId) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `derive_server_key` is never used [INFO] [stdout] --> src/server.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn derive_server_key(server_key_shares: &[ServerKeyShare]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_param` is never used [INFO] [stdout] --> src/server.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | async fn get_param(ss: &State) -> Json { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register` is never used [INFO] [stdout] --> src/server.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | async fn register(ss: &State) -> Result, ErrorResponse> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `submit_sks` is never used [INFO] [stdout] --> src/server.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | async fn submit_sks( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `submit_decryption_shares` is never used [INFO] [stdout] --> src/server.rs:82:10 [INFO] [stdout] | [INFO] [stdout] 82 | async fn submit_decryption_shares( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_decryption_share` is never used [INFO] [stdout] --> src/server.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | async fn get_decryption_share( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup` is never used [INFO] [stdout] --> src/server.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn setup(seed: &Seed) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rocket` is never used [INFO] [stdout] --> src/server.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn rocket() -> Rocket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ClientKey` is never used [INFO] [stdout] --> src/types.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub type ClientKey = phantom_zone::ClientKey; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Word` is never used [INFO] [stdout] --> src/types.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub type Word = Vec; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `CircuitInput` is never used [INFO] [stdout] --> src/types.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) type CircuitInput = Vec; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EncryptedWord` is never used [INFO] [stdout] --> src/types.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | pub(crate) type EncryptedWord = NonInteractiveSeededFheBools, Seed>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WrongServerState`, `UnregisteredUser`, `CipherNotFound`, `DecryptionShareNotFound`, and `OutputNotReady` are never constructed [INFO] [stdout] --> src/types.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 38 | #[error("Wrong server state: expect {expect} but got {got}")] [INFO] [stdout] 39 | WrongServerState { expect: String, got: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | #[error("User #{user_id} is unregistered")] [INFO] [stdout] 41 | UnregisteredUser { user_id: usize }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | #[error("The ciphertext from user #{user_id} not found")] [INFO] [stdout] 43 | CipherNotFound { user_id: UserId }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 44 | #[error("Decryption share of {output_id} from user {user_id} not found")] [INFO] [stdout] 45 | DecryptionShareNotFound { output_id: usize, user_id: UserId }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | #[error("Output not ready")] [INFO] [stdout] 47 | OutputNotReady, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensure` and `transit` are never used [INFO] [stdout] --> src/types.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl ServerState { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 84 | fn ensure(&self, expect: Self) -> Result<&Self, Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn transit(&mut self, next: Self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MutexServerStorage` is never used [INFO] [stdout] --> src/types.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | pub(crate) type MutexServerStorage = Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerStorage` is never constructed [INFO] [stdout] --> src/types.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 108 | pub(crate) struct ServerStorage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/types.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 114 | impl ServerStorage { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 115 | pub(crate) fn new(seed: Seed) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub(crate) fn add_user(&mut self) -> UserId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub(crate) fn ensure(&self, state: ServerState) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub(crate) fn transit(&mut self, state: ServerState) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub(crate) fn get_user(&mut self, user_id: UserId) -> Result<&mut UserRecord, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub(crate) fn check_cipher_submission(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub(crate) fn get_sks(&mut self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserRecord` is never constructed [INFO] [stdout] --> src/types.rs:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | pub(crate) struct UserRecord { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UserStorage` is never used [INFO] [stdout] --> src/types.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | pub(crate) enum UserStorage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_cipher_sks` and `get_mut_decryption_shares` are never used [INFO] [stdout] --> src/types.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 181 | impl UserStorage { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 182 | pub(crate) fn get_cipher_sks(&self) -> Option<&ServerKeyShare> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub(crate) fn get_mut_decryption_shares( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DecryptionSharesMap` is never used [INFO] [stdout] --> src/types.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | pub type DecryptionSharesMap = HashMap<(usize, UserId), DecryptionShare>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DecryptableID` is never used [INFO] [stdout] --> src/types.rs:217:10 [INFO] [stdout] | [INFO] [stdout] 217 | pub type DecryptableID = usize; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Visibility` is never used [INFO] [stdout] --> src/types.rs:219:6 [INFO] [stdout] | [INFO] [stdout] 219 | enum Visibility { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Decryptable` is never constructed [INFO] [stdout] --> src/types.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 224 | struct Decryptable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_decryption_share` are never used [INFO] [stdout] --> src/types.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 233 | impl Decryptable { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 234 | fn new(n_users: usize, word: Word, vis: Visibility) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn add_decryption_share(&mut self, user_id: UserId, share: DecryptionShare) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecryptableManager` is never constructed [INFO] [stdout] --> src/types.rs:252:19 [INFO] [stdout] | [INFO] [stdout] 252 | pub(crate) struct DecryptableManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_decryptable`, `add_public`, `add_designated`, and `list_decryption_duties` are never used [INFO] [stdout] --> src/types.rs:258:19 [INFO] [stdout] | [INFO] [stdout] 257 | impl DecryptableManager { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 258 | pub(crate) fn new(n_users: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn add_decryptable(&mut self, word: Word, vis: Visibility) -> DecryptableID { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | pub(crate) fn add_public(&mut self, word: Word) -> DecryptableID { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub(crate) fn add_designated(&mut self, word: Word, user_id: UserId) -> DecryptableID { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub(crate) fn list_decryption_duties(&self, user_id: UserId) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_test` is never used [INFO] [stdout] --> src/tests.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 9 | impl Wallet { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 10 | async fn new_test(rocket: Rocket) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.83s [INFO] running `Command { std: "docker" "inspect" "6a7fd18261d94cf8bb7c95cd9faf93c4594371254a78c82daac321fc4ac65460", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a7fd18261d94cf8bb7c95cd9faf93c4594371254a78c82daac321fc4ac65460", kill_on_drop: false }` [INFO] [stdout] 6a7fd18261d94cf8bb7c95cd9faf93c4594371254a78c82daac321fc4ac65460