summary refs log tree commit diff
path: root/src/test/ui/consts/const-int-arithmetic.rs
AgeCommit message (Collapse)AuthorLines
2021-01-13Stabilize remaining integer methods as `const fn`Jacob Pratt-5/+0
This includes the following functions: - i*::checked_div - i*::checked_div_euclid - i*::checked_rem - i*::checked_rem_euclid - i*::div_euclid - i*::overflowing_div - i*::overflowing_div_euclid - i*::overflowing_rem - i*::overflowing_rem_euclid - i*::rem_euclid - i*::wrapping_div - i*::wrapping_div_euclid - i*::wrapping_rem - i*::wrapping_rem_euclid - u*::checked_div - u*::checked_div_euclid - u*::checked_rem - u*::checked_rem_euclid - u*::div_euclid - u*::overflowing_div - u*::overflowing_div_euclid - u*::overflowing_rem - u*::overflowing_rem_euclid - u*::rem_euclid - u*::wrapping_div - u*::wrapping_div_euclid - u*::wrapping_rem - u*::wrapping_rem_euclid
2020-11-29Update tests to remove old numeric constantsbstrie-2/+0
Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
2020-06-29stabilize const_saturating_int_methodsTrevor Spiteri-1/+0
2020-06-10Migrate to numeric associated constsLzu Tao-12/+12
2020-05-04Stabilize saturating_abs and saturating_negTobias Rapp-1/+0
Stabilizes the following signed integer functions with saturation mechanics: * saturating_abs() * saturating_neg() Closes #59983
2020-02-10some more tests for i128 oveflow behaviorRalf Jung-2/+19
2020-02-04Fix testDylan MacKenzie-160/+124
2020-02-04Add tests for newly const arithmetic fnsDylan MacKenzie-0/+166
Co-Authored-By: 9999years <rbt@sent.as>