[INFO] cloning repository https://github.com/fabienjuif/inmemory-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fabienjuif/inmemory-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabienjuif%2Finmemory-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabienjuif%2Finmemory-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e6a675d9cbb791beacc70c07107f754f9cf21ebc
[INFO] checking fabienjuif/inmemory-rust against master#cb06d12710575a0d7ff71d6fe108f3bcff4f9195 for pr-128425-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabienjuif%2Finmemory-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/fabienjuif/inmemory-rust on toolchain cb06d12710575a0d7ff71d6fe108f3bcff4f9195
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/fabienjuif/inmemory-rust
[INFO] finished tweaking git repo https://github.com/fabienjuif/inmemory-rust
[INFO] tweaked toml for git repo https://github.com/fabienjuif/inmemory-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/fabienjuif/inmemory-rust 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" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c60a9c9c035b640478a3dc52867f6cace53a1cc5bd190ce1271ea8280a7ddeb9
[INFO] running `Command { std: "docker" "start" "-a" "c60a9c9c035b640478a3dc52867f6cace53a1cc5bd190ce1271ea8280a7ddeb9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c60a9c9c035b640478a3dc52867f6cace53a1cc5bd190ce1271ea8280a7ddeb9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c60a9c9c035b640478a3dc52867f6cace53a1cc5bd190ce1271ea8280a7ddeb9", kill_on_drop: false }`
[INFO] [stdout] c60a9c9c035b640478a3dc52867f6cace53a1cc5bd190ce1271ea8280a7ddeb9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4780ffcfb51f5fca95ca272caf3969cf0a4b1532b860795849eeca0ae89e318d
[INFO] running `Command { std: "docker" "start" "-a" "4780ffcfb51f5fca95ca272caf3969cf0a4b1532b860795849eeca0ae89e318d", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling proc-macro2 v1.0.79
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking bytes v1.6.0
[INFO] [stderr]     Checking pin-project-lite v0.2.13
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling syn v2.0.55
[INFO] [stderr]     Checking mio v0.8.11
[INFO] [stderr]     Checking socket2 v0.5.6
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]     Checking tokio v1.36.0
[INFO] [stderr]     Checking inmemory-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `cache`
[INFO] [stdout]   --> src/main.rs:62:13
[INFO] [stdout]    |
[INFO] [stdout] 62 |     let mut cache = CacheWithTTL::<Bytes, ESieve<_>>::new(1000);
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 62 |     let mut cache = CacheWithTTL::<Bytes, ESieve<_>>::new(1000);
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cache`
[INFO] [stdout]   --> src/main.rs:62:13
[INFO] [stdout]    |
[INFO] [stdout] 62 |     let mut cache = CacheWithTTL::<Bytes, ESieve<_>>::new(1000);
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_cache`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 62 |     let mut cache = CacheWithTTL::<Bytes, ESieve<_>>::new(1000);
[INFO] [stdout]    |         ----^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get`, `set`, `evict`, and `len` are never used
[INFO] [stdout]   --> src/cache.rs:8:8
[INFO] [stdout]    |
[INFO] [stdout] 6  | pub trait Cache<T> {
[INFO] [stdout]    |           ----- methods in this trait
[INFO] [stdout] 7  |     fn new(capacity: usize) -> Self;
[INFO] [stdout] 8  |     fn get(&self, key: &'static str) -> Option<T>;
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 9  |     fn set(&mut self, key: &'static str, value: T);
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 10 |     fn evict(&mut self, key: &'static str);
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 11 |     fn len(&self) -> usize;
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `value` and `ttl` are never read
[INFO] [stdout]   --> src/cache.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct CacheWithTTLEntry<T> {
[INFO] [stdout]    |            ----------------- fields in this struct
[INFO] [stdout] 16 |     value: T,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 17 |     ttl: Instant,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CacheWithTTLEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `cache` is never read
[INFO] [stdout]   --> src/cache.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub struct CacheWithTTL<T, C: Cache<CacheWithTTLEntry<T>>> {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 21 |     cache: C,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get`, `set`, and `len` are never used
[INFO] [stdout]   --> src/cache.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl<T, C: Cache<CacheWithTTLEntry<T>>> CacheWithTTL<T, C> {
[INFO] [stdout]    | ---------------------------------------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub fn get(&mut self, key: &'static str) -> Option<T> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn set(&mut self, key: &'static str, value: T, ttl: Duration) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     pub fn len(&self) -> usize {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_keys` is never used
[INFO] [stdout]    --> src/sieve.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 23  | impl Sieve {
[INFO] [stdout]     | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 115 |     fn get_keys(&self) -> Vec<&'static str> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.86s
[INFO] running `Command { std: "docker" "inspect" "4780ffcfb51f5fca95ca272caf3969cf0a4b1532b860795849eeca0ae89e318d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4780ffcfb51f5fca95ca272caf3969cf0a4b1532b860795849eeca0ae89e318d", kill_on_drop: false }`
[INFO] [stdout] 4780ffcfb51f5fca95ca272caf3969cf0a4b1532b860795849eeca0ae89e318d
