about summary refs log tree commit diff
path: root/src/lib/int.rs
AgeCommit message (Collapse)AuthorLines
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-189/+0
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-15Replaced constant functions with actual constants in std and updated testsStefan Plantikow-8/+13
Fixes issue #1165
2011-11-03Disallow writing to function arguments againMarijn Haverbeke-1/+2
Remove implicit copying hack. Closes #1118
2011-10-31Add a char::to_digit functionMatt Brubeck-5/+1
2011-10-31Correct handling of non-numeric chars in parse_bufMatt Brubeck-1/+9
Without this fix, int::parse_buf and uint::parse_buf return incorrect results for any strings that contain non-numeric characters. Fixes #1102.
2011-10-30Fix int::parse_buf for negative numbers (#1102)Matt Brubeck-2/+4
2011-10-27Remove std::int::eq_aliasBrian Anderson-3/+0
This is the exact same function as int::eq
2011-10-25Begin documenting std and add doc generation using naturaldocsBrian Anderson-1/+79
Naturaldocs isn't really that great but it seems easier to get something working than with doxygen, for which we would need to convert rust code to something C++ish. We probably want to just write a rustdoc utility at some point.
2011-10-21Remove last uses of iterators from stdlibMarijn Haverbeke-3/+2
Issue #1056
2011-10-17[Lib] int.rs, uint.rs: added max_value, min_valueDavid Rajchenbach-Teller-0/+7
2011-10-12[Optim] int.rs: reimplemented pow with fast exponentiationDavid Rajchenbach-Teller-10/+13
2011-09-28Revert "Revert "Implement pattern ranges for all numeric types.""Brian Anderson-0/+23
This reverts commit a034f87146e60e1db2327c6f6807c47406a1bb0b. Conflicts: src/comp/middle/check_alt.rs src/comp/middle/trans_alt.rs src/comp/syntax/ast.rs src/comp/syntax/ast_util.rs src/comp/syntax/fold.rs src/comp/syntax/print/pprust.rs Conflicts: src/comp/middle/trans_alt.rs
2011-09-21Revert "Implement pattern ranges for all numeric types."Marijn Haverbeke-23/+0
This reverts commit ce0f054f9d56df4e60291fc2e1b89ce979cf374f.
2011-09-21Implement pattern ranges for all numeric types.Josh Matthews-0/+23
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-2/+2
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-3/+3
2011-09-01Declare a bunch of int functions as pureTim Chevalier-15/+15
2011-08-27Convert std::int to istrs. Issue #855Brian Anderson-4/+4
2011-08-27Convert std::uint to istrs. Issue #855Brian Anderson-2/+2
2011-08-20ReformatBrian Anderson-1/+1
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-07-27Reformat for new syntaxMarijn Haverbeke-28/+28
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-0/+1
src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs.
2011-06-15Fix a bunch of compile-command lines to use RBUILDGraydon Hoare-1/+1
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-24/+28
2011-05-22stdlib: Use if/alt expressions in std::intBrian Anderson-9/+9
2011-05-19rustc: Generalize variable bindings so that we can use it for locals tooPatrick Walton-0/+4
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-0/+62
Except for _task, which is still a keyword.