diff options
| author | Ralf Jung <post@ralfj.de> | 2020-09-19 11:47:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-19 11:47:45 +0200 |
| commit | fef332404341e89e4fe09416d01d82a99f7e8c5f (patch) | |
| tree | 9fb63fad47aa4ea910f186ced17b03e27c5b2729 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 1720fd94e8aafc0e24a537688fe88cb1fd14831e (diff) | |
| parent | 1bfe5efe8f635268646da91f1f4f6e616104b71f (diff) | |
| download | rust-fef332404341e89e4fe09416d01d82a99f7e8c5f.tar.gz rust-fef332404341e89e4fe09416d01d82a99f7e8c5f.zip | |
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`.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
