summary refs log tree commit diff
path: root/src/libcore/num
AgeCommit message (Expand)AuthorLines
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
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/+31
2019-10-31Stabilize float_to_from_bytes featureLzu Tao-24/+12
2019-10-22Apply clippy::useless_let_if_seq suggestionMateusz Mikuła-5/+4
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-18Rollup merge of #65549 - t-rapp:tr-wrapping-rotate-docs, r=jonas-schievinkTyler Mandry-2/+2
2019-10-18Fix left/right shift typo in wrapping rotate docsTobias Rapp-2/+2
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
2019-10-01Inline `{min,max}_value` even in debug buildsLzu Tao-4/+4
2019-09-25Rollup merge of #64764 - Mark-Simulacrum:snap, r=CentrilMazdak Farrokhzad-42/+6
2019-09-25Rollup merge of #64386 - tspiteri:const-abs2, r=oli-obkMazdak Farrokhzad-3/+26
2019-09-25Snap cfgs to new betaMark Rousskov-42/+6
2019-09-23Move `--cfg bootstrap` out of `rustc.rs`Alex Crichton-12/+12
2019-09-18doc: Format some primitives examplesLzu Tao-12/+18
2019-09-13use `sign` variable in abs and wrapping_abs methodsTrevor Spiteri-3/+26
2019-09-10Rollup merge of #63786 - tspiteri:const-abs, r=alexcrichtonMazdak Farrokhzad-21/+9
2019-09-02Auto merge of #63692 - iluuu1994:issue-49660, r=sfacklerbors-0/+8
2019-08-22Change code formatting for readability.Tomasz Różański-2/+2
2019-08-21make abs, wrapping_abs, and overflowing_abs const functionsTrevor Spiteri-21/+9
2019-08-20Test that Wrapping arithmetic ops are implemented for all int typesIlija Tovilo-0/+8
2019-08-16rustbuild: work around the stdarch cfg(bootstrap) bug.Eduard-Mihai Burtescu-12/+12