[INFO] fetching crate rust-crypto-hatter-fork 0.2.36... [INFO] checking rust-crypto-hatter-fork-0.2.36 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate rust-crypto-hatter-fork 0.2.36 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate rust-crypto-hatter-fork 0.2.36 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate rust-crypto-hatter-fork 0.2.36 [INFO] tweaked toml for crates.io crate rust-crypto-hatter-fork 0.2.36 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-crypto-hatter-fork 0.2.36 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust-crypto-hatter-fork 0.2.36 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f7e05d11cdf842fc8405c3d0ca3721072c239ab34763af12879d6ba46b845af [INFO] running `Command { std: "docker" "start" "-a" "9f7e05d11cdf842fc8405c3d0ca3721072c239ab34763af12879d6ba46b845af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f7e05d11cdf842fc8405c3d0ca3721072c239ab34763af12879d6ba46b845af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f7e05d11cdf842fc8405c3d0ca3721072c239ab34763af12879d6ba46b845af", kill_on_drop: false }` [INFO] [stdout] 9f7e05d11cdf842fc8405c3d0ca3721072c239ab34763af12879d6ba46b845af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d38e0528820a0e0308db5d62a1fbb91889201d3f3688eb2ae0ef4e56b3f5d5e [INFO] running `Command { std: "docker" "start" "-a" "3d38e0528820a0e0308db5d62a1fbb91889201d3f3688eb2ae0ef4e56b3f5d5e", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling rust-crypto-hatter-fork v0.2.36 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated type alias `gcc::Config`: gcc::Config has been renamed to gcc::Build [INFO] [stdout] --> build.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let mut config = gcc::Config::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `gcc::Config`: gcc::Config has been renamed to gcc::Build [INFO] [stdout] --> build.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | let mut cfg = gcc::Config::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:16:39 [INFO] [stdout] | [INFO] [stdout] 16 | let mut config = gcc::Config::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:25:36 [INFO] [stdout] | [INFO] [stdout] 25 | let mut cfg = gcc::Config::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockmodes.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 155 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockmodes.rs:243:10 [INFO] [stdout] | [INFO] [stdout] 243 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/fortuna.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | const MAX_GEN_SIZE: usize = (1 << 20); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - const MAX_GEN_SIZE: usize = (1 << 20); [INFO] [stdout] 63 + const MAX_GEN_SIZE: usize = 1 << 20; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pbkdf2.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | let mut rng = try!(OsRng::new()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/scrypt.rs:272:19 [INFO] [stdout] | [INFO] [stdout] 272 | let mut rng = try!(OsRng::new()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/util.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/util.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/aesni.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 100 | let mut tmp: u64 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:116:37 [INFO] [stdout] | [INFO] [stdout] 116 | let mut tmp: u64 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:148:37 [INFO] [stdout] | [INFO] [stdout] 148 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:161:33 [INFO] [stdout] | [INFO] [stdout] 161 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:171:33 [INFO] [stdout] | [INFO] [stdout] 171 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/ghash.rs:47:50 [INFO] [stdout] | [INFO] [stdout] 47 | let mut result: [u8; 16] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/ghash.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | let mut table: [Gf128; 128] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/util.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | val: libc::uint8_t, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | let mut k: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:154:40 [INFO] [stdout] | [INFO] [stdout] 154 | let mut block: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:155:40 [INFO] [stdout] | [INFO] [stdout] 155 | let mut state: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | let mut l: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes_gcm.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | cipher: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | cipher: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 29 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 142 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 200 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | iv: &[u8]) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 257 | iv: &[u8]) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/symmetriccipher.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | impl Encryptor for Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | impl Encryptor for Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/symmetriccipher.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | impl Decryptor for Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 | impl Decryptor for Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/symmetriccipher.rs:51:38 [INFO] [stdout] | [INFO] [stdout] 51 | impl SynchronousStreamCipher for Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 51 | impl SynchronousStreamCipher for Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serialize` [INFO] [stdout] --> src/aes_gcm.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | use serialize::hex::FromHex; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `serialize` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `serialize`, use `cargo add serialize` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + extern crate serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serialize` [INFO] [stdout] --> src/blake2b.rs:395:9 [INFO] [stdout] | [INFO] [stdout] 395 | use serialize::hex::FromHex; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `serialize` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `serialize`, use `cargo add serialize` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + extern crate serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serialize` [INFO] [stdout] --> src/hc128.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | use serialize::hex::{FromHex}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `serialize` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `serialize`, use `cargo add serialize` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + extern crate serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serialize` [INFO] [stdout] --> src/sha3.rs:462:9 [INFO] [stdout] | [INFO] [stdout] 462 | use serialize::hex::{FromHex, ToHex}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `serialize` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `serialize`, use `cargo add serialize` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + extern crate serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serialize` [INFO] [stdout] --> src/sosemanuk.rs:2334:9 [INFO] [stdout] | [INFO] [stdout] 2334 | use serialize::hex::{FromHex}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `serialize` [INFO] [stdout] | [INFO] [stdout] help: if you wanted to use a crate named `serialize`, use `cargo add serialize` to add it to your `Cargo.toml` and import it in your code [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 + extern crate serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockmodes.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 155 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/blockmodes.rs:243:10 [INFO] [stdout] | [INFO] [stdout] 243 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/chacha20.rs:290:10 [INFO] [stdout] | [INFO] [stdout] 290 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/chacha20.rs:466:10 [INFO] [stdout] | [INFO] [stdout] 466 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/fortuna.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | const MAX_GEN_SIZE: usize = (1 << 20); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - const MAX_GEN_SIZE: usize = (1 << 20); [INFO] [stdout] 63 + const MAX_GEN_SIZE: usize = 1 << 20; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pbkdf2.rs:132:19 [INFO] [stdout] | [INFO] [stdout] 132 | let mut rng = try!(OsRng::new()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/scrypt.rs:272:19 [INFO] [stdout] | [INFO] [stdout] 272 | let mut rng = try!(OsRng::new()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/util.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/util.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/aesni.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 100 | let mut tmp: u64 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:116:37 [INFO] [stdout] | [INFO] [stdout] 116 | let mut tmp: u64 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:148:37 [INFO] [stdout] | [INFO] [stdout] 148 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:161:33 [INFO] [stdout] | [INFO] [stdout] 161 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/cryptoutil.rs:171:33 [INFO] [stdout] | [INFO] [stdout] 171 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/ghash.rs:47:50 [INFO] [stdout] | [INFO] [stdout] 47 | let mut result: [u8; 16] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/ghash.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 166 | let mut table: [Gf128; 128] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `libc::uint8_t`: Use u8 instead. [INFO] [stdout] --> src/util.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | val: libc::uint8_t, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | use std::mem::uninitialized; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | let mut k: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:154:40 [INFO] [stdout] | [INFO] [stdout] 154 | let mut block: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:155:40 [INFO] [stdout] | [INFO] [stdout] 155 | let mut state: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/whirlpool.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | let mut l: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/whirlpool.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes_gcm.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | cipher: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 | cipher: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 29 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:85:28 [INFO] [stdout] | [INFO] [stdout] 85 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 142 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | padding: X) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 200 | padding: X) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/aes.rs:257:27 [INFO] [stdout] | [INFO] [stdout] 257 | iv: &[u8]) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 257 | iv: &[u8]) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/symmetriccipher.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | impl Encryptor for Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 | impl Encryptor for Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/symmetriccipher.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | impl Decryptor for Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 | impl Decryptor for Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/symmetriccipher.rs:51:38 [INFO] [stdout] | [INFO] [stdout] 51 | impl SynchronousStreamCipher for Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 51 | impl SynchronousStreamCipher for Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/aes_gcm.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | raw_hex.from_hex().ok().unwrap() [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/blake2b.rs:446:60 [INFO] [stdout] | [INFO] [stdout] 443 | output: "786a02f742015903c6c6fd852552d272\ [INFO] [stdout] | _________________________- [INFO] [stdout] 444 | | 912f4740e15847618a86e217f71f5419\ [INFO] [stdout] 445 | | d25e1031afee585313896444934eb04b\ [INFO] [stdout] 446 | | 903a685b1448b755d56f701afe9be2ce".from_hex().unwrap(), [INFO] [stdout] | | -^^^^^^^^ method not found in `&'static str` [INFO] [stdout] | |___________________________________________________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/blake2b.rs:454:60 [INFO] [stdout] | [INFO] [stdout] 451 | output: "a8add4bdddfd93e4877d2746e62817b1\ [INFO] [stdout] | _________________________- [INFO] [stdout] 452 | | 16364a1fa7bc148d95090bc7333b3673\ [INFO] [stdout] 453 | | f82401cf7aa2e4cb1ecd90296e3f14cb\ [INFO] [stdout] 454 | | 5413f8ed77be73045b13914cdcd6a918".from_hex().unwrap(), [INFO] [stdout] | | -^^^^^^^^ method not found in `&'static str` [INFO] [stdout] | |___________________________________________________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:191:54 [INFO] [stdout] | [INFO] [stdout] 191 | let key = "00000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:192:56 [INFO] [stdout] | [INFO] [stdout] 192 | let nonce = "00000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/hc128.rs:196:51 [INFO] [stdout] | [INFO] [stdout] 196 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:208:54 [INFO] [stdout] | [INFO] [stdout] 208 | let key = "0558ABFE51A4F74A9DF04396E93C8FE2".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:209:56 [INFO] [stdout] | [INFO] [stdout] 209 | let nonce = "167DE44BB21980E74EB51C83EA51B81F".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/hc128.rs:213:51 [INFO] [stdout] | [INFO] [stdout] 213 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:226:54 [INFO] [stdout] | [INFO] [stdout] 226 | let key = "0A5DB00356A9FC4FA2F5489BEE4194E7".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:227:56 [INFO] [stdout] | [INFO] [stdout] 227 | let nonce = "1F86ED54BB2289F057BE258CF35AC128".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/hc128.rs:231:51 [INFO] [stdout] | [INFO] [stdout] 231 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:244:54 [INFO] [stdout] | [INFO] [stdout] 244 | let key = "0F62B5085BAE0154A7FA4DA0F34699EC".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/hc128.rs:245:56 [INFO] [stdout] | [INFO] [stdout] 245 | let nonce = "288FF65DC42B92F960C72E95FC63CA31".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/hc128.rs:249:51 [INFO] [stdout] | [INFO] [stdout] 249 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sha3.rs:472:31 [INFO] [stdout] | [INFO] [stdout] 472 | sh.input(&t.input.from_hex().unwrap()); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/sha3.rs:477:37 [INFO] [stdout] | [INFO] [stdout] 477 | println!("{}", &out_str.to_hex()); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `ToHex` which provides `to_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 460 + use util_hex::ToHex; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 477 - println!("{}", &out_str.to_hex()); [INFO] [stdout] 477 + println!("{}", &out_str.to_vec()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/sha3.rs:478:30 [INFO] [stdout] | [INFO] [stdout] 478 | assert!(&out_str.to_hex() == t.output_str); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `ToHex` which provides `to_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 460 + use util_hex::ToHex; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 478 - assert!(&out_str.to_hex() == t.output_str); [INFO] [stdout] 478 + assert!(&out_str.to_vec() == t.output_str); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sha3.rs:489:35 [INFO] [stdout] | [INFO] [stdout] 489 | sh.input(&t.input.from_hex().unwrap()[len - left..take + len - left]); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/sha3.rs:497:30 [INFO] [stdout] | [INFO] [stdout] 497 | assert!(&out_str.to_hex() == t.output_str); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `ToHex` which provides `to_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 460 + use util_hex::ToHex; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 497 - assert!(&out_str.to_hex() == t.output_str); [INFO] [stdout] 497 + assert!(&out_str.to_vec() == t.output_str); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2340:86 [INFO] [stdout] | [INFO] [stdout] 2340 | let key = "8000000000000000000000000000000000000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2341:56 [INFO] [stdout] | [INFO] [stdout] 2341 | let nonce = "00000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2345:51 [INFO] [stdout] | [INFO] [stdout] 2345 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2357:54 [INFO] [stdout] | [INFO] [stdout] 2357 | let key = "3F3F3F3F3F3F3F3F3F3F3F3F3F3F3F3F".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2358:56 [INFO] [stdout] | [INFO] [stdout] 2358 | let nonce = "00000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2362:51 [INFO] [stdout] | [INFO] [stdout] 2362 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2374:86 [INFO] [stdout] | [INFO] [stdout] 2374 | let key = "5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A5A".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2375:56 [INFO] [stdout] | [INFO] [stdout] 2375 | let nonce = "00000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2379:51 [INFO] [stdout] | [INFO] [stdout] 2379 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2391:82 [INFO] [stdout] | [INFO] [stdout] 2391 | let key = "8788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2392:56 [INFO] [stdout] | [INFO] [stdout] 2392 | let nonce = "00000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2396:51 [INFO] [stdout] | [INFO] [stdout] 2396 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2408:86 [INFO] [stdout] | [INFO] [stdout] 2408 | let key = "CFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEE".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2409:56 [INFO] [stdout] | [INFO] [stdout] 2409 | let nonce = "00000000000000000000000000000000".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2413:51 [INFO] [stdout] | [INFO] [stdout] 2413 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2425:86 [INFO] [stdout] | [INFO] [stdout] 2425 | let key = "0F62B5085BAE0154A7FA4DA0F34699EC3F92E5388BDE3184D72A7DD02376C91C".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2426:56 [INFO] [stdout] | [INFO] [stdout] 2426 | let nonce = "288FF65DC42B92F960C72E95FC63CA31".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2430:51 [INFO] [stdout] | [INFO] [stdout] 2430 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2444:32 [INFO] [stdout] | [INFO] [stdout] 2444 | let key = "A7C083FEB7".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2445:56 [INFO] [stdout] | [INFO] [stdout] 2445 | let nonce = "00112233445566778899AABBCCDDEEFF".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2449:51 [INFO] [stdout] | [INFO] [stdout] 2449 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2461:54 [INFO] [stdout] | [INFO] [stdout] 2461 | let key = "00112233445566778899AABBCCDDEEFF".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2462:56 [INFO] [stdout] | [INFO] [stdout] 2462 | let nonce = "8899AABBCCDDEEFF0011223344556677".from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `from_hex` found for reference `&str` in the current scope [INFO] [stdout] --> src/sosemanuk.rs:2466:51 [INFO] [stdout] | [INFO] [stdout] 2466 | let expected_output = expected_output_hex.from_hex().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/whirlpool.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest::Digest` [INFO] [stdout] --> src/hmac.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | use digest::Digest; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_u32_be` and `write_u64_be` are never used [INFO] [stdout] --> src/cryptoutil.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub trait WriteExt { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 215 | fn write_u32_be(&mut self, val: u32) -> io::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 216 | fn write_u64_le(&mut self, val: u64) -> io::Result<()>; [INFO] [stdout] 217 | fn write_u64_be(&mut self, val: u64) -> io::Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `current_buffer` is never used [INFO] [stdout] --> src/cryptoutil.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 330 | pub trait FixedBuffer { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 350 | fn current_buffer<'s>(&'s mut self) -> &'s [u8]; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | fn peek_read_buffer(&mut self) -> RefReadBuffer; [INFO] [stdout] | ^^^^^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | fn peek_read_buffer(&mut self) -> RefReadBuffer<'_>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | fn take_read_buffer(&mut self) -> RefReadBuffer; [INFO] [stdout] | ^^^^^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 63 | fn take_read_buffer(&mut self) -> RefReadBuffer<'_>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn new(buff: &[u8]) -> RefReadBuffer { [INFO] [stdout] | ^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 72 | pub fn new(buff: &[u8]) -> RefReadBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:126:32 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn borrow_write_buffer(&mut self) -> BorrowedWriteBuffer { [INFO] [stdout] | ^^^^^^^^^ ------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 126 | pub fn borrow_write_buffer(&mut self) -> BorrowedWriteBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:159:22 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn new(buff: &mut [u8]) -> RefWriteBuffer { [INFO] [stdout] | ^^^^^^^^^ -------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 159 | pub fn new(buff: &mut [u8]) -> RefWriteBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | fn peek_read_buffer(&mut self) -> RefReadBuffer { [INFO] [stdout] | ^^^^^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 178 | fn peek_read_buffer(&mut self) -> RefReadBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | fn take_read_buffer(&mut self) -> RefReadBuffer { [INFO] [stdout] | ^^^^^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 187 | fn take_read_buffer(&mut self) -> RefReadBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:201:20 [INFO] [stdout] | [INFO] [stdout] 201 | fn new(parent: &mut OwnedReadBuffer) -> BorrowedWriteBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 201 | fn new(parent: &mut OwnedReadBuffer) -> BorrowedWriteBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | fn peek_read_buffer(&mut self) -> RefReadBuffer { [INFO] [stdout] | ^^^^^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 226 | fn peek_read_buffer(&mut self) -> RefReadBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/buffer.rs:236:25 [INFO] [stdout] | [INFO] [stdout] 236 | fn take_read_buffer(&mut self) -> RefReadBuffer { [INFO] [stdout] | ^^^^^^^^^ ------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 236 | fn take_read_buffer(&mut self) -> RefReadBuffer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u64` does not permit being left uninitialized [INFO] [stdout] --> src/cryptoutil.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | let mut tmp: u64 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u64` does not permit being left uninitialized [INFO] [stdout] --> src/cryptoutil.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let mut tmp: u64 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/cryptoutil.rs:132:32 [INFO] [stdout] | [INFO] [stdout] 132 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/cryptoutil.rs:148:32 [INFO] [stdout] | [INFO] [stdout] 148 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/cryptoutil.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/cryptoutil.rs:171:28 [INFO] [stdout] | [INFO] [stdout] 171 | let mut tmp: u32 = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u8; 16]` does not permit being left uninitialized [INFO] [stdout] --> src/ghash.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 47 | let mut result: [u8; 16] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[Gf128; 128]` does not permit being left uninitialized [INFO] [stdout] --> src/ghash.rs:166:48 [INFO] [stdout] | [INFO] [stdout] 166 | let mut table: [Gf128; 128] = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: in this struct field [INFO] [stdout] --> src/ghash.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | struct Gf128 { d: simd::u32x4 } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/simd.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct u32x4(pub u32, pub u32, pub u32, pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u64; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/whirlpool.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | let mut k: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u64; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/whirlpool.rs:154:40 [INFO] [stdout] | [INFO] [stdout] 154 | let mut block: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u64; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/whirlpool.rs:155:40 [INFO] [stdout] | [INFO] [stdout] 155 | let mut state: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[u64; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/whirlpool.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | let mut l: [u64; 8] = unsafe { uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> examples/symmetriccipher.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | let result = try!(encryptor.encrypt(&mut read_buffer, &mut write_buffer, true)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> examples/symmetriccipher.rs:95:22 [INFO] [stdout] | [INFO] [stdout] 95 | let result = try!(decryptor.decrypt(&mut read_buffer, &mut write_buffer, true)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-crypto-hatter-fork` (lib test) due to 49 previous errors; 36 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3d38e0528820a0e0308db5d62a1fbb91889201d3f3688eb2ae0ef4e56b3f5d5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d38e0528820a0e0308db5d62a1fbb91889201d3f3688eb2ae0ef4e56b3f5d5e", kill_on_drop: false }` [INFO] [stdout] 3d38e0528820a0e0308db5d62a1fbb91889201d3f3688eb2ae0ef4e56b3f5d5e