[INFO] fetching crate a-mutex 0.1.2... [INFO] checking a-mutex-0.1.2 against try#44e31dee3cf6f37b4f652572897bb0eb25c477ee for pr-139763 [INFO] extracting crate a-mutex 0.1.2 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate a-mutex 0.1.2 on toolchain 44e31dee3cf6f37b4f652572897bb0eb25c477ee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate a-mutex 0.1.2 [INFO] finished tweaking crates.io crate a-mutex 0.1.2 [INFO] tweaked toml for crates.io crate a-mutex 0.1.2 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 152 packages to latest compatible versions [INFO] [stderr] Adding bb8-redis v0.11.0 (available: v0.21.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.0) [INFO] [stderr] Adding redis v0.21.7 (available: v0.29.5) [INFO] [stderr] Adding testcontainers v0.14.0 (available: v0.23.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b090e270b03041856e8a7227e2b0f30ae51c2a50ce73c6d337a715d47d7ec33b [INFO] running `Command { std: "docker" "start" "-a" "b090e270b03041856e8a7227e2b0f30ae51c2a50ce73c6d337a715d47d7ec33b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b090e270b03041856e8a7227e2b0f30ae51c2a50ce73c6d337a715d47d7ec33b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b090e270b03041856e8a7227e2b0f30ae51c2a50ce73c6d337a715d47d7ec33b", kill_on_drop: false }` [INFO] [stdout] b090e270b03041856e8a7227e2b0f30ae51c2a50ce73c6d337a715d47d7ec33b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9a4d5afcce589497f78293e6c1604941b00a31e9406eff224d42207b37e90af [INFO] running `Command { std: "docker" "start" "-a" "c9a4d5afcce589497f78293e6c1604941b00a31e9406eff224d42207b37e90af", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking sha1 v0.6.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking bb8 v0.8.6 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking bollard-stubs v1.41.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking redis v0.21.7 [INFO] [stderr] Checking bb8-redis v0.11.0 [INFO] [stderr] Checking a-mutex v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/redis.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 271 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/redis.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | con.set(format_data_key(&self.mutex.key), &data).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 279 | con.set::<_, _, ()>(format_data_key(&self.mutex.key), &data).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/redis.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 271 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/redis.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | con.del(format_data_key(&self.mutex.key)).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 297 | con.del::<_, ()>(format_data_key(&self.mutex.key)).await?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking testcontainers v0.14.0 [INFO] [stdout] error: implementation of `MutexProvider` is not general enough [INFO] [stdout] --> src/lib.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | handles.push(spawn(async move { [INFO] [stdout] | __________________________^ [INFO] [stdout] 66 | | let mutex = m.get(lock_key).await.unwrap(); [INFO] [stdout] 67 | | let _guard = mutex.lock().await.unwrap(); [INFO] [stdout] 68 | | let copy = count.load(std::sync::atomic::Ordering::Relaxed); [INFO] [stdout] 69 | | tokio::time::sleep(Duration::from_millis(1)).await; [INFO] [stdout] 70 | | count.store(copy + 1, std::sync::atomic::Ordering::Relaxed); [INFO] [stdout] 71 | | })); [INFO] [stdout] | |______________^ implementation of `MutexProvider` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `impl MutexProvider + 'static` must implement `MutexProvider`, for any lifetime `'0`... [INFO] [stdout] = note: ...but it actually implements `MutexProvider`, for some specific lifetime `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/lib.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 57 | pub async fn check_empty(m: impl MutexProvider + 'static) { [INFO] [stdout] | ---------------------------------------------------------------------- return type `impl Future` contains a lifetime `'1` [INFO] [stdout] ... [INFO] [stdout] 65 | handles.push(spawn(async move { [INFO] [stdout] | __________________________^ [INFO] [stdout] 66 | | let mutex = m.get(lock_key).await.unwrap(); [INFO] [stdout] 67 | | let _guard = mutex.lock().await.unwrap(); [INFO] [stdout] 68 | | let copy = count.load(std::sync::atomic::Ordering::Relaxed); [INFO] [stdout] 69 | | tokio::time::sleep(Duration::from_millis(1)).await; [INFO] [stdout] 70 | | count.store(copy + 1, std::sync::atomic::Ordering::Relaxed); [INFO] [stdout] 71 | | })); [INFO] [stdout] | |______________^ requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `MutexProvider` is not general enough [INFO] [stdout] --> src/lib.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | handles.push(spawn(async move { [INFO] [stdout] | __________________________^ [INFO] [stdout] 86 | | let mutex = m.get(lock_key).await.unwrap(); [INFO] [stdout] 87 | | let mut guard = mutex.lock().await.unwrap(); [INFO] [stdout] 88 | | let val = { [INFO] [stdout] ... | [INFO] [stdout] 97 | | })); [INFO] [stdout] | |______________^ implementation of `MutexProvider` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: `impl MutexProvider + 'static` must implement `MutexProvider`, for any lifetime `'0`... [INFO] [stdout] = note: ...but it actually implements `MutexProvider`, for some specific lifetime `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/lib.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 79 | pub async fn check_val(m: impl MutexProvider + 'static) { [INFO] [stdout] | ------------------------------------------------------------------ return type `impl Future` contains a lifetime `'1` [INFO] [stdout] ... [INFO] [stdout] 85 | handles.push(spawn(async move { [INFO] [stdout] | __________________________^ [INFO] [stdout] 86 | | let mutex = m.get(lock_key).await.unwrap(); [INFO] [stdout] 87 | | let mut guard = mutex.lock().await.unwrap(); [INFO] [stdout] 88 | | let val = { [INFO] [stdout] ... | [INFO] [stdout] 97 | | })); [INFO] [stdout] | |______________^ requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/redis.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 271 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/redis.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | con.set(format_data_key(&self.mutex.key), &data).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 279 | con.set::<_, _, ()>(format_data_key(&self.mutex.key), &data).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/redis.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 271 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/redis.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | con.del(format_data_key(&self.mutex.key)).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 297 | con.del::<_, ()>(format_data_key(&self.mutex.key)).await?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `a-mutex` (lib test) due to 4 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c9a4d5afcce589497f78293e6c1604941b00a31e9406eff224d42207b37e90af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9a4d5afcce589497f78293e6c1604941b00a31e9406eff224d42207b37e90af", kill_on_drop: false }` [INFO] [stdout] c9a4d5afcce589497f78293e6c1604941b00a31e9406eff224d42207b37e90af