| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-05-22 | libstd: Rename libcore to libstd and libstd to libextra; update makefiles. | Patrick Walton | -641/+0 | |
| This only changes the directory names; it does not change the "real" metadata names. | ||||
| 2013-05-19 | Register snapshots | Brian Anderson | -29/+0 | |
| 2013-05-18 | Use cond! macro where appropriate | Brendan Zabarauskas | -0/+12 | |
| 2013-05-14 | Use static string with fail!() and remove fail!(fmt!()) | Björn Steinbrink | -5/+5 | |
| fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself. | ||||
| 2013-05-10 | core: Use the new `for` protocol | Alex Crichton | -8/+34 | |
| 2013-05-08 | Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)] | Zack Corr | -14/+14 | |
| 2013-05-04 | Register snapshots | Brian Anderson | -6/+1 | |
| 2013-05-02 | libcore: Export core::from_str::FromStr from core::prelude | gifnksm | -1/+0 | |
| 2013-05-01 | Revert rename of Div to Quot | Brendan Zabarauskas | -17/+12 | |
| 2013-04-29 | Rename 'divisible_by' method to 'is_multiple_of', add tests for 'is_odd' and ↵ | Brendan Zabarauskas | -2/+27 | |
| 'is_even' | ||||
| 2013-04-27 | Add Orderable trait | Brendan Zabarauskas | -0/+29 | |
| This is a temporary trait until we have default methods. We don't want to encumber all implementors of Ord by requiring them to implement these functions, but at the same time we want to be able to take advantage of the speed of the specific numeric functions (like the `fmin` and `fmax` intrinsics). | ||||
| 2013-04-26 | Combine PrimitiveInt, Int, and Uint traits into one single trait | Brendan Zabarauskas | -3/+1 | |
| Having three traits for primitive ints/uints seemed rather excessive. If users wish to specify between them they can simply combine Int with either the Signed and Unsigned traits. For example: fn foo<T: Int + Signed>() { … } | ||||
| 2013-04-26 | Add BitCount trait | Brendan Zabarauskas | -1/+6 | |
| 2013-04-26 | Add Int, Uint and Float traits for primitive numbers | Brendan Zabarauskas | -0/+2 | |
| 2013-04-26 | Add Bitwise, Bounded, Primitive, and PrimitiveInt traits | Brendan Zabarauskas | -0/+18 | |
| 2013-04-26 | Use `///` doc-comment form instead of `/** */` | Brendan Zabarauskas | -4/+3 | |
| 2013-04-26 | Add is_zero method to Zero | Brendan Zabarauskas | -3/+6 | |
| 2013-04-25 | Use borrowed pointers for Integer methods | Brendan Zabarauskas | -23/+23 | |
| This brings them in line with the quot and rem traits, and is be better for large Integer types like BigInt and BigUint because they don't need to be copied unnecessarily. | ||||
| 2013-04-25 | Rename Natural to Integer | Brendan Zabarauskas | -1/+1 | |
| 'Natural' normally means 'positive integer' in mathematics. It is therefore strange to implement it on signed integer types. 'Integer' is probably a better choice. | ||||
| 2013-04-25 | Use #[cfg(not(stage0))] to exclude items from stage0 | Brendan Zabarauskas | -8/+2 | |
| As requested on the mailing list: https://mail.mozilla.org/pipermail/rust-dev/2013-April/003713.html | ||||
| 2013-04-25 | Move impls of `Num` out of core::num and clean up imports | Brendan Zabarauskas | -4/+7 | |
| 2013-04-24 | Implement Natural trait | Brendan Zabarauskas | -0/+72 | |
| This adds the following methods to ints and uints: - div - modulo - div_mod - quot_rem - gcd - lcm - divisible_by - is_even - is_odd I have not implemented Natural for BigInt and BigUInt because they're a little over my head. | ||||
| 2013-04-24 | Implement Signed and Unsigned traits and remove related predicate functions | Brendan Zabarauskas | -9/+3 | |
| 2013-04-23 | inline the primitive numeric operations | Daniel Micay | -0/+18 | |
| 2013-04-22 | Rename Div operator trait to Quot and Modulo operator trait to Rem | Brendan Zabarauskas | -22/+28 | |
| 2013-04-19 | librustc: WIP patch for using the return value. | Patrick Walton | -1/+1 | |
| 2013-04-19 | Use assert_eq! instead of assert! and remove extraneous parentheses | Brendan Zabarauskas | -50/+48 | |
| 2013-04-18 | Add #[inline(always)] to each operator method | Brendan Zabarauskas | -0/+13 | |
| 2013-04-18 | Implement bitwise operator traits for ints and uints | Brendan Zabarauskas | -0/+35 | |
| 2013-04-16 | libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵ | Huon Wilson | -155/+161 | |
| pub mod or pub fn). | ||||
| 2013-04-14 | Consolidate tests of numeric operations | Brendan Zabarauskas | -12/+0 | |
| 2013-04-09 | auto merge of #5769 : gifnksm/rust/range_step, r=bstrie | bors | -6/+25 | |
| `uint::range_step` or `int::range_step` causes overflow or underflow as following. code: ```rust fn main() { for uint::range_step(3, 0, -2) |n| { println(fmt!("%u", n)); } } ``` output: ``` 3 1 18446744073709551615 18446744073709551613 ... ``` This commit fixes this behavior as follows. ``` 3 1 ``` | ||||
| 2013-04-08 | libcore: from_str_common: provide option to ignore underscores. | Huon Wilson | -3/+3 | |
| Implement the possible improvement listed in the comment on from_str_bytes_common. | ||||
| 2013-04-07 | libcore: fix overflow/underflow in range_step | gifnksm | -6/+25 | |
| 2013-03-29 | librustc: Remove `fail_unless!` | Patrick Walton | -53/+53 | |
| 2013-03-28 | Removing unused imports | Alex Crichton | -1/+1 | |
| 2013-03-22 | librustc: Remove the `const` declaration form everywhere | Patrick Walton | -4/+4 | |
| 2013-03-22 | libcore: Remove `pure` from libcore. rs=depure | Patrick Walton | -43/+43 | |
| 2013-03-22 | librustc: Remove all uses of `static` from functions. rs=destatic | Patrick Walton | -4/+4 | |
| 2013-03-11 | libsyntax: Stop parsing bare functions in preparation for switching them over | Patrick Walton | -1/+4 | |
| 2013-03-11 | librustc: Replace all uses of `fn()` with `&fn()`. rs=defun | Patrick Walton | -4/+4 | |
| 2013-03-07 | test: Fix tests. | Patrick Walton | -2/+4 | |
| 2013-03-07 | librustc: Convert all uses of `assert` over to `fail_unless!` | Patrick Walton | -56/+56 | |
| 2013-03-04 | Adding missing imports for tests, and gate off others | Alex Crichton | -1/+2 | |
| 2013-03-04 | Remove unused imports throughout src/ | Alex Crichton | -9/+0 | |
| 2013-02-26 | Removed deprecated `str()` functions in int-template.rs and uint-template.rs | Marvin Löbel | -5/+0 | |
| 2013-02-15 | Removed generic infinity, NaN and negative zero functions | Marvin Löbel | -12/+0 | |
| Removed Round impl for integers | ||||
| 2013-02-15 | Made num <-> str conversion functions use NumStrConv trait | Marvin Löbel | -3/+3 | |
| Removed hacky dependency on Round trait and generic infinity functions Removed generic-runtime-failure-depending-on-type behavior | ||||
| 2013-02-15 | Moved numeric string conversion functions into own module | Marvin Löbel | -12/+13 | |
| 2013-02-14 | librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵ | Patrick Walton | -9/+9 | |
| rs=implflipping | ||||
