[INFO] cloning repository https://github.com/ddanielsantos/leaky_bucket
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ddanielsantos/leaky_bucket" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddanielsantos%2Fleaky_bucket"`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddanielsantos%2Fleaky_bucket'...
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] c527471b0efdaf78f745c41b74470ab3a32176f6
[INFO] testing ddanielsantos/leaky_bucket against 1.101.0-beta.1+cargoflags=--release for beta-release-1.101-2
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddanielsantos%2Fleaky_bucket" "/workspace/builds/worker-1-tc2/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ddanielsantos/leaky_bucket
[INFO] finished tweaking git repo https://github.com/ddanielsantos/leaky_bucket
[INFO] tweaked toml for git repo https://github.com/ddanielsantos/leaky_bucket written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ddanielsantos/leaky_bucket on toolchain 1.101.0-beta.1
[INFO] running `"cargo" "+1.101.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate git repo https://github.com/ddanielsantos/leaky_bucket already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.101.0-beta.1" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2
[INFO] running `"docker" "start" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2"`
[INFO] running `"docker" "inspect" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2"`
[INFO] running `"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" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2"`
[INFO] running `"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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling leaky_bucket v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: struct `LeakyBucket` is never constructed
[INFO] [stdout]  --> src/lib.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | struct LeakyBucket {
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `leak`, `add_event`, and `remaining_capacity` are never used
[INFO] [stdout]   --> src/lib.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl LeakyBucket {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 11 |     fn new(capacity: u64, leak_rate: u64) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn leak(&mut self) -> () {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub fn add_event(&mut self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn remaining_capacity(&mut self) -> u64 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.09s
[INFO] running `"docker" "inspect" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2"`
[INFO] running `"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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release"`
[INFO] [stdout] warning: struct `LeakyBucket` is never constructed
[INFO] [stdout]  --> src/lib.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | struct LeakyBucket {
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling leaky_bucket v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: associated items `new`, `leak`, `add_event`, and `remaining_capacity` are never used
[INFO] [stdout]   --> src/lib.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl LeakyBucket {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 11 |     fn new(capacity: u64, leak_rate: u64) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn leak(&mut self) -> () {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub fn add_event(&mut self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn remaining_capacity(&mut self) -> u64 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `rand` in this scope
[INFO] [stdout]   --> src/lib.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |     use rand::prelude::*;
[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 `rand` in this scope
[INFO] [stdout]   --> src/lib.rs:56:23
[INFO] [stdout]    |
[INFO] [stdout] 56 |         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] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leaky_bucket` (lib test) due to 2 previous errors
[INFO] running `"docker" "inspect" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2"`
[INFO] running `"docker" "rm" "-f" "c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2"`
[INFO] [stdout] c240f392ca48f01dc2f2f851dcada9041f765f5fcefe0d6d05c1366fa6f18fa2
