[INFO] fetching crate redis-cache 0.3.0... [INFO] checking redis-cache-0.3.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate redis-cache 0.3.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate redis-cache 0.3.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 150 packages to latest compatible versions [INFO] [stderr] Adding async-channel v1.9.0 (available: v2.3.1) [INFO] [stderr] Adding cargo_metadata v0.14.2 (available: v0.18.1) [INFO] [stderr] Adding dashmap v5.5.3 (available: v6.1.0) [INFO] [stderr] Adding dtoa v0.4.8 (available: v1.0.9) [INFO] [stderr] Adding event-listener v2.5.3 (available: v5.3.1) [INFO] [stderr] Adding fixedbitset v0.4.2 (available: v0.5.7) [INFO] [stderr] Adding idna v0.5.0 (available: v1.0.2) [INFO] [stderr] Adding itoa v0.4.8 (available: v1.0.11) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding pulldown-cmark v0.9.6 (available: v0.12.1) [INFO] [stderr] Adding redis v0.18.0 (available: v0.27.2) [INFO] [stderr] Adding sha1 v0.6.1 (available: v0.10.6) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rhai_codegen v2.2.0 [INFO] [stderr] Downloaded casbin v2.5.0 [INFO] [stderr] Downloaded thin-vec v0.2.13 [INFO] [stderr] Downloaded redis v0.18.0 [INFO] [stderr] Downloaded rhai v1.19.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e45ff7035b86d96f69cbc3dee3296fcb92be9487a808d5d504a25ee89414efbb [INFO] running `Command { std: "docker" "start" "-a" "e45ff7035b86d96f69cbc3dee3296fcb92be9487a808d5d504a25ee89414efbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e45ff7035b86d96f69cbc3dee3296fcb92be9487a808d5d504a25ee89414efbb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e45ff7035b86d96f69cbc3dee3296fcb92be9487a808d5d504a25ee89414efbb", kill_on_drop: false }` [INFO] [stdout] e45ff7035b86d96f69cbc3dee3296fcb92be9487a808d5d504a25ee89414efbb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e82a45085a2d0bace61a6c11ad3e7c614e704f837c54b9e39a94568a5bcb172 [INFO] running `Command { std: "docker" "start" "-a" "2e82a45085a2d0bace61a6c11ad3e7c614e704f837c54b9e39a94568a5bcb172", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling mini-moka v0.10.3 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking triomphe v0.1.13 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking sha1 v0.6.1 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking polling v3.7.3 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking async-io v2.3.4 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking async-std v1.13.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling rhai_codegen v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Checking redis v0.18.0 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking thin-vec v0.2.13 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking rhai v1.19.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking casbin v2.5.0 [INFO] [stderr] Checking 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[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(&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(&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(&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(&self) { [INFO] [stdout] | ~~~~~ [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(&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(&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(&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(&self) { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [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 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:102:69 [INFO] [stdout] | [INFO] [stdout] 102 | assert!(cache.get(&vec!["alice", "/data1", "read"]) == Some(Cow::Borrowed(&false))); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `Cow<'_, bool>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `std::borrow::Cow<'_, bool>` [INFO] [stdout] help: the type constructed contains `std::borrow::Cow<'_, bool>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:102:64 [INFO] [stdout] | [INFO] [stdout] 102 | assert!(cache.get(&vec!["alice", "/data1", "read"]) == Some(Cow::Borrowed(&false))); [INFO] [stdout] | ^^^^^---------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:579:5 [INFO] [stdout] help: consider dereferencing the type [INFO] [stdout] | [INFO] [stdout] 102 | assert!(cache.get(&vec!["alice", "/data1", "read"]) == Some(*Cow::Borrowed(&false))); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0308, 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 test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "2e82a45085a2d0bace61a6c11ad3e7c614e704f837c54b9e39a94568a5bcb172", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e82a45085a2d0bace61a6c11ad3e7c614e704f837c54b9e39a94568a5bcb172", kill_on_drop: false }` [INFO] [stdout] 2e82a45085a2d0bace61a6c11ad3e7c614e704f837c54b9e39a94568a5bcb172