You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps this should be a documentation issue, given that, since it isn't clear from what is present for the usize that the type is intended to be perpetually forward-looking: https://doc.rust-lang.org/std/primitive.usize.html
This was previously brought up in #30495. The issue is that in the future we may have 128-bit CPUs where usize would exceed u64, and From must not fail.
Why doesn't
u64
implementFrom<usize>
? The transformation is infallible.The text was updated successfully, but these errors were encountered: