[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 master#b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18 for pr-79470 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2Fsecure_com" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JoshuaRadin37/secure_com on toolchain b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "read-manifest" "--manifest-path" "Cargo.toml", 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-8/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: "/workspace/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa4a8c26dde582588a90493d9be5b6b542a97fd56f6d060ab186b021b44de2d4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fa4a8c26dde582588a90493d9be5b6b542a97fd56f6d060ab186b021b44de2d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa4a8c26dde582588a90493d9be5b6b542a97fd56f6d060ab186b021b44de2d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa4a8c26dde582588a90493d9be5b6b542a97fd56f6d060ab186b021b44de2d4", kill_on_drop: false }` [INFO] [stdout] fa4a8c26dde582588a90493d9be5b6b542a97fd56f6d060ab186b021b44de2d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+b7ebc6b0c1ba3c27ebb17c0b496ece778ef11e18" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51e15c07bacea043e05390c541bb65a434aa2cf62feab8a6a98eb3c6cf9f70e7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "51e15c07bacea043e05390c541bb65a434aa2cf62feab8a6a98eb3c6cf9f70e7", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking readwrite v0.1.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking thread_local v1.0.1 [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 num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [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 rand_chacha v0.2.2 [INFO] [stderr] Checking pipe v0.4.0 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking rand v0.7.3 [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 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: `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: `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: `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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.61s [INFO] running `Command { std: "docker" "inspect" "51e15c07bacea043e05390c541bb65a434aa2cf62feab8a6a98eb3c6cf9f70e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51e15c07bacea043e05390c541bb65a434aa2cf62feab8a6a98eb3c6cf9f70e7", kill_on_drop: false }` [INFO] [stdout] 51e15c07bacea043e05390c541bb65a434aa2cf62feab8a6a98eb3c6cf9f70e7