summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
2024-03-09fix legacy numeric constant diag itemsPeter Jaszkowiak-0/+2
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-02const_eval_select: make it safe but be careful with what we expose on stable ...Ralf Jung-4/+16
2024-03-01Make `ZeroablePrimitive` trait unsafe.Markus Reiter-2/+6
2024-02-22Use generic `NonZero` everywhere in `core`.Markus Reiter-9/+7
2024-02-20Rollup merge of #121241 - reitermarkus:generic-nonzero-traits, r=dtolnayNilstrieb-179/+211
2024-02-18diagnostic items for legacy numeric constantsPeter Jaszkowiak-0/+32
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-16Auto merge of #120486 - reitermarkus:use-generic-nonzero, r=dtolnaybors-5/+5
2024-02-15doc: panicking division by zero examples for unsigned strict div opsTrevor Spiteri-0/+27
2024-02-15doc: add note before panicking examples for strict_overflow_opsTrevor Spiteri-0/+52
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-1/+1
2024-02-15Use generic `NonZero` internally.Markus Reiter-5/+5
2024-02-11Rollup merge of #119449 - Nilstrieb:library-clippy, r=cuviperMatthias Krüger-0/+4
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-02-01Revert unsound libcore changes of #119911Oli Scherer-384/+149
2024-01-27Switch `NonZero` alias direction.Markus Reiter-19/+41
2024-01-25Auto merge of #119911 - NCGThompson:is-statically-known, r=oli-obkbors-149/+384
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-23Rollup merge of #120160 - reitermarkus:nonzero-traits, r=dtolnayLeón Orell Valerian Liehr-8/+101
2024-01-23Rollup merge of #120244 - reitermarkus:nonzero-self, r=dtolnayLeón Orell Valerian Liehr-43/+48
2024-01-23Further Implement Power of Two OptimizationNicholas Thompson-146/+324
2024-01-23Auto merge of #119892 - joboet:libs_use_assert_unchecked, r=Nilstrieb,cuviperbors-2/+3
2024-01-22Use `Self` in `NonZero*` implementations.Markus Reiter-43/+48
2024-01-22Rollup merge of #119726 - NCGThompson:div-overflow-doc, r=NilstriebMatthias Krüger-36/+34
2024-01-21Manually implement derived `NonZero` traits.Markus Reiter-8/+101
2024-01-21Fix `clippy::correctness` in the libraryNilstrieb-0/+4
2024-01-21Rollup merge of #116090 - rmehri01:strict_integer_ops, r=m-ou-seNadrieril-15/+995
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-19Clarify Panicking Behavior in Integer Division DocsNicholas Thompson-19/+8
2024-01-19Make `saturating_div` Docs Consistent with OthersNicholas Thompson-10/+8
2024-01-19Adjust Attributes of Integer Division MethodsNicholas Thompson-7/+18
2024-01-19Add new intrinsic `is_constant` and optimize `pow`Catherine Flores-34/+91
2024-01-19Rollup merge of #118665 - dtolnay:signedness, r=NilstriebMatthias Krüger-1265/+1211
2024-01-15Revert unrelated changes from PR 119990David Tolnay-3/+3
2024-01-15Add private `NonZero<T>` type alias.Markus Reiter-12/+79
2024-01-14Unbreak tidy's feature parserDavid Tolnay-52/+31