about summary refs log tree commit diff
path: root/src/libstd/num.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-297/+0
2020-06-10Migrate to numeric associated constsLzu Tao-23/+14
2019-11-29Format libstd with rustfmtDavid Tolnay-53/+66
This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd *that are not involved in any currently open PR* to minimize merge conflicts. THe list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in outstanding_files, the relevant commands were: $ find src/libstd -name '*.rs' \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ rg libstd outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libstd. To confirm no funny business: $ git checkout $THIS_COMMIT^ $ git show --pretty= --name-only $THIS_COMMIT \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ git diff $THIS_COMMIT # there should be no difference
2019-04-23Reexport IntErrorKind in stdJakub Kądziołka-0/+6
2019-04-10Re-export NonZero signed variant in stdLzu Tao-0/+2
2019-02-28libstd => 2018Taiki Endo-16/+15
2018-12-25Remove licensesMark Rousskov-10/+0
2018-05-16Stabilize num::NonZeroU*Simon Sapin-2/+1
Tracking issue: https://github.com/rust-lang/rust/issues/49137
2018-05-16Remove unstable deprecated num::NonZeroI* typesSimon Sapin-4/+1
2018-03-30Deprecate signed std::num::NonZeroI* with a call for use casesSimon Sapin-0/+1
2018-03-26fix last two tidyMark Mansi-6/+1
2018-03-23Rollup merge of #48265 - SimonSapin:nonzero, r=KodrAusAlex Crichton-0/+11
Add 12 num::NonZero* types for primitive integers, deprecate core::nonzero RFC: https://github.com/rust-lang/rfcs/pull/2307 Tracking issue: ~~https://github.com/rust-lang/rust/issues/27730~~ https://github.com/rust-lang/rust/issues/49137 Fixes https://github.com/rust-lang/rust/issues/27730
2018-03-18num::NonZero* types now have their own tracking issue: #49137Simon Sapin-2/+2
Fixes #27730
2018-03-17Add 12 num::NonZero* types for each primitive integerSimon Sapin-0/+11
RFC: https://github.com/rust-lang/rfcs/pull/2307
2018-03-17remove FIXME(#39119) and allow running test on emscriptenNiv Kaminer-1/+0
2017-06-08Auto merge of #40706 - irfanhudda:doc-next-power-of-two, r=alexcrichtonbors-1/+4
Improve documentation of next_power_of_two Clarify overflow behavior of `next_power_of_two`. Related Issue: #18604
2017-05-31Simplify helper functionsIrfan Hudda-1/+4
Based on @scottmcm 's suggestion
2017-04-20Remove num::{Zero,One}Josh Stone-3/+0
[unstable, deprecated since 1.11.0]
2017-01-19travis: Get an emscripten builder onlineAlex Crichton-0/+1
This commit adds a new entry to the Travis matrix which will execute emscripten test suites. Along the way it updates a few bits of the test suite to continue passing on emscripten, such as: * Ignoring i128/u128 tests as they're presumably just not working (didn't investigate as to why) * Disabling a few process tests (not working on emscripten) * Ignore some num tests in libstd (#39119) * Fix some warnings when compiling
2016-11-01std: Flatten the num directory to reflect the module layoutBrian Anderson-0/+293
This makes it dissimilar to how core is structured on disk, but more predictable on its own.