[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 try#3bb2879ea9e58d65b875f9a98df44f4a43ce2597 for pr-85387 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/devillove084/HierarchicalCache on toolchain 3bb2879ea9e58d65b875f9a98df44f4a43ce2597 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "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-4/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" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ahash v0.7.0 [INFO] [stderr] Downloaded probabilistic-collections v0.7.0 [INFO] [stderr] Downloaded mio v0.7.8 [INFO] [stderr] Downloaded seahash v4.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7f631746c2da86bef4c6532876e56b740420e8f4096cfc68606ee77712edf88c [INFO] running `Command { std: "docker" "start" "-a" "7f631746c2da86bef4c6532876e56b740420e8f4096cfc68606ee77712edf88c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f631746c2da86bef4c6532876e56b740420e8f4096cfc68606ee77712edf88c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f631746c2da86bef4c6532876e56b740420e8f4096cfc68606ee77712edf88c", kill_on_drop: false }` [INFO] [stdout] 7f631746c2da86bef4c6532876e56b740420e8f4096cfc68606ee77712edf88c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3143868b241bf13cea5bdb3ca715e8b645152bc037b5629fbe9797aa01ab7c7a [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" "3143868b241bf13cea5bdb3ca715e8b645152bc037b5629fbe9797aa01ab7c7a", kill_on_drop: false }` [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 serde v1.0.123 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Checking seahash v4.1.0 [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 num-iter v0.1.42 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ahash v0.7.0 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking getrandom v0.2.2 [INFO] [stderr] Checking parking_lot_core v0.8.2 [INFO] [stderr] Checking mio v0.7.8 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_xorshift v0.2.0 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking quickcheck v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.123 [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[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[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[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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [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" "3143868b241bf13cea5bdb3ca715e8b645152bc037b5629fbe9797aa01ab7c7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3143868b241bf13cea5bdb3ca715e8b645152bc037b5629fbe9797aa01ab7c7a", kill_on_drop: false }` [INFO] [stdout] 3143868b241bf13cea5bdb3ca715e8b645152bc037b5629fbe9797aa01ab7c7a