[INFO] cloning repository https://github.com/JoshuaRadin37/secure_com [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoshuaRadin37/secure_com" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2Fsecure_com", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2Fsecure_com'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04121a62179a2a72781939926a8a0de582e821f3 [INFO] checking JoshuaRadin37/secure_com against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2Fsecure_com" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JoshuaRadin37/secure_com on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JoshuaRadin37/secure_com [INFO] finished tweaking git repo https://github.com/JoshuaRadin37/secure_com [INFO] tweaked toml for git repo https://github.com/JoshuaRadin37/secure_com written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JoshuaRadin37/secure_com 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" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a583b55c3378731c8db1e59e1ae5888e04a6d350db7d1070b0b89ee3f227ccc [INFO] running `Command { std: "docker" "start" "-a" "6a583b55c3378731c8db1e59e1ae5888e04a6d350db7d1070b0b89ee3f227ccc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a583b55c3378731c8db1e59e1ae5888e04a6d350db7d1070b0b89ee3f227ccc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a583b55c3378731c8db1e59e1ae5888e04a6d350db7d1070b0b89ee3f227ccc", kill_on_drop: false }` [INFO] [stdout] 6a583b55c3378731c8db1e59e1ae5888e04a6d350db7d1070b0b89ee3f227ccc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5db6e5ae000004aa394eed4145ab5ac1e858f232a225354ceee2226fc966be99 [INFO] running `Command { std: "docker" "start" "-a" "5db6e5ae000004aa394eed4145ab5ac1e858f232a225354ceee2226fc966be99", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling num-bigint v0.3.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking readwrite v0.1.2 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking pipe v0.4.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking secure_communication v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/encryption/mod.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead, BufReader, BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AESReader`, `AESWriter` [INFO] [stdout] --> src/encryption/mod.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::encryption::aes::aes_stream::{AESReader, AESWriter}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string::FromUtf8Error` [INFO] [stdout] --> src/encryption/./aes_stream.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | use std::string::FromUtf8Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AESReader`, `AESWriter` [INFO] [stdout] --> src/handshake.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::encryption::aes::aes_stream::{AESWriter, AESReader}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RSAKeys` [INFO] [stdout] --> src/handshake.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::encryption::rsa::{RSAWriter, RSAKeys, RSAKeysGenerator, RSAReader}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handshake_start` [INFO] [stdout] --> src/handshake.rs:9:72 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::encryption::unsecure::{send_public_key, receive_public_key, handshake_start}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/handshake.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/handshake.rs:70:44 [INFO] [stdout] | [INFO] [stdout] 70 | use std::net::{TcpStream, TcpListener, SocketAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/encryption/mod.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead, BufReader, BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AESReader`, `AESWriter` [INFO] [stdout] --> src/encryption/mod.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::encryption::aes::aes_stream::{AESReader, AESWriter}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AESReader`, `AESWriter` [INFO] [stdout] --> src/handshake.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::encryption::aes::aes_stream::{AESWriter, AESReader}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RSAKeys` [INFO] [stdout] --> src/handshake.rs:8:41 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::encryption::rsa::{RSAWriter, RSAKeys, RSAKeysGenerator, RSAReader}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handshake_start` [INFO] [stdout] --> src/handshake.rs:9:72 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::encryption::unsecure::{send_public_key, receive_public_key, handshake_start}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/encryption/rsa.rs:152:26 [INFO] [stdout] | [INFO] [stdout] 152 | if let (Some(n), Some(e)) = (captures.get(1), captures.get(2)) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/encryption/rsa.rs:152:35 [INFO] [stdout] | [INFO] [stdout] 152 | if let (Some(n), Some(e)) = (captures.get(1), captures.get(2)) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/encryption/rsa.rs:152:26 [INFO] [stdout] | [INFO] [stdout] 152 | if let (Some(n), Some(e)) = (captures.get(1), captures.get(2)) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/encryption/rsa.rs:152:35 [INFO] [stdout] | [INFO] [stdout] 152 | if let (Some(n), Some(e)) = (captures.get(1), captures.get(2)) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/encryption/./aes_stream.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let length = reader.read_to_string(&mut string).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/encryption/mod.rs:124:76 [INFO] [stdout] | [INFO] [stdout] 124 | ...Read>(server_nonce: &String, writer: &mut RSAWriter, reader: &mut RSAReader) -> std::io::Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/encryption/mod.rs:124:76 [INFO] [stdout] | [INFO] [stdout] 124 | ...Read>(server_nonce: &String, writer: &mut RSAWriter, reader: &mut RSAReader) -> std::io::Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parent` is never read [INFO] [stdout] --> src/encryption/rsa.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct PrivateKey<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 179 | parent: &'a RSAKeys, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrivateKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parent` is never read [INFO] [stdout] --> src/encryption/rsa.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct PrivateKey<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 179 | parent: &'a RSAKeys, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrivateKey` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/encryption/rsa.rs:342:58 [INFO] [stdout] | [INFO] [stdout] 342 | let rsa_message = RSAMessage::from_message(string.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `secure_communication` (lib test) due to 2 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "5db6e5ae000004aa394eed4145ab5ac1e858f232a225354ceee2226fc966be99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5db6e5ae000004aa394eed4145ab5ac1e858f232a225354ceee2226fc966be99", kill_on_drop: false }` [INFO] [stdout] 5db6e5ae000004aa394eed4145ab5ac1e858f232a225354ceee2226fc966be99