[INFO] cloning repository https://github.com/priyanks-synopsys/RustSmallProject
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/priyanks-synopsys/RustSmallProject" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpriyanks-synopsys%2FRustSmallProject", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpriyanks-synopsys%2FRustSmallProject'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f8b799bdfe5723c1474aebb51d12ce6363e3b7be
[INFO] checking priyanks-synopsys/RustSmallProject against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6+rustflags=-Znext-solver=coherence for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpriyanks-synopsys%2FRustSmallProject" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/priyanks-synopsys/RustSmallProject
[INFO] finished tweaking git repo https://github.com/priyanks-synopsys/RustSmallProject
[INFO] tweaked toml for git repo https://github.com/priyanks-synopsys/RustSmallProject written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/priyanks-synopsys/RustSmallProject on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/priyanks-synopsys/RustSmallProject 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" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de
[INFO] running `Command { std: "docker" "start" "f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Znext-solver=coherence" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking md5 v0.7.0
[INFO] [stderr]     Checking vulnerable_rust_project v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `sha2`
[INFO] [stdout]  --> src/crypto_utils.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use sha2::{Sha256, Digest};
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `sha2`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `sha2`, use `cargo add sha2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `rand`
[INFO] [stdout]  --> src/crypto_utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rand::Rng;
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `rand`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `pbkdf2`
[INFO] [stdout]  --> src/crypto_utils.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use pbkdf2::pbkdf2_hmac;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `pbkdf2`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `pbkdf2`, use `cargo add pbkdf2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `bcrypt`
[INFO] [stdout]  --> src/crypto_utils.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use bcrypt::{hash, DEFAULT_COST};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `bcrypt`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `sha2`
[INFO] [stdout]  --> src/crypto_utils.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use sha2::{Sha256, Digest};
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `sha2`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `sha2`, use `cargo add sha2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `rand`
[INFO] [stdout]  --> src/crypto_utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rand::Rng;
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `rand`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `pbkdf2`
[INFO] [stdout]  --> src/crypto_utils.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use pbkdf2::pbkdf2_hmac;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `pbkdf2`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `pbkdf2`, use `cargo add pbkdf2` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `bcrypt`
[INFO] [stdout]  --> src/crypto_utils.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use bcrypt::{hash, DEFAULT_COST};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `bcrypt`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `rand` in this scope
[INFO] [stdout]   --> src/crypto_utils.rs:38:19
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let mut rng = rand::thread_rng();
[INFO] [stdout]    |                   ^^^^ use of unresolved module or unlinked crate `rand`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `hex` in this scope
[INFO] [stdout]   --> src/crypto_utils.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     hex::encode(random_bytes)
[INFO] [stdout]    |     ^^^ use of unresolved module or unlinked crate `hex`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `hex` in this scope
[INFO] [stdout]   --> src/crypto_utils.rs:49:5
[INFO] [stdout]    |
[INFO] [stdout] 49 |     hex::encode(key)
[INFO] [stdout]    |     ^^^ use of unresolved module or unlinked crate `hex`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `rand` in this scope
[INFO] [stdout]   --> src/crypto_utils.rs:38:19
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let mut rng = rand::thread_rng();
[INFO] [stdout]    |                   ^^^^ use of unresolved module or unlinked crate `rand`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `hex` in this scope
[INFO] [stdout]   --> src/crypto_utils.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     hex::encode(random_bytes)
[INFO] [stdout]    |     ^^^ use of unresolved module or unlinked crate `hex`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `hex` in this scope
[INFO] [stdout]   --> src/crypto_utils.rs:49:5
[INFO] [stdout]    |
[INFO] [stdout] 49 |     hex::encode(key)
[INFO] [stdout]    |     ^^^ use of unresolved module or unlinked crate `hex`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `vulnerable_rust_project` (bin "vulnerable_rust_project" test) due to 7 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `vulnerable_rust_project` (bin "vulnerable_rust_project") due to 7 previous errors
[INFO] [stderr] warning: unused dependency `md5`
[INFO] [stderr]  --> Cargo.toml:2:1
[INFO] [stderr]   |
[INFO] [stderr] 2 | md5 = "0.7"
[INFO] [stderr]   | ^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `md5`
[INFO] [stderr] warning: `vulnerable_rust_project` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "inspect" "f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de", kill_on_drop: false }`
[INFO] [stdout] f6b74e5ced447f0196b442d2fb1ceb3f3d2c7e7f7f054e53368f249f505e86de
