mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 21:54:16 +00:00
`Resolver::next_node_id` converts a `u32` to a `usize` (which is possibly bigger), does a checked add, and then converts the result back to a `u32`. The `usize` conversion completely subverts the checked add! This commit removes the conversion to/from `usize`.