Question about `std::error::repr_bitpacked::Repr::new_os`
⚓ Rust 📅 2026-01-25 👤 surdeus 👁️ 1The first line of this function is
let utagged = ((code as usize) << 32) | TAG_OS;
Would this work on 32-bit targets, where usize is 32 bit? There'll be nothing left in the number after shifting it for 32 bit, at first glance.
3 posts - 2 participants
🏷️ Rust_feed