summary refs log tree commit diff
path: root/library/core/src/num/nonzero.rs
AgeCommit message (Expand)AuthorLines
2024-08-31Improve documentation for <integer>::from_str_radixKappa322-10/+0
2024-08-28Speed up `checked_isqrt` and `isqrt` methodsChai T. Rex-25/+8
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+2
2024-07-27bitwise and bytewise methods on `NonZero`Peter Jaszkowiak-3/+430
2024-07-19improve safety commentivan-shrimp-1/+1
2024-07-19add `NonZero<uN>::isqrt`ivan-shrimp-6/+54
2024-06-21Remove `feature(effects)` from the standard libraryDeadbeef-4/+2
2024-06-13Fix wording in {checked_}next_power_of_twoChristiaan Biesterbosch-1/+1
2024-06-09fix `NonZero` doctest inconsistenciesivan-shrimp-10/+32
2024-05-08Use generic `NonZero` in examples.Markus Reiter-183/+181
2024-05-01Step bootstrap cfgsMark Rousskov-8/+2
2024-05-01Replace version placeholders for 1.79Mark Rousskov-3/+3
2024-04-23Rollup merge of #124003 - WaffleLapkin:dellvmization, r=scottmcm,RalfJung,antoyoMatthias Krüger-2/+12
2024-04-22Stabilize generic `NonZero`.Markus Reiter-5/+5
2024-04-16Change intrinsic types to use `u32` instead of `T` to match stable reexportsMaybe Waffle-2/+12
2024-03-30Make {integer}::from_str_radix constantGeorge Bateman-2/+1
2024-03-27`num::NonZero::get` can be 1 transmute instead of 3Scott McMurray-12/+14
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-2/+3
2024-03-17chore(121952): echo comments on the `*_assign` methodsPetr Portnov-0/+3
2024-03-17chore(121952): remove redundant commentsPetr Portnov-3/+0
2024-03-17feat: implement `{Div,Rem}Assign<NonZero<X>>` on `X`Petr Portnov-1/+20
2024-03-14Hide implementation details for `NonZero` auto traits.Markus Reiter-1/+22
2024-03-10Fix lint.Markus Reiter-0/+1
2024-03-10Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attribute to i...Markus Reiter-51/+76
2024-03-09NonZero::from_mut_unchecked is library UBBen Kimock-1/+1
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-4/+6
2024-03-01Make `ZeroablePrimitive` trait unsafe.Markus Reiter-2/+6
2024-02-22Use generic `NonZero` everywhere in `core`.Markus Reiter-9/+7
2024-02-17Implement `NonZero` traits generically.Markus Reiter-179/+211
2024-02-17Auto merge of #120563 - reitermarkus:generic-nonzero-get, r=dtolnaybors-20/+21
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-1/+1
2024-02-15Use generic `NonZero` internally.Markus Reiter-5/+5
2024-02-09Auto merge of #120676 - Mark-Simulacrum:bootstrap-bump, r=clubby789bors-6/+0
2024-02-08Make `NonZero::get` generic.Markus Reiter-20/+21
2024-02-08Use `transmute_unchecked` in `NonZero::new`.Markus Reiter-3/+1
2024-02-08Step all bootstrap cfgs forwardMark Rousskov-6/+0
2024-02-07Replace `transmute_copy` with `ptr::read`.Markus Reiter-1/+2
2024-02-07Don't use `assert_unsafe_precondition` twice.Markus Reiter-12/+10
2024-02-07Make `NonZero` constructors generic.Markus Reiter-71/+84
2024-02-07Simplify `impl_zeroable_primitive` macro.Markus Reiter-13/+13
2024-01-27Switch `NonZero` alias direction.Markus Reiter-18/+32
2024-01-24Rollup merge of #118326 - WaffleLapkin:nz_count_ones, r=scottmcmLeón Orell Valerian Liehr-0/+37
2024-01-24Add `NonZero*::count_ones`Maybe Waffle-0/+37
2024-01-23Auto merge of #120283 - fmease:rollup-rk0f6r5, r=fmeasebors-8/+101
2024-01-22Use `Self` in `NonZero*` implementations.Markus Reiter-43/+48
2024-01-21Manually implement derived `NonZero` traits.Markus Reiter-8/+101
2024-01-19Assign tracking issue number for feature(nonzero_from_mut)SOFe-2/+2
2024-01-19Added assert_unsafe_precondition! check for NonZeroXxx::from_mut_uncheckedSOFe-13/+20
2024-01-19Added NonZeroXxx::from_mut(_unchecked)?SOFe-0/+26
2024-01-19Rollup merge of #118665 - dtolnay:signedness, r=NilstriebMatthias Krüger-1265/+1211