| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-06-28 | librustc: Disallow "mut" from distributing over bindings. | Patrick Walton | -2/+4 | |
| This is the backwards-incompatible part of per-binding-site "mut". | ||||
| 2013-06-18 | replace #[inline(always)] with #[inline]. r=burningtree. | Graydon Hoare | -578/+578 | |
| 2013-06-16 | Add copies to type params with Copy bound | Niko Matsakis | -17/+17 | |
| 2013-06-14 | Add Zero impls for lots of common types | Alex Crichton | -0/+15 | |
| 2013-06-12 | std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵ | Huon Wilson | -37/+38 | |
| .as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str). | ||||
| 2013-06-11 | std: convert pow, hypot, atan2, log to take arguments by reference. | Huon Wilson | -20/+20 | |
| 2013-06-08 | std: Fix search-and-replace typos | Tim Chevalier | -1/+1 | |
| 2013-06-04 | librustc: Disallow multiple patterns from appearing in a "let" declaration. | Patrick Walton | -2/+2 | |
| You can still initialize multiple variables at once with "let (x, y) = (1, 2)". | ||||
| 2013-05-30 | Add example for uint::range_step. | Steve Klabnik | -3/+12 | |
| 2013-05-30 | Require documentation by default for libstd | Alex Crichton | -0/+35 | |
| Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand. | ||||
| 2013-05-29 | librustc: Stop reexporting the standard modules from prelude. | Patrick Walton | -4/+35 | |
| 2013-05-29 | Changed to a more efficient implementation. | Matthijs Hofstra | -16/+4 | |
| 2013-05-29 | Replaced calls to external fmin/fmax by a Rust implementation. | Matthijs Hofstra | -4/+31 | |
| 2013-05-28 | Silence various warnings throughout test modules | Alex Crichton | -80/+80 | |
| 2013-05-28 | auto merge of #6771 : thestinger/rust/highlight, r=luqmana | bors | -3/+3 | |
| This works with pandoc linked against highlighting-kate >= 0.5.3.8. It seems to just be a no-op with earlier versions, because I successfully ran this through `try`. This also fixes some consistency issues (like making `Example`/`Examples` always a header and always using three tildes). | ||||
| 2013-05-27 | syntax highlight code examples in docstrings | Daniel Micay | -3/+3 | |
| 2013-05-27 | Get rid of no-longer-needed #[doc(hidden)] attributes. | Lindsey Kuper | -2/+0 | |
| There were several old `#[doc(hidden)]` attributes in libstd and libextra, left over from when rustdoc didn't hide private definitions, tagged with `FIXME #3538`. Since #3538 is now closed, I removed the `#[doc(hidden)]` attributes as well as the FIXMEs, but I left `#[doc(hidden)]` in libstd/task/spawn.rs and libstd/task/rt.rs since those two are apparently `pub`, as well as in libextra/std.rc since std/extra is `pub`. | ||||
| 2013-05-24 | Remove usage of the #[merge] hack with int modules | Alex Crichton | -1121/+923 | |
| 2013-05-23 | cleanup warnings from libstd | Erick Tryzelaar | -152/+150 | |
| 2013-05-22 | libstd: Rename libcore to libstd and libstd to libextra; update makefiles. | Patrick Walton | -2861/+7635 | |
| This only changes the directory names; it does not change the "real" metadata names. | ||||
| 2013-05-19 | Use assert_eq! rather than assert! where possible | Corey Richardson | -22/+22 | |
| 2013-05-14 | auto merge of #6471 : gifnksm/rust/reform-rational, r=brson | bors | -84/+126 | |
| `std::ratio` module contains `BigRational` type, but the type is not usable by following reasons. * `Ratio::new` requires `T: Copy + Num + Ord`, but `BigInt` is not implicitly copyable, because it contains unique vector. * `BigInt` is not implements `Num` So, I rewrite `Ratio` as follows. * `Ratio` requires `T: Clone + Integer + Ord`. * `Copy` -> `Clone`: to be able to use `BigRational` * `Num` -> `Integer`: It is incorrect that a rational number constructed by two non-integer numbers. * `BigInt` implements `Num` and `Orderable` which are required by `Integer` bound | ||||
| 2013-05-14 | Use static string with fail!() and remove fail!(fmt!()) | Björn Steinbrink | -1/+1 | |
| 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-14 | libstd: Add tests for BigRational | gifnksm | -20/+56 | |
| 2013-05-14 | libstd: `Ratio` requires `Clone` instead of `Copy` | gifnksm | -23/+28 | |
| This allows creating `Ratio<T>` which `T` is non-implicitly copyable types such as `BigInt`. | ||||
| 2013-05-14 | libstd: `Rational` requires `Integer` as type bounds instead of `Num` | gifnksm | -53/+14 | |
| 2013-05-14 | libstd: impl `Orderable` for `BigUint`/`BigInt` | gifnksm | -1/+37 | |
| 2013-05-14 | libstd: impl Num for BigUint/BigInt | gifnksm | -0/+4 | |
| 2013-05-11 | auto merge of #6429 : gifnksm/rust/bigint-is_even, r=catamorphism | bors | -1/+12 | |
| `BigUint::is_even()` didn't return correct value. | ||||
| 2013-05-11 | Warning police | Tim Chevalier | -2/+0 | |
| 2013-05-12 | libstd: Fix BigUint::is_even | gifnksm | -1/+12 | |
| 2013-05-10 | renamed vec::from_slice to vec::to_owned | Youngsoo Son | -1/+1 | |
| 2013-05-09 | remove vecs_implicitly_copyable from libstd/libcore | Daniel Micay | -1/+0 | |
| 2013-05-07 | Add abs_sub method to Signed trait | Brendan Zabarauskas | -0/+14 | |
| 2013-05-03 | add gitattributes and fix whitespace issues | Daniel Micay | -1/+0 | |
| 2013-05-02 | libcore: Export core::from_str::FromStr from core::prelude | gifnksm | -3/+2 | |
| 2013-05-02 | libstd: impl Clone for BigUint/BigInt and replace `copy` with `.clone()` | gifnksm | -11/+13 | |
| 2013-05-01 | Revert rename of Div to Quot | Brendan Zabarauskas | -70/+67 | |
| 2013-04-29 | auto merge of #6108 : gifnksm/rust/bigint-shift-bug, r=brson | bors | -21/+39 | |
| `std::bigint` contains the following code. ```rust borrow = *elem << (uint::bits - n_bits); ``` The code above contains a bug that the value of the right operand of the shift operator exceeds the size of the left operand, because sizeof(*elem) == 32, and 0 <= n_bits < 32 in 64bit architecture. If `--opt-level` option is not given to rustc, the code above runs as if the right operand is `(uint::bits - n_bits) % 32`, but if --opt-level is given, `borrow` is always zero. I wonder why this bug is not catched in the libstd's testsuite (I try the `rustc --test --opt-level=2 bigint.rs` before fixing the bug, but the unittest passes normally.) This pull request also removes the implicit vector copies in `bigint.rs`. | ||||
| 2013-04-29 | Rename 'divisible_by' method to 'is_multiple_of', add tests for 'is_odd' and ↵ | Brendan Zabarauskas | -2/+2 | |
| 'is_even' | ||||
| 2013-04-29 | Implement Fractional for Ratio | Brendan Zabarauskas | -0/+18 | |
| 2013-04-29 | libstd: modify wrong shift width. | gifnksm | -1/+2 | |
| borrow = *elem << (uint::bits - n_bits); The code above contains a bug that the value of the right operand of the shift operator exceeds the size of the left operand, because sizeof(*elem) == 32, and 0 <= n_bits < 32 in 64bit architecture. If `--opt-level` option is not given to rustc, the code above runs as if the right operand is `(uint::bits - n_bits) % 32`, but if --opt-level is given, `borrow` is always zero. I wonder why this bug is not catched in the libstd's testsuite (I try the `rustc --test --opt-level=2 bigint.rs` before fixing the bug, but the unittest passes normally.) | ||||
| 2013-04-29 | libstd: remove implicit copying of BigInt/BigUint | gifnksm | -20/+37 | |
| 2013-04-28 | auto merge of #6092 : gifnksm/rust/impl-integer-bigint, r=graydon | bors | -144/+383 | |
| This is a follow-up commit for #6041 (and depending on #6048). Also adding `#[inline(always)]` for almost every methods in `std::bigint`. | ||||
| 2013-04-28 | libstd: inlining almost every methods in bigint module. | gifnksm | -1/+86 | |
| 2013-04-28 | libstd: impl Integer for BigUint/BigInt. | gifnksm | -143/+297 | |
| Also remove abs() method from the non-trait impl for BigInt/BigUint. That method is provided in the Signed trait. | ||||
| 2013-04-27 | only use #[no_core] in libcore | Daniel Micay | -6/+0 | |
| 2013-04-26 | Add is_zero method to Zero | Brendan Zabarauskas | -19/+27 | |
| 2013-04-25 | Update impl of Round for Ratio | Brendan Zabarauskas | -20/+22 | |
| 2013-04-24 | Implement Signed and Unsigned traits and remove related predicate functions | Brendan Zabarauskas | -8/+25 | |
