[INFO] cloning repository https://github.com/Farbdose1231/PETChallenges
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Farbdose1231/PETChallenges" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFarbdose1231%2FPETChallenges", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFarbdose1231%2FPETChallenges'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5b6ed333f2f99e164fcdd01a9902f2dcc8d9e486
[INFO] testing Farbdose1231/PETChallenges against master#cced03bfd61a304243a34504618ecec86c17063f for pr-154065-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFarbdose1231%2FPETChallenges" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Farbdose1231/PETChallenges
[INFO] finished tweaking git repo https://github.com/Farbdose1231/PETChallenges
[INFO] tweaked toml for git repo https://github.com/Farbdose1231/PETChallenges written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Farbdose1231/PETChallenges on toolchain cced03bfd61a304243a34504618ecec86c17063f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Farbdose1231/PETChallenges 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" "+cced03bfd61a304243a34504618ecec86c17063f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded proc-macro2 v1.0.88
[INFO] [stderr]   Downloaded serde v1.0.211
[INFO] [stderr]   Downloaded serde_derive v1.0.211
[INFO] [stderr]   Downloaded syn v2.0.82
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3e515fc27fbd710b89436012ee8883c1bc0f6373ad5369f84d86f905909ed7d5
[INFO] running `Command { std: "docker" "start" "-a" "3e515fc27fbd710b89436012ee8883c1bc0f6373ad5369f84d86f905909ed7d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3e515fc27fbd710b89436012ee8883c1bc0f6373ad5369f84d86f905909ed7d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3e515fc27fbd710b89436012ee8883c1bc0f6373ad5369f84d86f905909ed7d5", kill_on_drop: false }`
[INFO] [stdout] 3e515fc27fbd710b89436012ee8883c1bc0f6373ad5369f84d86f905909ed7d5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 947032e3648109fcc516055d39f2e5f7390d547081ce8cec2dbc48be6735e26c
[INFO] running `Command { std: "docker" "start" "-a" "947032e3648109fcc516055d39f2e5f7390d547081ce8cec2dbc48be6735e26c", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]    Compiling proc-macro2 v1.0.88
[INFO] [stderr]    Compiling cpufeatures v0.2.14
[INFO] [stderr]    Compiling serde v1.0.211
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling serde_json v1.0.132
[INFO] [stderr]    Compiling inout v0.1.3
[INFO] [stderr]    Compiling curve25519-dalek v4.1.3
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.82
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling polyval v0.6.2
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling ghash v0.5.1
[INFO] [stderr]    Compiling aes-gcm v0.10.3
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling serde_derive v1.0.211
[INFO] [stderr]    Compiling curve25519-dalek-derive v0.1.1
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]    Compiling ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling Exercise2 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `aead::generic_array::GenericArray`
[INFO] [stdout]  --> src/aes.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use aead::generic_array::GenericArray;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]   --> src/aes.rs:10:25
[INFO] [stdout]    |
[INFO] [stdout] 10 | use rand::{rngs::OsRng, Rng};
[INFO] [stdout]    |                         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::keys::KeyPair`
[INFO] [stdout]  --> src/message.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::keys::KeyPair;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CompressedRistretto`
[INFO] [stdout]   --> src/main.rs:13:35
[INFO] [stdout]    |
[INFO] [stdout] 13 | use curve25519_dalek::ristretto::{CompressedRistretto, RistrettoPoint};
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `decrypt` is never used
[INFO] [stdout]   --> src/aes.rs:54:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl AESCiphertext {
[INFO] [stdout]    | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 54 |     pub fn decrypt(scalar_key: &Scalar, aes_ciphertext: &AESCiphertext) -> Result<Vec<u8>, String> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `keygen` and `decrypt` are never used
[INFO] [stdout]   --> src/elgamal.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl ElGamalCiphertext {
[INFO] [stdout]    | ---------------------- associated items in this implementation
[INFO] [stdout] 19 |     /// Generates a new KeyPair for encryption
[INFO] [stdout] 20 |     pub fn keygen() -> KeyPair {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub fn decrypt(&self, private_key: &Scalar) -> Scalar {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `keygen`, `decrypt`, and `deserialize` are never used
[INFO] [stdout]   --> src/hybrid_enc.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl HybridCiphertext {
[INFO] [stdout]    | --------------------- associated items in this implementation
[INFO] [stdout] 16 |     pub fn keygen() -> KeyPair {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn decrypt(&self, private_key: &Scalar) -> Result<Vec<u8>, String> {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 60 |     pub fn deserialize(bytes: &[u8]) -> Result<HybridCiphertext, String> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `public_key` is never read
[INFO] [stdout]   --> src/keys.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct KeyPair {
[INFO] [stdout]    |            ------- field in this struct
[INFO] [stdout] 13 |     pub private_key: Scalar,
[INFO] [stdout] 14 |     pub public_key: RistrettoPoint,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `KeyPair` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `generate`, `write_sk_to_file`, and `write_pk_to_file` are never used
[INFO] [stdout]   --> src/keys.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl KeyPair {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout] 18 |     pub fn generate() -> KeyPair {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub fn write_sk_to_file(&self, path: &str) -> io::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn write_pk_to_file(&self, path: &str) -> io::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `decrypt` and `display` are never used
[INFO] [stdout]    --> src/message.rs:82:12
[INFO] [stdout]     |
[INFO] [stdout]  40 | impl Message {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  82 |     pub fn decrypt(&mut self, elgamal_private_key: &Scalar) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn display(&self){}
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `keygen` is never used
[INFO] [stdout]   --> src/schnorr.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | impl SchnorrSignature {
[INFO] [stdout]    | --------------------- associated function in this implementation
[INFO] [stdout] 18 |     /// Generates a new KeyPair for signing
[INFO] [stdout] 19 |     pub fn keygen() -> KeyPair {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `deserialize_message_from_bytes` is never used
[INFO] [stdout]    --> src/serializers.rs:112:8
[INFO] [stdout]     |
[INFO] [stdout] 112 | pub fn deserialize_message_from_bytes(bytes: &[u8]) -> Result<Message, String> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.45s
[INFO] running `Command { std: "docker" "inspect" "947032e3648109fcc516055d39f2e5f7390d547081ce8cec2dbc48be6735e26c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "947032e3648109fcc516055d39f2e5f7390d547081ce8cec2dbc48be6735e26c", kill_on_drop: false }`
[INFO] [stdout] 947032e3648109fcc516055d39f2e5f7390d547081ce8cec2dbc48be6735e26c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 043746eb658b8252cacba380f282bc7bafd16aa91d369ff40eee65de8b0173a2
[INFO] running `Command { std: "docker" "start" "-a" "043746eb658b8252cacba380f282bc7bafd16aa91d369ff40eee65de8b0173a2", kill_on_drop: false }`
[INFO] [stderr]    Compiling Exercise2 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `aead::generic_array::GenericArray`
[INFO] [stdout]  --> src/aes.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use aead::generic_array::GenericArray;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]   --> src/aes.rs:10:25
[INFO] [stdout]    |
[INFO] [stdout] 10 | use rand::{rngs::OsRng, Rng};
[INFO] [stdout]    |                         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]    --> src/message.rs:123:9
[INFO] [stdout]     |
[INFO] [stdout] 123 |     use std::fs;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CompressedRistretto`
[INFO] [stdout]   --> src/main.rs:13:35
[INFO] [stdout]    |
[INFO] [stdout] 13 | use curve25519_dalek::ristretto::{CompressedRistretto, RistrettoPoint};
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.36s
[INFO] running `Command { std: "docker" "inspect" "043746eb658b8252cacba380f282bc7bafd16aa91d369ff40eee65de8b0173a2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "043746eb658b8252cacba380f282bc7bafd16aa91d369ff40eee65de8b0173a2", kill_on_drop: false }`
[INFO] [stdout] 043746eb658b8252cacba380f282bc7bafd16aa91d369ff40eee65de8b0173a2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+cced03bfd61a304243a34504618ecec86c17063f" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] ebbf57f091c554d98d1eed707ccd85eb0baf2760391caa2d721cd24c0b7eec35
[INFO] running `Command { std: "docker" "start" "-a" "ebbf57f091c554d98d1eed707ccd85eb0baf2760391caa2d721cd24c0b7eec35", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `aead::generic_array::GenericArray`
[INFO] [stderr]  --> src/aes.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use aead::generic_array::GenericArray;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Rng`
[INFO] [stderr]   --> src/aes.rs:10:25
[INFO] [stderr]    |
[INFO] [stderr] 10 | use rand::{rngs::OsRng, Rng};
[INFO] [stderr]    |                         ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::fs`
[INFO] [stderr]    --> src/message.rs:123:9
[INFO] [stderr]     |
[INFO] [stderr] 123 |     use std::fs;
[INFO] [stderr]     |         ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `CompressedRistretto`
[INFO] [stderr]   --> src/main.rs:13:35
[INFO] [stderr]    |
[INFO] [stderr] 13 | use curve25519_dalek::ristretto::{CompressedRistretto, RistrettoPoint};
[INFO] [stderr]    |                                   ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `Exercise2` (bin "Exercise2" test) generated 4 warnings (run `cargo fix --bin "Exercise2" -p Exercise2 --tests` to apply 4 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/Exercise2-d92a5862b162d80e)
[INFO] [stdout] 
[INFO] [stdout] running 19 tests
[INFO] [stdout] test aes::tests::test_aes_correctness ... ok
[INFO] [stdout] test message::tests::test_message_creation ... ok
[INFO] [stdout] test elgamal::tests::test_elgamal_correctness ... ok
[INFO] [stdout] test serializers::tests::test_serialize_and_deserialize_message ... ok
[INFO] [stdout] test elgamal::tests::test_elgamal_encrypt_small_scalar ... ok
[INFO] [stdout] test hybrid_enc::tests::test_hybrid_encryption_decryption ... ok
[INFO] [stdout] test keys::tests::test_write_and_read_keypair ... FAILED
[INFO] [stdout] test hybrid_enc::tests::test_serialization_deserialization ... ok
[INFO] [stdout] test elgamal::tests::test_elgamal_different_keys ... ok
[INFO] [stdout] test schnorr::tests::test_edge_case_empty_message ... ok
[INFO] [stdout] test schnorr::tests::test_invalid_public_key ... ok
[INFO] [stdout] test keys::tests::test_generate_keypair ... ok
[INFO] [stdout] test schnorr::tests::test_invalid_signature_message ... ok
[INFO] [stdout] test schnorr::tests::test_repeated_signing_different_signatures ... ok
[INFO] [stdout] test elgamal::tests::test_elgamal_encrypt_zero_scalar ... ok
[INFO] [stdout] test elgamal::tests::test_elgamal_repeated_encryption_produces_different_ciphertexts ... ok
[INFO] [stdout] test schnorr::tests::test_valid_signature ... ok
[INFO] [stdout] test message::tests::test_message_encryption_and_decryption ... ok
[INFO] [stdout] test schnorr::tests::test_invalid_signature_signature ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- keys::tests::test_write_and_read_keypair stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'keys::tests::test_write_and_read_keypair' (27) panicked at src/keys.rs:125:14:
[INFO] [stdout] Failed to write sk to file: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x5616fb037608 - std[929523f510218772]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x5616fb037608 - std[929523f510218772]::backtrace_rs::backtrace::trace_unsynchronized::<std[929523f510218772]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x5616fb037608 - std[929523f510218772]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x5616fb037608 - <<std[929523f510218772]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[28b146924c2f19c6]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x5616fb04bb8a - <core[28b146924c2f19c6]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x5616fb04bb8a - core[28b146924c2f19c6]::fmt::write
[INFO] [stdout]    6:     0x5616fb03be42 - std[929523f510218772]::io::default_write_fmt::<alloc[95e62e727ddf147d]::vec::Vec<u8>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/io/mod.rs:622:11
[INFO] [stdout]    7:     0x5616fb03be42 - <alloc[95e62e727ddf147d]::vec::Vec<u8> as std[929523f510218772]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/io/mod.rs:1977:13
[INFO] [stdout]    8:     0x5616fb016706 - <std[929523f510218772]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x5616fb016706 - std[929523f510218772]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x5616fb02faa9 - std[929523f510218772]::panicking::default_hook
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x5616faf386bc - <alloc[95e62e727ddf147d]::boxed::Box<dyn for<'a, 'b> core[28b146924c2f19c6]::ops::function::Fn<(&'a std[929523f510218772]::panic::PanicHookInfo<'b>,), Output = ()> + core[28b146924c2f19c6]::marker::Sync + core[28b146924c2f19c6]::marker::Send> as core[28b146924c2f19c6]::ops::function::Fn<(&std[929523f510218772]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/alloc/src/boxed.rs:2291:9
[INFO] [stdout]   12:     0x5616faf386bc - test[6ec0502068880816]::test_main_inner::<test[6ec0502068880816]::test_main_static::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:155:21
[INFO] [stdout]   13:     0x5616fb02fc62 - <alloc[95e62e727ddf147d]::boxed::Box<dyn for<'a, 'b> core[28b146924c2f19c6]::ops::function::Fn<(&'a std[929523f510218772]::panic::PanicHookInfo<'b>,), Output = ()> + core[28b146924c2f19c6]::marker::Sync + core[28b146924c2f19c6]::marker::Send> as core[28b146924c2f19c6]::ops::function::Fn<(&std[929523f510218772]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/alloc/src/boxed.rs:2291:9
[INFO] [stdout]   14:     0x5616fb02fc62 - std[929523f510218772]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x5616fb0167c2 - std[929523f510218772]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:698:13
[INFO] [stdout]   16:     0x5616fb00b919 - std[929523f510218772]::sys::backtrace::__rust_end_short_backtrace::<std[929523f510218772]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x5616fb0174dd - __rustc[acf6043c977865fb]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x5616fb04c31c - core[28b146924c2f19c6]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x5616fb04c092 - core[28b146924c2f19c6]::result::unwrap_failed
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/result.rs:1872:5
[INFO] [stdout]   20:     0x5616faf0a11c - <core[28b146924c2f19c6]::result::Result<(), std[929523f510218772]::io::error::Error>>::expect
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/result.rs:1185:23
[INFO] [stdout]   21:     0x5616faf2869c - Exercise2[a4bdb5d56fe15148]::keys::tests::test_write_and_read_keypair
[INFO] [stdout]                                at /opt/rustwide/workdir/src/keys.rs:125:14
[INFO] [stdout]   22:     0x5616faf23f77 - Exercise2[a4bdb5d56fe15148]::keys::tests::test_write_and_read_keypair::{closure#0}
[INFO] [stdout]                                at /opt/rustwide/workdir/src/keys.rs:117:37
[INFO] [stdout]   23:     0x5616faf18556 - <Exercise2[a4bdb5d56fe15148]::keys::tests::test_write_and_read_keypair::{closure#0} as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x5616faf2b79b - <fn() -> core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   25:     0x5616faf2b79b - test[6ec0502068880816]::__rust_begin_short_backtrace::<core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>, fn() -> core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:724:18
[INFO] [stdout]   26:     0x5616faf39015 - test[6ec0502068880816]::run_test_in_process::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:747:74
[INFO] [stdout]   27:     0x5616faf39015 - <core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   28:     0x5616faf39015 - std[929523f510218772]::panicking::catch_unwind::do_call::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}>, core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:581:40
[INFO] [stdout]   29:     0x5616faf39015 - std[929523f510218772]::panicking::catch_unwind::<core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>, core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:544:19
[INFO] [stdout]   30:     0x5616faf39015 - std[929523f510218772]::panic::catch_unwind::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<test[6ec0502068880816]::run_test_in_process::{closure#0}>, core[28b146924c2f19c6]::result::Result<(), alloc[95e62e727ddf147d]::string::String>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panic.rs:359:14
[INFO] [stdout]   31:     0x5616faf39015 - test[6ec0502068880816]::run_test_in_process
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:747:27
[INFO] [stdout]   32:     0x5616faf39015 - test[6ec0502068880816]::run_test::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:668:43
[INFO] [stdout]   33:     0x5616faf33b74 - test[6ec0502068880816]::run_test::{closure#1}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/test/src/lib.rs:698:41
[INFO] [stdout]   34:     0x5616faf33b74 - std[929523f510218772]::sys::backtrace::__rust_begin_short_backtrace::<test[6ec0502068880816]::run_test::{closure#1}, ()>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   35:     0x5616faf3c092 - std[929523f510218772]::thread::lifecycle::spawn_unchecked::<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/thread/lifecycle.rs:70:13
[INFO] [stdout]   36:     0x5616faf3c092 - <core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/panic/unwind_safe.rs:275:9
[INFO] [stdout]   37:     0x5616faf3c092 - std[929523f510218772]::panicking::catch_unwind::do_call::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:581:40
[INFO] [stdout]   38:     0x5616faf3c092 - std[929523f510218772]::panicking::catch_unwind::<(), core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panicking.rs:544:19
[INFO] [stdout]   39:     0x5616faf3c092 - std[929523f510218772]::panic::catch_unwind::<core[28b146924c2f19c6]::panic::unwind_safe::AssertUnwindSafe<std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/panic.rs:359:14
[INFO] [stdout]   40:     0x5616faf3c092 - std[929523f510218772]::thread::lifecycle::spawn_unchecked::<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/thread/lifecycle.rs:68:26
[INFO] [stdout]   41:     0x5616faf3c092 - <std[929523f510218772]::thread::lifecycle::spawn_unchecked<test[6ec0502068880816]::run_test::{closure#1}, ()>::{closure#1} as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   42:     0x5616fb036f6f - <alloc[95e62e727ddf147d]::boxed::Box<dyn core[28b146924c2f19c6]::ops::function::FnOnce<(), Output = ()> + core[28b146924c2f19c6]::marker::Send> as core[28b146924c2f19c6]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/alloc/src/boxed.rs:2277:9
[INFO] [stdout]   43:     0x5616fb036f6f - <std[929523f510218772]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]                                at /rustc/cced03bfd61a304243a34504618ecec86c17063f/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stdout]   44:     0x79438646caa4 - <unknown>
[INFO] [stdout]   45:     0x7943864f9a64 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     keys::tests::test_write_and_read_keypair
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 18 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.64s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--bin Exercise2`
[INFO] running `Command { std: "docker" "inspect" "ebbf57f091c554d98d1eed707ccd85eb0baf2760391caa2d721cd24c0b7eec35", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ebbf57f091c554d98d1eed707ccd85eb0baf2760391caa2d721cd24c0b7eec35", kill_on_drop: false }`
[INFO] [stdout] ebbf57f091c554d98d1eed707ccd85eb0baf2760391caa2d721cd24c0b7eec35
