From 128b33e71738841bdb469e1850e8a291460fc9bb Mon Sep 17 00:00:00 2001 From: Eddie's AI Agent Date: Thu, 19 Mar 2026 19:33:05 -0700 Subject: [PATCH] fix(channel): remove dead AtomicU32 fallback in channels mod (#3521) The conditional cfg branches for AtomicU32 (32-bit fallback) and AtomicU64 (64-bit) became dead code after portable_atomic::AtomicU64 was adopted in bd757996. The AtomicU32 branch would fail to compile on 32-bit targets because the import was removed but the usage remained. Use portable_atomic::AtomicU64 unconditionally, which works on all targets. Fixes #3452 Co-authored-by: SpaceLobster Co-authored-by: Claude Opus 4.6 (1M context) --- src/channels/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/channels/mod.rs b/src/channels/mod.rs index 217ccdb2f..78dcf411f 100644 --- a/src/channels/mod.rs +++ b/src/channels/mod.rs @@ -2777,10 +2777,7 @@ async fn run_message_dispatch_loop( String, InFlightSenderTaskState, >::new())); - #[cfg(target_has_atomic = "64")] let task_sequence = Arc::new(AtomicU64::new(1)); - #[cfg(not(target_has_atomic = "64"))] - let task_sequence = Arc::new(AtomicU32::new(1)); while let Some(msg) = rx.recv().await { // Fast path: /stop cancels the in-flight task for this sender scope without