[INFO] cloning repository https://github.com/Andrew-Dron27/Cache
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Andrew-Dron27/Cache" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndrew-Dron27%2FCache", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndrew-Dron27%2FCache'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 94ed40947c790a27ac8ce93ea813135312055499
[INFO] checking Andrew-Dron27/Cache against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndrew-Dron27%2FCache" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Andrew-Dron27/Cache
[INFO] finished tweaking git repo https://github.com/Andrew-Dron27/Cache
[INFO] tweaked toml for git repo https://github.com/Andrew-Dron27/Cache written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Andrew-Dron27/Cache on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Andrew-Dron27/Cache 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b6a6771eafc2565000d2cf1317a0a967fe940c3aee084eb9b7ffa42941c8e68c
[INFO] running `Command { std: "docker" "start" "-a" "b6a6771eafc2565000d2cf1317a0a967fe940c3aee084eb9b7ffa42941c8e68c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b6a6771eafc2565000d2cf1317a0a967fe940c3aee084eb9b7ffa42941c8e68c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b6a6771eafc2565000d2cf1317a0a967fe940c3aee084eb9b7ffa42941c8e68c", kill_on_drop: false }`
[INFO] [stdout] b6a6771eafc2565000d2cf1317a0a967fe940c3aee084eb9b7ffa42941c8e68c
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0c83abd540e8ad2afb5e077552718dedef2cce2fed65ed47b6a07401e63344ad
[INFO] running `Command { std: "docker" "start" "-a" "0c83abd540e8ad2afb5e077552718dedef2cce2fed65ed47b6a07401e63344ad", kill_on_drop: false }`
[INFO] [stderr]     Checking cache v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: type `LFU_Cache` should have an upper camel case name
[INFO] [stdout]   --> src/cache.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct LFU_Cache<T>
[INFO] [stdout]    |            ^^^^^^^^^ help: convert the identifier to upper camel case: `LfuCache`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/cache.rs:68:19
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 if(set.len() == self.associativity as usize)
[INFO] [stdout]    |                   ^                                        ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 68 -                 if(set.len() == self.associativity as usize)
[INFO] [stdout] 68 +                 if set.len() == self.associativity as usize 
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/cache.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let mut set = self.dict.get_mut(&loc).unwrap();
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `value` does not live long enough
[INFO] [stdout]   --> src/cache.rs:72:31
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl<'a, T: PartialEq + Hash> Cache<T> for LruCache<'a,T>
[INFO] [stdout]    |      -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 48 |     fn lookup(&mut self, value: T) -> Option<&T>
[INFO] [stdout]    |                          ----- binding `value` declared here
[INFO] [stdout] ...
[INFO] [stdout] 54 |         let mut set = self.dict.get_mut(&loc).unwrap();
[INFO] [stdout]    |                       ----------------------- argument requires that `value` is borrowed for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 72 |                 set.insert(0, &value);
[INFO] [stdout]    |                               ^^^^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 76 |     }
[INFO] [stdout]    |     - `value` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `cache` (bin "cache") due to 1 previous error; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: type `LFU_Cache` should have an upper camel case name
[INFO] [stdout]   --> src/cache.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct LFU_Cache<T>
[INFO] [stdout]    |            ^^^^^^^^^ help: convert the identifier to upper camel case: `LfuCache`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `cache` (bin "cache" test) due to 1 previous error; 3 warnings emitted
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/cache.rs:68:19
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 if(set.len() == self.associativity as usize)
[INFO] [stdout]    |                   ^                                        ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 68 -                 if(set.len() == self.associativity as usize)
[INFO] [stdout] 68 +                 if set.len() == self.associativity as usize 
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/cache.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         let mut set = self.dict.get_mut(&loc).unwrap();
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `value` does not live long enough
[INFO] [stdout]   --> src/cache.rs:72:31
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl<'a, T: PartialEq + Hash> Cache<T> for LruCache<'a,T>
[INFO] [stdout]    |      -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 48 |     fn lookup(&mut self, value: T) -> Option<&T>
[INFO] [stdout]    |                          ----- binding `value` declared here
[INFO] [stdout] ...
[INFO] [stdout] 54 |         let mut set = self.dict.get_mut(&loc).unwrap();
[INFO] [stdout]    |                       ----------------------- argument requires that `value` is borrowed for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 72 |                 set.insert(0, &value);
[INFO] [stdout]    |                               ^^^^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 76 |     }
[INFO] [stdout]    |     - `value` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "0c83abd540e8ad2afb5e077552718dedef2cce2fed65ed47b6a07401e63344ad", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0c83abd540e8ad2afb5e077552718dedef2cce2fed65ed47b6a07401e63344ad", kill_on_drop: false }`
[INFO] [stdout] 0c83abd540e8ad2afb5e077552718dedef2cce2fed65ed47b6a07401e63344ad
