about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-19 11:47:45 +0200
committerGitHub <noreply@github.com>2020-09-19 11:47:45 +0200
commitfef332404341e89e4fe09416d01d82a99f7e8c5f (patch)
tree9fb63fad47aa4ea910f186ced17b03e27c5b2729 /src/test/codegen/src-hash-algorithm
parent1720fd94e8aafc0e24a537688fe88cb1fd14831e (diff)
parent1bfe5efe8f635268646da91f1f4f6e616104b71f (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions