diff options
| author | bors <bors@rust-lang.org> | 2013-04-24 06:48:50 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-24 06:48:50 -0700 |
| commit | e26f992d5e199a1ff8c26733650d254d63be066a (patch) | |
| tree | c1aa3ef0f5e49f777912683ae95144541dd07cd1 /src/compiletest/errors.rs | |
| parent | c8ac057545f7b2edf1e488aa4562138a6ed7a096 (diff) | |
| parent | 9860fe10a19cc4997e58861df905f8dbe4de3c5b (diff) | |
| download | rust-e26f992d5e199a1ff8c26733650d254d63be066a.tar.gz rust-e26f992d5e199a1ff8c26733650d254d63be066a.zip | |
auto merge of #6036 : huonw/rust/core-less-at, r=nikomatsakis
From a cursory `git grep` this removes the last part of `core` that requires on `@` (other than `io` and the task local data section). It renames `RandRes` to ~~StdRng~~ `IsaacRng` and `XorShiftState` to `XorShiftRng` as well as moving their constructors to static methods. To go with this, it adds `rng()` which is designed to be used when the programmer just wants a random number generator, without caring about which exact algorithm is being used. It also removes all the `gen_int`, `gen_uint`, `gen_char` (etc) methods on `RngUtil` (by moving the defintions to the actual `Rand` instances). The replacement is using `RngUtil::gen`, either type-inferred or with an annotation (`rng.gen::<uint>()`). I tried to have the `Rng` and `RngUtil` traits exported by `core::prelude` (since `core::rand` (except for `random()`) is useless without them), but this caused [an explosion of (seemingly unrelated) `error: unresolved import`'s](https://gist.github.com/5451839).
Diffstat (limited to 'src/compiletest/errors.rs')
0 files changed, 0 insertions, 0 deletions
