about summary refs log tree commit diff
path: root/src/libcore/num
AgeCommit message (Expand)AuthorLines
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-56/+191
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-23Fix some float operations to work together with the assoc constsLinus Färnstrand-5/+5
2020-01-23Add relevant associated constants to the float typesLinus Färnstrand-28/+135
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-06Use Self instead of $typeLzu Tao-2/+2
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-31Rollup merge of #67430 - tspiteri:minus-inf, r=Dylan-DPCDylan DPC-2/+2
2019-12-30Rollup merge of #67657 - jumbatm:cleanup-const-hack, r=oli-obkYuki Okushi-12/+17
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-26Remove redundant link textsMatthew Kraai-2/+2
2019-12-24Show value for consts in the documentationOhad Ravid-1/+1
2019-12-22Format the worldMark Rousskov-3/+6
2019-12-21Require issue = "none" over issue = "0" in unstable attributesRoss MacArthur-7/+7
2019-12-19doc: minus (U+2212) instead of dash (U+002D) for negative infinityTrevor Spiteri-2/+2
2019-12-18Propagate cfg bootstrapMark Rousskov-333/+78
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/+329
2019-12-10Auto merge of #66277 - peter-wilkins:impl-from-wider-non-zeros, r=SimonSapinbors-85/+96
2019-12-08move from non zero impls to `libcore/convert/num.rs`Peter-2058/+1955
2019-12-06Format libcore with rustfmt (including tests and benches)David Tolnay-1/+4
2019-12-06Move numeric `From` and `TryFrom` impls to `libcore/convert/num.rs`Simon Sapin-330/+1
2019-12-06Add `{f32,f64}::approx_unchecked_to<Int>` unsafe methodsSimon Sapin-2/+62
2019-11-29Make dec2flt_table compatible with rustfmtDavid Tolnay-1225/+1231
2019-11-28Clarify `{f32,f64}::EPSILON` docsOhad Ravid-2/+2
2019-11-27Rollup merge of #66769 - fusion-engineering-forks:tau-constant, r=dtolnayTyler Mandry-0/+12
2019-11-26Format libcore with rustfmtDavid Tolnay-334/+551
2019-11-26Add tracking issue number.Mara Bos-2/+2
2019-11-26Add core::{f32,f64}::consts::TAU.Mara Bos-0/+12