about summary refs log tree commit diff
path: root/src/libcore/num/mod.rs
AgeCommit message (Expand)AuthorLines
2020-02-08Make `num::NonZeroX::new` an unstable `const fn`Dylan MacKenzie-1/+2
2020-02-04Use consistent feature namingDylan MacKenzie-45/+45
2020-02-04Make saturating arithmetic using intrinsics `const`Dylan MacKenzie-2/+4
2020-02-04Make checked division `const`Dylan MacKenzie-4/+8
2020-02-04Make wrapping arithmetic `const`Dylan MacKenzie-4/+8
2020-02-04Make `saturating_mul` a `const fn`Dylan MacKenzie-6/+12
2020-02-04Make overflowing arithmetic `const`Dylan MacKenzie-4/+8
2020-02-04Make checked arithmetic besides division `const`Dylan MacKenzie-13/+26
2020-02-04Make euclidean division `const`Dylan MacKenzie-16/+32
2020-01-30Auto merge of #68325 - faern:move-numeric-consts-to-associated-consts-step1, ...bors-23/+51
2020-01-29Document `From` implementation for NonZero numsLeSeulArtichaut-2/+6
2020-01-23Unlock assoc_int_consts in documentation examples using itLinus Färnstrand-0/+4
2020-01-23Add MIN/MAX associated constants to the integer typesLinus Färnstrand-23/+47
2020-01-15Mark leading_trailing_ones with tracking issue 57969Thom Chiovoloni-4/+4
2020-01-12Add {leading,trailing}_ones to primitive int typesThom Chiovoloni-0/+83
2020-01-09Rollup merge of #67966 - popzxc:core-std-matches, r=CentrilMazdak Farrokhzad-40/+10
2020-01-09Rollup merge of #67884 - anp:allow-unused-const-attr, r=oli-obkMazdak Farrokhzad-0/+3
2020-01-08Use matches macro in libcore and libstdIgor Aleksanov-40/+10
2020-01-04Fix incremental builds of core by allowing unused attribute.Adam Perry-0/+3
2020-01-05Re-add comment about behaviour of inline.jumbatm-0/+3
2020-01-04Also remove const-hack for absjumbatm-18/+6
2019-12-27Clean up const-hack from #58044jumbatm-1/+6
2019-12-27Clean up const-hack from #61635jumbatm-1/+5
2019-12-27Clean up const-hack from #63786jumbatm-10/+6
2019-12-21Require issue = "none" over issue = "0" in unstable attributesRoss MacArthur-2/+2
2019-12-18Propagate cfg bootstrapMark Rousskov-325/+77
2019-12-15use Self alias in place of macrosLzu Tao-2/+2
2019-12-15Rollup merge of #67305 - kappa:patch-1, r=jonas-schievinkMazdak Farrokhzad-1/+1
2019-12-14Doc typoAlex Kapranoff-1/+1
2019-12-14Auto merge of #67224 - nikomatsakis:revert-stabilization-of-never-type, r=cen...bors-0/+11
2019-12-14Revert "Stabilize the `never_type`, written `!`."Niko Matsakis-1/+1
2019-12-14Revert "Redefine `core::convert::Infallible` as `!`."Niko Matsakis-0/+11
2019-12-13Require stable/unstable annotations for the constness of all stable functions...Oliver Scherer-17/+325
2019-12-08move from non zero impls to `libcore/convert/num.rs`Peter-495/+97
2019-12-06Move numeric `From` and `TryFrom` impls to `libcore/convert/num.rs`Simon Sapin-330/+1
2019-11-21Redefine `core::convert::Infallible` as `!`.Mazdak Farrokhzad-11/+1
2019-11-21Stabilize the `never_type`, written `!`.Mazdak Farrokhzad-1/+1
2019-11-12update version metadataPeter-35/+35
2019-11-11add NonZeroU16 -> NonZeroUsize and NonZeroI16 -> NonZeroIsizePeter-0/+2
2019-11-10remove irrelevant Safety sectionPeter-38/+34
2019-11-10From<NonZero*> impls for wider NonZero typesPeter-0/+70
2019-11-08remove vestigial comments referring to defunct numeric trait hierarchyAlexander Nye-2/+0
2019-11-06Have tidy ensure that we document all `unsafe` blocks in libcoreOliver Scherer-2/+23
2019-10-21Rollup merge of #65092 - tspiteri:const-is-pow2, r=oli-obkMazdak Farrokhzad-2/+2
2019-10-21improve readability of is_power_of_twoTrevor Spiteri-1/+1
2019-10-17properly document panics in div_euclid and rem_euclidTrevor Spiteri-2/+10
2019-10-11improve performance of signed saturating_mulTrevor Spiteri-1/+1
2019-10-04make is_power_of_two a const functionTrevor Spiteri-2/+2
2019-10-03Rollup merge of #64941 - lzutao:inline-max_min_value, r=nnethercoteMazdak Farrokhzad-4/+4
2019-10-01Add lower bound doctests for `saturating_{add,sub}` signed intsLzu Tao-3/+6