Ralf Jung fef3324043
Rollup merge of #76492 - fusion-engineering-forks:int-bits, r=dtolnay
Add associated constant `BITS` to all integer types

Recently I've regularly come across this snippet (in a few different crates, including `core` and `std`):
```rust
std::mem::size_of<usize>() * 8
```

I think it's time for a `usize::BITS`.
2020-09-19 11:47:45 +02:00
..
2020-08-30 17:07:50 +05:30
2020-09-01 19:56:32 +02:00
2020-09-01 15:44:00 +02:00
2020-09-08 22:26:44 -04:00
2020-09-14 11:03:47 +02:00
2020-09-02 15:48:35 -07:00
2020-09-08 22:26:44 -04:00
2020-09-12 15:14:58 +02:00