| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-08-19 | Add externfn macro and correctly label fixed_stack_segments | Niko Matsakis | -0/+6 | |
| 2013-08-18 | auto merge of #8558 : kballard/rust/xorshift-seed, r=cmr | bors | -6/+15 | |
| Fixes #8359. | ||||
| 2013-08-16 | Give XorShiftRng::new() a random seed | Kevin Ballard | -6/+15 | |
| Fixes #8359. | ||||
| 2013-08-16 | doc: correct spelling in documentation. | Huon Wilson | -1/+1 | |
| 2013-08-15 | auto merge of #8491 : robertknight/rust/7722-reservoir_sampling, r=graydon | bors | -0/+56 | |
| Fixes #7722 I had a couple of queries: - Should this return an array or an iterator? - Should this be a method on iterators or on the rng? I implemented it in RngUtils as it seemed to belong with shuffle(). | ||||
| 2013-08-13 | Add RngUtils::sample() method for reservoir sampling from iterators | Robert Knight | -0/+56 | |
| 2013-08-12 | Forbid pub/priv where it has no effect | Alex Crichton | -2/+2 | |
| Closes #5495 | ||||
| 2013-08-07 | Add weak_rng to get a random algo that puts more emphasis on speed than security | Jordi Boggiano | -0/+10 | |
| 2013-08-07 | Document rand module with more emphasis on cryptographic security | Jordi Boggiano | -2/+12 | |
| 2013-08-05 | Updated std::Option, std::Either and std::Result | Marvin Löbel | -2/+2 | |
| - Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead | ||||
| 2013-08-03 | remove obsolete `foreach` keyword | Daniel Micay | -6/+6 | |
| this has been replaced by `for` | ||||
| 2013-08-03 | replace all remaining `for` with `foreach` or `do` | Daniel Micay | -6/+9 | |
| 2013-08-02 | librustc: Disallow "unsafe" for external functions | Patrick Walton | -6/+5 | |
| 2013-08-02 | replace `range` with an external iterator | Daniel Micay | -1/+2 | |
| 2013-08-01 | std: Change `Times` trait to use `do` instead of `for` | blake2-ppc | -3/+3 | |
| Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead. | ||||
| 2013-08-01 | migrate many `for` loops to `foreach` | Daniel Micay | -7/+6 | |
| 2013-07-24 | Change 'print(fmt!(...))' to printf!/printfln! in src/lib* | Birunthan Mohanathas | -11/+11 | |
| 2013-07-22 | std: add #[bench] benchmarks for rand. | Graydon Hoare | -1/+35 | |
| 2013-07-22 | new snapshot | Daniel Micay | -3/+0 | |
| 2013-07-20 | librustc: Remove `pub extern` and `priv extern` from the language. | Patrick Walton | -7/+8 | |
| Place `pub` or `priv` on individual items instead. | ||||
| 2013-07-20 | auto merge of #7894 : pcwalton/rust/and-pointers-in-at-boxes, r=brson | bors | -1/+1 | |
| r? @brson | ||||
| 2013-07-18 | librustc: Forbid `&` pointers (other than `&'static`) inside `@` boxes. | Patrick Walton | -1/+1 | |
| This makes custom borrowing implementations for custom smart pointers sound. | ||||
| 2013-07-18 | Fix warnings in libstd and librusti tests | blake2-ppc | -1/+0 | |
| 2013-07-17 | librustc: Remove all uses of the `Copy` bound. | Patrick Walton | -6/+6 | |
| 2013-07-17 | librustc: Remove all uses of "copy". | Patrick Walton | -16/+17 | |
| 2013-07-14 | Make TLS keys actually take up space | Alex Crichton | -1/+1 | |
| If the TLS key is 0-sized, then the linux linker is apparently smart enough to put everything at the same pointer. OSX on the other hand, will reserve some space for all of them. To get around this, the TLS key now actuall consumes space to ensure that it gets a unique pointer | ||||
| 2013-07-14 | Purge the last remnants of the old TLS api | Alex Crichton | -9/+7 | |
| Closes #3273 | ||||
| 2013-07-12 | Remove the global 'vec::to_owned' function | Alex Crichton | -1/+1 | |
| 2013-07-11 | auto merge of #7677 : alexcrichton/rust/tls-gc, r=pcwalton | bors | -2/+2 | |
| cc #6004 and #3273 This is a rewrite of TLS to get towards not requiring `@` when using task local storage. Most of the rewrite is straightforward, although there are two caveats: 1. Changing `local_set` to not require `@` is blocked on #7673 2. The code in `local_pop` is some of the most unsafe code I've written. A second set of eyes should definitely scrutinize it... The public-facing interface currently hasn't changed, although it will have to change because `local_data::get` cannot return `Option<T>`, nor can it return `Option<&T>` (the lifetime isn't known). This will have to be changed to be given a closure which yield `&T` (or as an Option). I didn't do this part of the api rewrite in this pull request as I figured that it could wait until when `@` is fully removed. This also doesn't deal with the issue of using something other than functions as keys, but I'm looking into using static slices (as mentioned in the issues). | ||||
| 2013-07-11 | Remove all external requirements of `@` from TLS | Alex Crichton | -1/+1 | |
| Closes #6004 | ||||
| 2013-07-10 | Fixed examples | korenchkin | -19/+31 | |
| The examples were still using `core::` instead of `std::` All of the examples needed a `use std::rand;` at the top to compile Most of the examples had `rng = rand::rng();` instead of `let mut rng = rand::rng();` | ||||
| 2013-07-09 | Rename local_data methods/types for less keystrokes | Alex Crichton | -2/+2 | |
| 2013-07-08 | Replaces the free-standing functions in f32, &c. | Jens Nockert | -1/+2 | |
| The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead. | ||||
| 2013-07-04 | Convert vec::{as_imm_buf, as_mut_buf} to methods. | Huon Wilson | -2/+2 | |
| 2013-07-01 | rustc: add a lint to enforce uppercase statics. | Huon Wilson | -5/+5 | |
| 2013-06-30 | Convert vec::{reverse, swap} to methods. | Huon Wilson | -1/+1 | |
| 2013-06-28 | Rewrite each_path to allow performance improvements in the future. | Patrick Walton | -0/+1 | |
| Instead of determining paths from the path tag, we iterate through modules' children recursively in the metadata. This will allow for lazy external module resolution. | ||||
| 2013-06-28 | librustc: Disallow "mut" from distributing over bindings. | Patrick Walton | -1/+2 | |
| This is the backwards-incompatible part of per-binding-site "mut". | ||||
| 2013-06-26 | auto merge of #7216 : kballard/rust/task_rng, r=brson | bors | -10/+6 | |
| 2013-06-23 | vec: remove BaseIter implementation | Daniel Micay | -4/+5 | |
| I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway. | ||||
| 2013-06-20 | Make task_rng() return @mut R instead of @@mut R | Kevin Ballard | -10/+6 | |
| 2013-06-18 | replace #[inline(always)] with #[inline]. r=burningtree. | Graydon Hoare | -3/+3 | |
| 2013-06-16 | Add copies to type params with Copy bound | Niko Matsakis | -3/+3 | |
| 2013-06-13 | Revert "std: convert {vec,str}::to_owned to methods." | Brian Anderson | -1/+1 | |
| This fixes the strange random crashes in compile-fail tests. This reverts commit 96cd61ad034cc9e88ab6a7845c3480dbc1ea62f3. Conflicts: src/librustc/driver/driver.rs src/libstd/str.rs src/libsyntax/ext/quote.rs | ||||
| 2013-06-12 | std: convert {vec,str}::to_owned to methods. | Huon Wilson | -1/+1 | |
| 2013-06-09 | std: remove each_char* fns and methods from str, replaced by iterators. | Huon Wilson | -1/+2 | |
| 2013-06-05 | rand example fixup | John Clements | -1/+1 | |
| 2013-06-04 | librustc: Disallow multiple patterns from appearing in a "let" declaration. | Patrick Walton | -9/+10 | |
| You can still initialize multiple variables at once with "let (x, y) = (1, 2)". | ||||
| 2013-06-01 | Remove all uses of `pub impl`. rs=style | Patrick Walton | -11/+11 | |
| 2013-05-30 | Require documentation by default for libstd | Alex Crichton | -0/+5 | |
| Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand. | ||||
