[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] checking devillove084/HierarchicalCache against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/devillove084/HierarchicalCache on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-6/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1309ed984e0f1b2a32cecd88c924fd8c26ef253eef751527fb0ccc1b84da0d40 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1309ed984e0f1b2a32cecd88c924fd8c26ef253eef751527fb0ccc1b84da0d40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1309ed984e0f1b2a32cecd88c924fd8c26ef253eef751527fb0ccc1b84da0d40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1309ed984e0f1b2a32cecd88c924fd8c26ef253eef751527fb0ccc1b84da0d40", kill_on_drop: false }` [INFO] [stdout] 1309ed984e0f1b2a32cecd88c924fd8c26ef253eef751527fb0ccc1b84da0d40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94e623ad5e7b6f0ff778c2b4d3b1b67c29e4b4469c337c6a21f1b01c220204dd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "94e623ad5e7b6f0ff778c2b4d3b1b67c29e4b4469c337c6a21f1b01c220204dd", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking siphasher v0.3.3 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking seahash v4.1.0 [INFO] [stderr] Compiling ahash v0.7.0 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking getrandom v0.2.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.1 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Checking mio v0.7.8 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_xorshift v0.2.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking quickcheck v0.9.2 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking probabilistic-collections v0.7.0 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking 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] | ^^^^ ---------- mutable borrow later used here [INFO] [stdout] | | [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:198:17 [INFO] [stdout] | [INFO] [stdout] 190 | if let Some(item) = self.data.get(k, &g) { [INFO] [stdout] | -- `g` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 198 | 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[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] | ^^^^ ---------- mutable borrow later used here [INFO] [stdout] | | [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:198:17 [INFO] [stdout] | [INFO] [stdout] 190 | if let Some(item) = self.data.get(k, &g) { [INFO] [stdout] | -- `g` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 198 | 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] [stderr] warning: build failed, waiting for other jobs to finish... [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: build failed [INFO] running `Command { std: "docker" "inspect" "94e623ad5e7b6f0ff778c2b4d3b1b67c29e4b4469c337c6a21f1b01c220204dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94e623ad5e7b6f0ff778c2b4d3b1b67c29e4b4469c337c6a21f1b01c220204dd", kill_on_drop: false }` [INFO] [stdout] 94e623ad5e7b6f0ff778c2b4d3b1b67c29e4b4469c337c6a21f1b01c220204dd