about summary refs log tree commit diff
path: root/library/core/tests/nonzero.rs
AgeCommit message (Collapse)AuthorLines
2025-01-26Put all coretests in a separate cratebjorn3-367/+0
2024-10-08Add LowerExp and UpperExp implementationsrickdewater-0/+11
Mark the new fmt impls with the correct rust version Clean up the fmt macro and format the tests
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-19/+19
2024-02-15Use generic `NonZero` internally.Markus Reiter-132/+133
2023-12-10remove redundant importssurechen-2/+1
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-04-20Implement `Neg` for signed non-zero integers.John Millikin-0/+18
Negating a non-zero integer currently requires unpacking to a primitive and re-wrapping. Since negation of non-zero signed integers always produces a non-zero result, it is safe to implement `Neg` for `NonZeroI{N}`. The new `impl` is marked as stable because trait implementations for two stable types can't be marked unstable.
2023-04-16fix library and rustdoc testsDeadbeef-0/+2
2021-10-20Make `From` impls of NonZero integer const.woppopo-4/+7
I also changed the feature gate added to `From` impls of Atomic integer to `const_num_from_num` from `const_convert`.
2021-10-18Make more `From` impls `const`woppopo-0/+3
2020-12-17Added `impl Rem<NonZeroU{0}> for u{0}` which cannot panicOhad Ravid-0/+8
2020-12-17Added `impl Div<NonZeroU{0}> for u{0}` which cannot panicOhad Ravid-0/+8
2020-10-19Fix braces in panic message in test.Mara Bos-1/+1
2020-11-17add trailing_zeros and leading_zeros to non zero typesAndreas Jonson-1/+101
2020-10-26Apply suggested changesEthan Brierley-1/+1
2020-10-06Bring char along with InvalidDigitEthan Brierley-1/+1
2020-10-06Fill in things needed to stabilize int_error_matchingEthan Brierley-2/+2
2020-09-04Move various ui const tests to `library`Christiaan Dirkx-0/+17
Move: - `src\test\ui\consts\const-nonzero.rs` to `library\core` - `src\test\ui\consts\ascii.rs` to `library\core` - `src\test\ui\consts\cow-is-borrowed` to `library\alloc` Part of #76268
2020-07-27mv std libs to library/mark-0/+197