From: bors Date: Thu, 2 Jul 2020 21:51:34 +0000 (+0000) Subject: Auto merge of #8446 - ehuss:fix-usize-32, r=alexcrichton X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fede83ccf973457de319ba6fa0e36ead454d2e20;p=cargo.git Auto merge of #8446 - ehuss:fix-usize-32, r=alexcrichton Fix overflow error on 32-bit. This fails to compile on 32-bit platforms with an overflow error ("attempt to shift right by 32_i32 which would overflow"). I think it would be highly unlikely for any value to be in the billions. Alternatively it can be rewritten to something like `assert!(val <= u32::MAX as usize);`. --- fede83ccf973457de319ba6fa0e36ead454d2e20