about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-30 14:36:58 +0200
committerGitHub <noreply@github.com>2021-10-30 14:36:58 +0200
commit20bb93210d1ae4331f8c66efff67ef3e84bd66a2 (patch)
tree0e9dcfc9026280f1a1921cb2bd55cebd4c9ce468 /src/test/codegen/src-hash-algorithm
parent2b643e987173b36cb0279a018579372e31a35776 (diff)
parent361c978fbd41535f3c7fd0b2f956d4e1ee4aeefd (diff)
downloadrust-20bb93210d1ae4331f8c66efff67ef3e84bd66a2.tar.gz
rust-20bb93210d1ae4331f8c66efff67ef3e84bd66a2.zip
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
Make most std::ops traits const on numeric types

This PR makes existing implementations of `std::ops` traits (`Add`, `Sub`, etc) [`impl const`](https://github.com/rust-lang/rust/issues/67792) where possible.
This affects:
- All numeric primitives (`u*`, `i*`, `f*`)
- `NonZero*`
- `Wrapping`

This is under the `rustc_const_unstable` feature `const_ops`.
I will write tests once I know what can and can't be kept for the final version of this PR.

Since this is my first PR to rustc (and hopefully one of many), please give me feedback on how to better handle the PR process wherever possible. Thanks

[Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Const.20std.3A.3Aops.20traits.20PR)
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions