[INFO] cloning repository https://github.com/jacklund/trithemius [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jacklund/trithemius" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjacklund%2Ftrithemius", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjacklund%2Ftrithemius'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f3e3ad07d51854b29b41bec2993438ffc04f93e [INFO] testing jacklund/trithemius against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjacklund%2Ftrithemius" "/workspace/builds/worker-29/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-29/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jacklund/trithemius on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jacklund/trithemius [INFO] finished tweaking git repo https://github.com/jacklund/trithemius [INFO] tweaked toml for git repo https://github.com/jacklund/trithemius written to /workspace/builds/worker-29/source/Cargo.toml [INFO] crate git repo https://github.com/jacklund/trithemius already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f96bb13797a056dfcee3e5a407970d2566175161aba074f2aac382c07e9d2edf [INFO] running `Command { std: "docker" "start" "-a" "f96bb13797a056dfcee3e5a407970d2566175161aba074f2aac382c07e9d2edf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f96bb13797a056dfcee3e5a407970d2566175161aba074f2aac382c07e9d2edf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f96bb13797a056dfcee3e5a407970d2566175161aba074f2aac382c07e9d2edf", kill_on_drop: false }` [INFO] [stdout] f96bb13797a056dfcee3e5a407970d2566175161aba074f2aac382c07e9d2edf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 568eba2e939c5b49331fd6d2580d29dc3b747c66e6eac7a155a5574fab12ec32 [INFO] running `Command { std: "docker" "start" "-a" "568eba2e939c5b49331fd6d2580d29dc3b747c66e6eac7a155a5574fab12ec32", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling syn v1.0.63 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling futures-sink v0.3.13 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-io v0.3.13 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Compiling futures-task v0.3.13 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling utf8parse v0.2.0 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling num-bigint v0.3.2 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling tokio v1.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling rmp v0.8.10 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling libsodium-sys v0.2.6 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling slog-async v2.6.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling mio v0.7.9 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling rpassword v5.0.1 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling dirs-next v1.0.2 [INFO] [stderr] Compiling dirs v3.0.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling slog-term v2.8.0 [INFO] [stderr] Compiling rmp-serde v0.15.4 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling enum-ordinalize v3.1.9 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Compiling rustyline v6.3.0 [INFO] [stderr] Compiling educe v0.4.14 [INFO] [stderr] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling pin-project v1.0.5 [INFO] [stderr] Compiling repl-rs v0.2.4 [INFO] [stderr] Compiling tokio-serde v0.8.0 [INFO] [stderr] Compiling futures-executor v0.3.13 [INFO] [stderr] Compiling futures v0.3.13 [INFO] [stderr] Compiling tokio-stream v0.1.4 [INFO] [stderr] Compiling tokio-util v0.6.4 [INFO] [stderr] Compiling sodiumoxide v0.2.6 [INFO] [stderr] Compiling trithemius v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/client_connector.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use slog::{debug, error, o, Discard, Logger}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientMessage`, `Result` [INFO] [stdout] --> src/server_message.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{ClientMessage, Identity, Result}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/client_connector.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/client_connector.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:117:42 [INFO] [stdout] | [INFO] [stdout] 117 | pub async fn send_message(&mut self, message: ClientMessage) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:148:47 [INFO] [stdout] | [INFO] [stdout] 148 | Some(Event::ChatMessage { chat_name, message }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:148:58 [INFO] [stdout] | [INFO] [stdout] 148 | Some(Event::ChatMessage { chat_name, message }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `message: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/client_connector.rs:149:48 [INFO] [stdout] | [INFO] [stdout] 149 | Some(Event::ContactFound { contact, chat_name }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `contact: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:149:57 [INFO] [stdout] | [INFO] [stdout] 149 | Some(Event::ContactFound { contact, chat_name }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | DirectMessage::ChatKeyRequest { chat_name } => unimplemented!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | chat_name, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_key` [INFO] [stdout] --> src/client_connector.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | chat_key, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `chat_key: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | DirectMessage::ChatKeyRequestError { message } => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `message: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:253:38 [INFO] [stdout] | [INFO] [stdout] 253 | ChatMessage::Message(message) => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient` [INFO] [stdout] --> src/client_connector.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | recipient, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `recipient: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `connection` [INFO] [stdout] --> src/client_connector.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | connection: FramedClientConnection, [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: `server_key` [INFO] [stdout] --> src/client_connector.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn server_key(&self) -> Option<&secretbox::Key> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt_and_wrap` [INFO] [stdout] --> src/client_message.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn encrypt_and_wrap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt_and_wrap` [INFO] [stdout] --> src/client_message.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | fn encrypt_and_wrap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/framed_connection.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | pub type FramedClientConnection = [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 4 - pub type FramedClientConnection = [INFO] [stdout] 4 + pub type FramedClientConnection = [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/framed_connection.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | pub type FramedServerConnection = [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 21 - pub type FramedServerConnection = [INFO] [stdout] 21 + pub type FramedServerConnection = [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connector_receiver` [INFO] [stdout] --> src/bin/client.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | connector_receiver: Receiver, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connector_receiver` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connector_sender` [INFO] [stdout] --> src/bin/client.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | connector_sender: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connector_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_key` [INFO] [stdout] --> src/bin/client.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | server_key: Option, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyring` [INFO] [stdout] --> src/bin/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | keyring: keyring::KeyRing, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/bin/client.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | let (dest, msg) = match line.find(':') { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> src/bin/server.rs:263:21 [INFO] [stdout] | [INFO] [stdout] 263 | sender, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `sender: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_name` [INFO] [stdout] --> src/bin/server.rs:264:21 [INFO] [stdout] | [INFO] [stdout] 264 | list_name, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `list_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encrypted` [INFO] [stdout] --> src/bin/server.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | encrypted, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `encrypted: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/bin/server.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | nonce, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `nonce: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/bin/server.rs:267:21 [INFO] [stdout] | [INFO] [stdout] 267 | signature, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `signature: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> src/bin/server.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | sender, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `sender: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient` [INFO] [stdout] --> src/bin/server.rs:271:21 [INFO] [stdout] | [INFO] [stdout] 271 | recipient, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `recipient: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encrypted` [INFO] [stdout] --> src/bin/server.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | encrypted, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `encrypted: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonce` [INFO] [stdout] --> src/bin/server.rs:273:21 [INFO] [stdout] | [INFO] [stdout] 273 | nonce, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `nonce: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peers` [INFO] [stdout] --> src/bin/server.rs:306:38 [INFO] [stdout] | [INFO] [stdout] 306 | fn handle_chat_message(log: &Logger, peers: &mut PeerMap, message: &ServerMessage) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_peers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `handle_chat_message` [INFO] [stdout] --> src/bin/server.rs:306:4 [INFO] [stdout] | [INFO] [stdout] 306 | fn handle_chat_message(log: &Logger, peers: &mut PeerMap, message: &ServerMessage) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 12s [INFO] running `Command { std: "docker" "inspect" "568eba2e939c5b49331fd6d2580d29dc3b747c66e6eac7a155a5574fab12ec32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "568eba2e939c5b49331fd6d2580d29dc3b747c66e6eac7a155a5574fab12ec32", kill_on_drop: false }` [INFO] [stdout] 568eba2e939c5b49331fd6d2580d29dc3b747c66e6eac7a155a5574fab12ec32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5658adfaef60b1337353e9c3e813e373f3c120cb1aa9d5a8d3aabb23e6f176b [INFO] running `Command { std: "docker" "start" "-a" "e5658adfaef60b1337353e9c3e813e373f3c120cb1aa9d5a8d3aabb23e6f176b", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/client_connector.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use slog::{debug, error, o, Discard, Logger}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientMessage`, `Result` [INFO] [stdout] --> src/server_message.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{ClientMessage, Identity, Result}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/client_connector.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/client_connector.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:117:42 [INFO] [stdout] | [INFO] [stdout] 117 | pub async fn send_message(&mut self, message: ClientMessage) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:148:47 [INFO] [stdout] | [INFO] [stdout] 148 | Some(Event::ChatMessage { chat_name, message }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:148:58 [INFO] [stdout] | [INFO] [stdout] 148 | Some(Event::ChatMessage { chat_name, message }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `message: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/client_connector.rs:149:48 [INFO] [stdout] | [INFO] [stdout] 149 | Some(Event::ContactFound { contact, chat_name }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `contact: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:149:57 [INFO] [stdout] | [INFO] [stdout] 149 | Some(Event::ContactFound { contact, chat_name }) => unimplemented!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | DirectMessage::ChatKeyRequest { chat_name } => unimplemented!(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_name` [INFO] [stdout] --> src/client_connector.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | chat_name, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `chat_name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chat_key` [INFO] [stdout] --> src/client_connector.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | chat_key, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `chat_key: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | DirectMessage::ChatKeyRequestError { message } => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `message: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/client_connector.rs:253:38 [INFO] [stdout] | [INFO] [stdout] 253 | ChatMessage::Message(message) => unimplemented!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipient` [INFO] [stdout] --> src/client_connector.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | recipient, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `recipient: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `connection` [INFO] [stdout] --> src/client_connector.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | connection: FramedClientConnection, [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: `server_key` [INFO] [stdout] --> src/client_connector.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn server_key(&self) -> Option<&secretbox::Key> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt_and_wrap` [INFO] [stdout] --> src/client_message.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn encrypt_and_wrap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encrypt_and_wrap` [INFO] [stdout] --> src/client_message.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | fn encrypt_and_wrap( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/framed_connection.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | pub type FramedClientConnection = [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 4 - pub type FramedClientConnection = [INFO] [stdout] 4 + pub type FramedClientConnection = [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases [INFO] [stdout] --> src/framed_connection.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 21 | pub type FramedServerConnection = [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed [INFO] [stdout] | [INFO] [stdout] 21 - pub type FramedServerConnection = [INFO] [stdout] 21 + pub type FramedServerConnection = [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling trithemius v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `connector_receiver` [INFO] [stdout] --> src/bin/client.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | connector_receiver: Receiver, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connector_receiver` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connector_sender` [INFO] [stdout] --> src/bin/client.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | connector_sender: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connector_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server_key` [INFO] [stdout] --> src/bin/client.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | server_key: Option, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_server_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyring` [INFO] [stdout] --> src/bin/client.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | keyring: keyring::KeyRing, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyring` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/bin/client.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | let (dest, msg) = match line.find(':') { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `String` cannot be built from an iterator over elements of type `u8` [INFO] [stdout] --> src/bin/server.rs:402:83 [INFO] [stdout] | [INFO] [stdout] 402 | let rand_string: String = thread_rng().sample_iter(&Alphanumeric).take(6).collect(); [INFO] [stdout] | ^^^^^^^ value of type `String` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator` is not implemented for `String` [INFO] [stdout] note: required by a bound in `std::iter::Iterator::collect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `connection` of struct `ClientConnector` is private [INFO] [stdout] --> src/bin/server.rs:427:30 [INFO] [stdout] | [INFO] [stdout] 427 | match &mut connector.connection { [INFO] [stdout] | ^^^^^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/server.rs:428:13 [INFO] [stdout] | [INFO] [stdout] 427 | match &mut connector.connection { [INFO] [stdout] | ------------------------- this expression has type `&mut tokio_serde::Framed, trithemius::server_message::ServerMessage, ClientMessage, tokio_serde::formats::messagepack::MessagePack>` [INFO] [stdout] 428 | Some(connection) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected struct `tokio_serde::Framed`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tokio_serde::Framed, trithemius::server_message::ServerMessage, ClientMessage, tokio_serde::formats::messagepack::MessagePack>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/server.rs:434:13 [INFO] [stdout] | [INFO] [stdout] 427 | match &mut connector.connection { [INFO] [stdout] | ------------------------- this expression has type `&mut tokio_serde::Framed, trithemius::server_message::ServerMessage, ClientMessage, tokio_serde::formats::messagepack::MessagePack>` [INFO] [stdout] ... [INFO] [stdout] 434 | None => panic!("there should be a connection!"), [INFO] [stdout] | ^^^^ expected struct `tokio_serde::Framed`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `tokio_serde::Framed, trithemius::server_message::ServerMessage, ClientMessage, tokio_serde::formats::messagepack::MessagePack>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_client_message` found for enum `trithemius::server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:442:42 [INFO] [stdout] | [INFO] [stdout] 442 | .send_message(ServerMessage::new_client_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `trithemius::server_message::ServerMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:444:33 [INFO] [stdout] | [INFO] [stdout] 444 | &ClientMessage::new_chat_message(None, &session_key, "Hello",)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_client_message` found for enum `trithemius::server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:474:42 [INFO] [stdout] | [INFO] [stdout] 474 | .send_message(ServerMessage::new_client_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `trithemius::server_message::ServerMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:476:33 [INFO] [stdout] | [INFO] [stdout] 476 | &ClientMessage::new_chat_message(None, &session_key, "Hello")?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `ClientMessage` found for enum `trithemius::server_message::ServerMessage` [INFO] [stdout] --> src/bin/server.rs:495:45 [INFO] [stdout] | [INFO] [stdout] 495 | client_message @ ServerMessage::ClientMessage { .. } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is a variant with a similar name: `DirectMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decrypt_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:498:36 [INFO] [stdout] | [INFO] [stdout] 498 | ClientMessage::decrypt_chat_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_client_message` found for enum `trithemius::server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:500:41 [INFO] [stdout] | [INFO] [stdout] 500 | &ServerMessage::get_client_message(&session_key, &client_message)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `trithemius::server_message::ServerMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_client_message` found for enum `trithemius::server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:556:42 [INFO] [stdout] | [INFO] [stdout] 556 | .send_message(ServerMessage::new_client_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `trithemius::server_message::ServerMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:558:33 [INFO] [stdout] | [INFO] [stdout] 558 | &ClientMessage::new_chat_message(None, &session_key, "Hello")?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `ClientMessage` found for enum `trithemius::server_message::ServerMessage` [INFO] [stdout] --> src/bin/server.rs:565:45 [INFO] [stdout] | [INFO] [stdout] 565 | client_message @ ServerMessage::ClientMessage { .. } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is a variant with a similar name: `DirectMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decrypt_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:568:36 [INFO] [stdout] | [INFO] [stdout] 568 | ClientMessage::decrypt_chat_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_client_message` found for enum `trithemius::server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:570:41 [INFO] [stdout] | [INFO] [stdout] 570 | &ServerMessage::get_client_message(&session_key, &client_message)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `trithemius::server_message::ServerMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `ClientMessage` found for enum `trithemius::server_message::ServerMessage` [INFO] [stdout] --> src/bin/server.rs:583:45 [INFO] [stdout] | [INFO] [stdout] 583 | client_message @ ServerMessage::ClientMessage { .. } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is a variant with a similar name: `DirectMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decrypt_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:586:36 [INFO] [stdout] | [INFO] [stdout] 586 | ClientMessage::decrypt_chat_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_client_message` found for enum `trithemius::server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:588:41 [INFO] [stdout] | [INFO] [stdout] 588 | &ServerMessage::get_client_message(&session_key, &client_message)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `trithemius::server_message::ServerMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_client_message` found for enum `trithemius::server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:624:42 [INFO] [stdout] | [INFO] [stdout] 624 | .send_message(ServerMessage::new_client_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `trithemius::server_message::ServerMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/bin/server.rs:626:33 [INFO] [stdout] | [INFO] [stdout] 626 | &ClientMessage::new_chat_message(None, &session_key, "Hello",)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ChatInvite` in this scope [INFO] [stdout] --> src/client_connector.rs:824:13 [INFO] [stdout] | [INFO] [stdout] 824 | ChatInvite { name, key } => { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/client_connector.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use slog::{debug, error, o, Discard, Logger}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/client_connector.rs:405:9 [INFO] [stdout] | [INFO] [stdout] 405 | (( [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 410 | )), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 405 ~ ( [INFO] [stdout] 406 | Logger, [INFO] [stdout] 407 | String, [INFO] [stdout] 408 | Sender, [INFO] [stdout] 409 | Receiver, [INFO] [stdout] 410 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientMessage`, `Result` [INFO] [stdout] --> src/server_message.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{ClientMessage, Identity, Result}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trithemius` due to 22 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/client_connector.rs:362:25 [INFO] [stdout] | [INFO] [stdout] 362 | ClientConnector::new(&keyring::Identity::new(name), name, Some(log)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ----------------------------- ---- --------- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/client_connector.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn new(stream: T, identity: &keyring::Identity, name: &str, log: Option) -> Self { [INFO] [stdout] | ^^^ --------- ---------------------------- ---------- ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `connect` found for struct `client_connector::ClientConnector<_>` in the current scope [INFO] [stdout] --> src/client_connector.rs:363:38 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ClientConnector { [INFO] [stdout] | -------------------------------------------------------------------------- method `connect` not found for this [INFO] [stdout] ... [INFO] [stdout] 363 | client_connector.connect(stream).await?; [INFO] [stdout] | -----------------^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `client_connector::ClientConnector::<_>::connect` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `client_connector::ClientConnector` [INFO] [stdout] --> src/client_connector.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / pub async fn connect<'a>( [INFO] [stdout] 95 | | stream: T, [INFO] [stdout] 96 | | identity: &'a keyring::Identity, [INFO] [stdout] 97 | | name: &'a str, [INFO] [stdout] 98 | | log: Option, [INFO] [stdout] 99 | | ) -> Result { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/client_connector.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 388 | / loop { [INFO] [stdout] 389 | | select! { [INFO] [stdout] 390 | | message_opt = framed.next() => match message_opt { [INFO] [stdout] 391 | | Some(msg) => sender.send(msg?)?, [INFO] [stdout] ... | [INFO] [stdout] 398 | | } [INFO] [stdout] 399 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 400 | [INFO] [stdout] 401 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client_connector.rs:450:9 [INFO] [stdout] | [INFO] [stdout] 450 | mut client_connector: &mut ClientConnector, [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_chat_invite` found for enum `server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/client_connector.rs:470:28 [INFO] [stdout] | [INFO] [stdout] 470 | ServerMessage::new_chat_invite(None, public_key, secret_key, "foo", server_key)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ variant or associated item not found in `server_message::ServerMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/server_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ServerMessage { [INFO] [stdout] | ---------------------- variant or associated item `new_chat_invite` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `ChatInvite` found for enum `server_message::ServerMessage` [INFO] [stdout] --> src/client_connector.rs:471:31 [INFO] [stdout] | [INFO] [stdout] 471 | if let ServerMessage::ChatInvite { [INFO] [stdout] | ^^^^^^^^^^ variant not found in `server_message::ServerMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/server_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ServerMessage { [INFO] [stdout] | ---------------------- variant `ChatInvite` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `std::string::String` cannot be built from an iterator over elements of type `u8` [INFO] [stdout] --> src/client_connector.rs:413:83 [INFO] [stdout] | [INFO] [stdout] 413 | let rand_string: String = thread_rng().sample_iter(&Alphanumeric).take(6).collect(); [INFO] [stdout] | ^^^^^^^ value of type `std::string::String` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator` is not implemented for `std::string::String` [INFO] [stdout] note: required by a bound in `std::iter::Iterator::collect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_server_chat_message` found for struct `client_connector::ClientConnector` in the current scope [INFO] [stdout] --> src/client_connector.rs:708:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ClientConnector { [INFO] [stdout] | -------------------------------------------------------------------------- method `send_server_chat_message` not found for this [INFO] [stdout] ... [INFO] [stdout] 708 | .send_server_chat_message("Hello!", Some(vec!["bar".into(), "baz".into()])) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `handle_chat_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decrypt_chat_message` found for enum `ClientMessage` in the current scope [INFO] [stdout] --> src/client_connector.rs:715:28 [INFO] [stdout] | [INFO] [stdout] 715 | ClientMessage::decrypt_chat_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `ClientMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/client_message.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ClientMessage { [INFO] [stdout] | ---------------------- variant or associated item `decrypt_chat_message` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_client_message` found for enum `server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/client_connector.rs:717:33 [INFO] [stdout] | [INFO] [stdout] 717 | &ServerMessage::get_client_message(&server_key, &chat_message)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `server_message::ServerMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/server_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ServerMessage { [INFO] [stdout] | ---------------------- variant or associated item `get_client_message` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_chat` found for struct `client_connector::ClientConnector` in the current scope [INFO] [stdout] --> src/client_connector.rs:744:18 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ClientConnector { [INFO] [stdout] | -------------------------------------------------------------------------- method `create_chat` not found for this [INFO] [stdout] ... [INFO] [stdout] 744 | .create_chat("new_chat".to_string(), &["bar"]) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `client_connector::ClientConnector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_chat` found for struct `client_connector::ClientConnector` in the current scope [INFO] [stdout] --> src/client_connector.rs:783:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct ClientConnector { [INFO] [stdout] | -------------------------------------------------------------------------- method `create_chat` not found for this [INFO] [stdout] ... [INFO] [stdout] 783 | .create_chat("new_chat".to_string(), &["bar"]) [INFO] [stdout] | ^^^^^^^^^^^ method not found in `client_connector::ClientConnector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `ClientMessage` found for enum `server_message::ServerMessage` [INFO] [stdout] --> src/client_connector.rs:789:28 [INFO] [stdout] | [INFO] [stdout] 789 | ServerMessage::ClientMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is a variant with a similar name: `DirectMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/server_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ServerMessage { [INFO] [stdout] | ---------------------- variant `ClientMessage` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `get_client_message` found for enum `server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/client_connector.rs:801:30 [INFO] [stdout] | [INFO] [stdout] 801 | match ServerMessage::get_client_message(&server_key, &server_msg.clone())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `server_message::ServerMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/server_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ServerMessage { [INFO] [stdout] | ---------------------- variant or associated item `get_client_message` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `CreateChat` found for enum `ClientMessage` [INFO] [stdout] --> src/client_connector.rs:802:28 [INFO] [stdout] | [INFO] [stdout] 802 | ClientMessage::CreateChat { chat_name } => assert_eq!("new_chat", chat_name), [INFO] [stdout] | ^^^^^^^^^^ variant not found in `ClientMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/client_message.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ClientMessage { [INFO] [stdout] | ---------------------- variant `CreateChat` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `ChatInvite` found for enum `server_message::ServerMessage` [INFO] [stdout] --> src/client_connector.rs:809:28 [INFO] [stdout] | [INFO] [stdout] 809 | ServerMessage::ChatInvite { [INFO] [stdout] | ^^^^^^^^^^ variant not found in `server_message::ServerMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/server_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ServerMessage { [INFO] [stdout] | ---------------------- variant `ChatInvite` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `decrypt_chat_invite` found for enum `server_message::ServerMessage` in the current scope [INFO] [stdout] --> src/client_connector.rs:819:30 [INFO] [stdout] | [INFO] [stdout] 819 | match ServerMessage::decrypt_chat_invite( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `server_message::ServerMessage` [INFO] [stdout] | [INFO] [stdout] ::: src/server_message.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ServerMessage { [INFO] [stdout] | ---------------------- variant or associated item `decrypt_chat_invite` not found here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/client_connector.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0422, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trithemius` due to 17 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e5658adfaef60b1337353e9c3e813e373f3c120cb1aa9d5a8d3aabb23e6f176b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5658adfaef60b1337353e9c3e813e373f3c120cb1aa9d5a8d3aabb23e6f176b", kill_on_drop: false }` [INFO] [stdout] e5658adfaef60b1337353e9c3e813e373f3c120cb1aa9d5a8d3aabb23e6f176b