[INFO] cloning repository https://github.com/devillove084/HierarchicalCache [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/devillove084/HierarchicalCache" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e6f95b758dbb9df274075d550e2b0dc8fd66699 [INFO] testing devillove084/HierarchicalCache against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache" "/workspace/builds/worker-70/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-70/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/devillove084/HierarchicalCache on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/devillove084/HierarchicalCache [INFO] finished tweaking git repo https://github.com/devillove084/HierarchicalCache [INFO] tweaked toml for git repo https://github.com/devillove084/HierarchicalCache written to /workspace/builds/worker-70/source/Cargo.toml [INFO] crate git repo https://github.com/devillove084/HierarchicalCache already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/beta/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1df5a7d9cbbbdc7b17a1d17f681427e8c16e017226940dafac9e052b3f61d872 [INFO] running `Command { std: "docker" "start" "-a" "1df5a7d9cbbbdc7b17a1d17f681427e8c16e017226940dafac9e052b3f61d872", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1df5a7d9cbbbdc7b17a1d17f681427e8c16e017226940dafac9e052b3f61d872", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1df5a7d9cbbbdc7b17a1d17f681427e8c16e017226940dafac9e052b3f61d872", kill_on_drop: false }` [INFO] [stdout] 1df5a7d9cbbbdc7b17a1d17f681427e8c16e017226940dafac9e052b3f61d872 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5247ecf28938bbdddadf7b2d1d251ed224a9f5c8382c432b4f5f4896a5a63cd [INFO] running `Command { std: "docker" "start" "-a" "f5247ecf28938bbdddadf7b2d1d251ed224a9f5c8382c432b4f5f4896a5a63cd", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/beta/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling half v1.7.1 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-bigint v0.3.1 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling ahash v0.7.0 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling parking_lot_core v0.8.2 [INFO] [stderr] Compiling mio v0.7.8 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_xorshift v0.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling quickcheck v0.9.2 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling serde_cbor v0.11.1 [INFO] [stderr] Compiling probabilistic-collections v0.7.0 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling HierarchicalCache v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lcache/cache.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 117 | if let Some(removed) = self.store.remove(&victim.key) { [INFO] [stdout] | ------------------------------ mutable borrow occurs here [INFO] [stdout] 118 | let k = self.key_hash(&removed.k); [INFO] [stdout] | ^^^^^^^^^^^^^^----------^ [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow later used here [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `item.v` which is behind a shared reference [INFO] [stdout] --> src/lcache/cache.rs:290:18 [INFO] [stdout] | [INFO] [stdout] 290 | Some(item.v) [INFO] [stdout] | ^^^^^^ move occurs because `item.v` has type `V`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `g` [INFO] [stdout] --> src/lcache/store.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 184 | let result = self.data.keys(&g); [INFO] [stdout] | -- `g` is borrowed here [INFO] [stdout] 185 | result [INFO] [stdout] | ^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `g` [INFO] [stdout] --> src/lcache/store.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 190 | if let Some(item) = self.data.get(k, &g) { [INFO] [stdout] | -- `g` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 195 | Some(item) [INFO] [stdout] | ^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `g` [INFO] [stdout] --> src/lcache/store.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 207 | if let Some(item) = self.data.get_mut(k, &g) { [INFO] [stdout] | -- `g` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 212 | Some(item) [INFO] [stdout] | ^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `item` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/lcache/store.rs:215:22 [INFO] [stdout] | [INFO] [stdout] 207 | if let Some(item) = self.data.get_mut(k, &g) { [INFO] [stdout] | ---- help: consider changing this to be mutable: `mut item` [INFO] [stdout] ... [INFO] [stdout] 215 | Some(item.borrow_mut()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*i` which is behind a shared reference [INFO] [stdout] --> src/lcache/store.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | Some(*i) [INFO] [stdout] | ^^ move occurs because `*i` has type `Item`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `g` [INFO] [stdout] --> src/lcache/store.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | self.data.remove(k, &g) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | | [INFO] [stdout] | | `g` is borrowed here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0507, E0515, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `HierarchicalCache` due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "f5247ecf28938bbdddadf7b2d1d251ed224a9f5c8382c432b4f5f4896a5a63cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5247ecf28938bbdddadf7b2d1d251ed224a9f5c8382c432b4f5f4896a5a63cd", kill_on_drop: false }` [INFO] [stdout] f5247ecf28938bbdddadf7b2d1d251ed224a9f5c8382c432b4f5f4896a5a63cd