[INFO] fetching crate redis-cache 0.3.0... [INFO] building redis-cache-0.3.0 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] extracting crate redis-cache 0.3.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate redis-cache 0.3.0 [INFO] finished tweaking crates.io crate redis-cache 0.3.0 [INFO] tweaked toml for crates.io crate redis-cache 0.3.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate redis-cache 0.3.0 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 187 packages to latest compatible versions [INFO] [stderr] Adding redis v0.18.0 (available: v0.32.6) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rhai_codegen v3.1.0 [INFO] [stderr] Downloaded thin-vec v0.2.14 [INFO] [stderr] Downloaded mini-moka v0.10.3 [INFO] [stderr] Downloaded rhai v1.23.4 [INFO] [stderr] Downloaded casbin v2.13.0 [INFO] [stderr] Downloaded redis v0.18.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 934b5db74376df87cb5a8ef7cbac5c23591dcbdfed79cb32d01ad50a5aa7b57e [INFO] running `Command { std: "docker" "start" "-a" "934b5db74376df87cb5a8ef7cbac5c23591dcbdfed79cb32d01ad50a5aa7b57e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "934b5db74376df87cb5a8ef7cbac5c23591dcbdfed79cb32d01ad50a5aa7b57e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "934b5db74376df87cb5a8ef7cbac5c23591dcbdfed79cb32d01ad50a5aa7b57e", kill_on_drop: false }` [INFO] [stdout] 934b5db74376df87cb5a8ef7cbac5c23591dcbdfed79cb32d01ad50a5aa7b57e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9989747e0515cd26f25077b2b24595352c9f06e4b76bb0d1a2f0a26278f9c82f [INFO] running `Command { std: "docker" "start" "-a" "9989747e0515cd26f25077b2b24595352c9f06e4b76bb0d1a2f0a26278f9c82f", kill_on_drop: false }` [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling futures-lite v2.6.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling value-bag v1.11.1 [INFO] [stderr] Compiling mini-moka v0.10.3 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rhai_codegen v3.1.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling tagptr v0.2.0 [INFO] [stderr] Compiling triomphe v0.1.14 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling async-lock v3.4.1 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling thin-vec v0.2.14 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling async-executor v1.13.3 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rhai v1.23.4 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling redis v0.18.0 [INFO] [stderr] Compiling polling v3.11.0 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-std v1.13.2 [INFO] [stderr] Compiling casbin v2.13.0 [INFO] [stderr] Compiling redis-cache v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0407]: method `set_capacity` is not a member of trait `Cache` [INFO] [stdout] --> src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / fn set_capacity(&mut self, cap: usize) { [INFO] [stdout] 35 | | self.cap = cap; [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____^ not a member of trait `Cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `get` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | fn get(&mut self, k: &K) -> Option> { [INFO] [stdout] | ^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&RedisCache<_, _>, &_) -> std::option::Option` [INFO] [stdout] found signature `fn(&mut RedisCache<_, _>, &_) -> std::option::Option>` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 38 - fn get(&mut self, k: &K) -> Option> { [INFO] [stdout] 38 + fn get(&self, k: &K) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `has` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | fn has(&mut self, k: &K) -> bool { [INFO] [stdout] | ^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&RedisCache<_, _>, &_) -> _` [INFO] [stdout] found signature `fn(&mut RedisCache<_, _>, &_) -> _` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 52 - fn has(&mut self, k: &K) -> bool { [INFO] [stdout] 52 + fn has(&self, k: &K) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `set` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | fn set(&mut self, k: K, v: V) { [INFO] [stdout] | ^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&RedisCache<_, _>, _, _)` [INFO] [stdout] found signature `fn(&mut RedisCache<_, _>, _, _)` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 66 - fn set(&mut self, k: K, v: V) { [INFO] [stdout] 66 + fn set(&self, k: K, v: V) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `clear` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&RedisCache<_, _>)` [INFO] [stdout] found signature `fn(&mut RedisCache<_, _>)` [INFO] [stdout] help: change the self-receiver type to match the trait [INFO] [stdout] | [INFO] [stdout] 85 - fn clear(&mut self) { [INFO] [stdout] 85 + fn clear(&self) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0407. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-cache` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "9989747e0515cd26f25077b2b24595352c9f06e4b76bb0d1a2f0a26278f9c82f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9989747e0515cd26f25077b2b24595352c9f06e4b76bb0d1a2f0a26278f9c82f", kill_on_drop: false }` [INFO] [stdout] 9989747e0515cd26f25077b2b24595352c9f06e4b76bb0d1a2f0a26278f9c82f