[INFO] cloning repository https://github.com/kekley/lab4helper
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kekley/lab4helper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkekley%2Flab4helper", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkekley%2Flab4helper'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1c5bec7c278e605c225c7e36397abf8f332390ac
[INFO] testing kekley/lab4helper against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkekley%2Flab4helper" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/kekley/lab4helper
[INFO] finished tweaking git repo https://github.com/kekley/lab4helper
[INFO] tweaked toml for git repo https://github.com/kekley/lab4helper written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kekley/lab4helper on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kekley/lab4helper 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 962b02ad724cc44299fccabea89eed5c334083b2021cbe5dd4cd212f78d08cb6
[INFO] running `Command { std: "docker" "start" "-a" "962b02ad724cc44299fccabea89eed5c334083b2021cbe5dd4cd212f78d08cb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "962b02ad724cc44299fccabea89eed5c334083b2021cbe5dd4cd212f78d08cb6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "962b02ad724cc44299fccabea89eed5c334083b2021cbe5dd4cd212f78d08cb6", kill_on_drop: false }`
[INFO] [stdout] 962b02ad724cc44299fccabea89eed5c334083b2021cbe5dd4cd212f78d08cb6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 31f41c417341306e98699fb6a5145152967332753bb4334666fc517c1d92642e
[INFO] running `Command { std: "docker" "start" "-a" "31f41c417341306e98699fb6a5145152967332753bb4334666fc517c1d92642e", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling unicode-width v0.2.2
[INFO] [stderr]    Compiling shell-words v1.1.0
[INFO] [stderr]    Compiling console v0.16.1
[INFO] [stderr]    Compiling tempfile v3.23.0
[INFO] [stderr]    Compiling dialoguer v0.12.0
[INFO] [stderr]    Compiling lab4helper v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.52s
[INFO] running `Command { std: "docker" "inspect" "31f41c417341306e98699fb6a5145152967332753bb4334666fc517c1d92642e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "31f41c417341306e98699fb6a5145152967332753bb4334666fc517c1d92642e", kill_on_drop: false }`
[INFO] [stdout] 31f41c417341306e98699fb6a5145152967332753bb4334666fc517c1d92642e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 5a282a9e8a20e241915be638a061c18ed2a87813c317a69b327e5b12a65383cb
[INFO] running `Command { std: "docker" "start" "-a" "5a282a9e8a20e241915be638a061c18ed2a87813c317a69b327e5b12a65383cb", kill_on_drop: false }`
[INFO] [stderr]    Compiling lab4helper v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.65s
[INFO] running `Command { std: "docker" "inspect" "5a282a9e8a20e241915be638a061c18ed2a87813c317a69b327e5b12a65383cb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5a282a9e8a20e241915be638a061c18ed2a87813c317a69b327e5b12a65383cb", kill_on_drop: false }`
[INFO] [stdout] 5a282a9e8a20e241915be638a061c18ed2a87813c317a69b327e5b12a65383cb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 03cb2c3a736eab3f9b883592ebe04f35ec5c46819b1cfc3075878095e70a22da
[INFO] running `Command { std: "docker" "start" "-a" "03cb2c3a736eab3f9b883592ebe04f35ec5c46819b1cfc3075878095e70a22da", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/build/lab4helper/8ab117682b689a25/deps/lab4helper-8ab117682b689a25)
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/build/lab4helper/ddde869ebd0dd216/deps/lab4helper-ddde869ebd0dd216)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests lab4helper
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 9 tests
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash::update (line 348) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash::finalize (line 364) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash::verify (line 413) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash::hash (line 472) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash::verify_with_ref (line 442) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash::finalize_verify (line 390) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib (line 14) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash (line 274) ... FAILED
[INFO] [stdout] test src/hashlib.rs - hashlib::Hash (line 269) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash::update (line 348) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:349:18
[INFO] [stdout]     |
[INFO] [stdout] 349 | let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout]     |                  ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 348 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 348 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 349 - let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout] 349 + let mut hasher = Hash::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash::finalize (line 364) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:365:18
[INFO] [stdout]     |
[INFO] [stdout] 365 | let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout]     |                  ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 364 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 364 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 365 - let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout] 365 + let mut hasher = Hash::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash::verify (line 413) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:414:16
[INFO] [stdout]     |
[INFO] [stdout] 414 | let expected = hmac_sha256::Hash::hash(b"original data");
[INFO] [stdout]     |                ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 413 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 413 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 414 - let expected = hmac_sha256::Hash::hash(b"original data");
[INFO] [stdout] 414 + let expected = Hash::hash(b"original data");
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:417:9
[INFO] [stdout]     |
[INFO] [stdout] 417 | assert!(hmac_sha256::Hash::verify(b"original data", &expected));
[INFO] [stdout]     |         ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 413 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 413 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 417 - assert!(hmac_sha256::Hash::verify(b"original data", &expected));
[INFO] [stdout] 417 + assert!(Hash::verify(b"original data", &expected));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:418:10
[INFO] [stdout]     |
[INFO] [stdout] 418 | assert!(!hmac_sha256::Hash::verify(b"modified data", &expected));
[INFO] [stdout]     |          ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 413 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 413 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 418 - assert!(!hmac_sha256::Hash::verify(b"modified data", &expected));
[INFO] [stdout] 418 + assert!(!Hash::verify(b"modified data", &expected));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash::hash (line 472) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:473:12
[INFO] [stdout]     |
[INFO] [stdout] 473 | let hash = hmac_sha256::Hash::hash(b"data to hash");
[INFO] [stdout]     |            ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 472 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 472 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 473 - let hash = hmac_sha256::Hash::hash(b"data to hash");
[INFO] [stdout] 473 + let hash = Hash::hash(b"data to hash");
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash::verify_with_ref (line 442) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:443:16
[INFO] [stdout]     |
[INFO] [stdout] 443 | let expected = hmac_sha256::Hash::hash(b"original data");
[INFO] [stdout]     |                ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 442 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 442 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 443 - let expected = hmac_sha256::Hash::hash(b"original data");
[INFO] [stdout] 443 + let expected = Hash::hash(b"original data");
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:445:18
[INFO] [stdout]     |
[INFO] [stdout] 445 | let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout]     |                  ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 442 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 442 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 445 - let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout] 445 + let mut hasher = Hash::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:451:19
[INFO] [stdout]     |
[INFO] [stdout] 451 | let mut hasher2 = hmac_sha256::Hash::new();
[INFO] [stdout]     |                   ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 442 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 442 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 451 - let mut hasher2 = hmac_sha256::Hash::new();
[INFO] [stdout] 451 + let mut hasher2 = Hash::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:456:9
[INFO] [stdout]     |
[INFO] [stdout] 456 | assert!(hmac_sha256::Hash::verify(b"original data", &expected));
[INFO] [stdout]     |         ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 442 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 442 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 456 - assert!(hmac_sha256::Hash::verify(b"original data", &expected));
[INFO] [stdout] 456 + assert!(Hash::verify(b"original data", &expected));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash::finalize_verify (line 390) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:391:16
[INFO] [stdout]     |
[INFO] [stdout] 391 | let expected = hmac_sha256::Hash::hash(b"original data");
[INFO] [stdout]     |                ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 390 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 390 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 391 - let expected = hmac_sha256::Hash::hash(b"original data");
[INFO] [stdout] 391 + let expected = Hash::hash(b"original data");
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:393:18
[INFO] [stdout]     |
[INFO] [stdout] 393 | let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout]     |                  ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 390 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 390 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 393 - let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout] 393 + let mut hasher = Hash::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:397:18
[INFO] [stdout]     |
[INFO] [stdout] 397 | let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout]     |                  ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 390 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 390 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 397 - let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout] 397 + let mut hasher = Hash::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib (line 14) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:23:11
[INFO] [stdout]    |
[INFO] [stdout] 23 | let mac = hmac_sha256::HMAC::mac(b"message", b"key");
[INFO] [stdout]    |           ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:26:16
[INFO] [stdout]    |
[INFO] [stdout] 26 | let expected = hmac_sha256::HMAC::mac(b"message", b"key");
[INFO] [stdout]    |                ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | assert!(hmac_sha256::HMAC::verify(b"message", b"key", &expected));
[INFO] [stdout]    |         ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:30:11
[INFO] [stdout]    |
[INFO] [stdout] 30 | let prk = hmac_sha256::HKDF::extract(b"salt", b"input key material");
[INFO] [stdout]    |           ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:32:1
[INFO] [stdout]    |
[INFO] [stdout] 32 | hmac_sha256::HKDF::expand(&mut output, prk, b"context info");
[INFO] [stdout]    | ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | let hash = hmac_sha256::Hash::hash(b"hello world");
[INFO] [stdout]    |            ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 14 + use std::hash::Hash;
[INFO] [stdout]    |
[INFO] [stdout] 14 + use lab4helper::hashlib::Hash;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 16 - let hash = hmac_sha256::Hash::hash(b"hello world");
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] 16 + let hash = Hash::hash(b"hello world");
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:19:16
[INFO] [stdout]    |
[INFO] [stdout] 19 | let expected = hmac_sha256::Hash::hash(b"hello world");
[INFO] [stdout]    |                ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 14 + use std::hash::Hash;
[INFO] [stdout]    |
[INFO] [stdout] 14 + use lab4helper::hashlib::Hash;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 19 - let expected = hmac_sha256::Hash::hash(b"hello world");
[INFO] [stdout] 19 + let expected = Hash::hash(b"hello world");
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]   --> src/hashlib.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 | assert!(hmac_sha256::Hash::verify(b"hello world", &expected));
[INFO] [stdout]    |         ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 14 + use std::hash::Hash;
[INFO] [stdout]    |
[INFO] [stdout] 14 + use lab4helper::hashlib::Hash;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 20 - assert!(hmac_sha256::Hash::verify(b"hello world", &expected));
[INFO] [stdout] 20 + assert!(Hash::verify(b"hello world", &expected));
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash (line 274) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:275:18
[INFO] [stdout]     |
[INFO] [stdout] 275 | let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout]     |                  ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 274 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 274 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 275 - let mut hasher = hmac_sha256::Hash::new();
[INFO] [stdout] 275 + let mut hasher = Hash::new();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/hashlib.rs - hashlib::Hash (line 269) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]    --> src/hashlib.rs:270:12
[INFO] [stdout]     |
[INFO] [stdout] 270 | let hash = hmac_sha256::Hash::hash(b"hello world");
[INFO] [stdout]     |            ^^^^^^^^^^^ use of unresolved module or unlinked crate `hmac_sha256`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `hmac_sha256`, use `cargo add hmac_sha256` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 269 + use std::hash::Hash;
[INFO] [stdout]     |
[INFO] [stdout] 269 + use lab4helper::hashlib::Hash;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `Hash`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 270 - let hash = hmac_sha256::Hash::hash(b"hello world");
[INFO] [stdout] 270 + let hash = Hash::hash(b"hello world");
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/hashlib.rs - hashlib (line 14)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash (line 269)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash (line 274)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash::finalize (line 364)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash::finalize_verify (line 390)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash::hash (line 472)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash::update (line 348)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash::verify (line 413)
[INFO] [stdout]     src/hashlib.rs - hashlib::Hash::verify_with_ref (line 442)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 0.43s; merged doctests compilation took 0.19s
[INFO] running `Command { std: "docker" "inspect" "03cb2c3a736eab3f9b883592ebe04f35ec5c46819b1cfc3075878095e70a22da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "03cb2c3a736eab3f9b883592ebe04f35ec5c46819b1cfc3075878095e70a22da", kill_on_drop: false }`
[INFO] [stdout] 03cb2c3a736eab3f9b883592ebe04f35ec5c46819b1cfc3075878095e70a22da
