about summary refs log tree commit diff
path: root/src/libstd/test.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-966/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-22/+22
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-7/+7
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-2/+2
2013-05-14Use 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-11clean up the last bit of warningsCorey Richardson-1/+1
2013-05-11Warning policeTim Chevalier-2/+3
2013-05-09auto merge of #6349 : thestinger/rust/explicit_copy, r=thestingerbors-12/+12
I removed some of the copies, but most are just made explicit. The usage in `libcore` was already fixed, but the attribute was only set to warn (not removed).
2013-05-09remove vecs_implicitly_copyable from libstd/libcoreDaniel Micay-12/+12
2013-05-09auto merge of #6345 : seanmoon/rust/fix-typos, r=sanxiynbors-1/+1
Hi there, Really enjoying Rust. Noticed a few typos so I searched around for a few more--here's some fixes. Ran `make check` and got `summary of 24 test runs: 4868 passed; 0 failed; 330 ignored`. Thanks! Sean
2013-05-09libstd: rename vec::each(var) to var.eachYoungmin Yoo-3/+3
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-1/+1
2013-05-08libcore: Remove mutable fields from the task builder APIPatrick Walton-3/+6
2013-05-08libcore: Remove mutable fields from rand.Patrick Walton-1/+1
2013-05-09Fix typosSean Moon-1/+1
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-9/+0
2013-04-27only use #[no_core] in libcoreDaniel Micay-2/+0
2013-04-24libcore: unify `gen_<type>` methods on `rand::RngUtil` into the generic `gen`.Huon Wilson-16/+1
This moves all the basic random value generation into the Rand instances for each type and then removes the `gen_int`, `gen_char` (etc) methods on RngUtil, leaving only the generic `gen` and the more specialised methods. Also, removes some imports that are redundant due to a `use core::prelude::*` statement.
2013-04-24libcore: remove @Rng from rand, and use traits instead.Huon Wilson-1/+1
Also, rename RandRes -> IsaacRng, and make the constructors static methods.
2013-04-20std: remove unused 'mut' variablesAlex Crichton-2/+1
2013-04-18core::comm: Modernize constructors to use `new`Brian Anderson-5/+5
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-4/+4
pub mod or pub fn).
2013-04-08Removing some mutable fields in libstdAlex Crichton-29/+32
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-12/+12
2013-03-28Removing unused importsAlex Crichton-1/+1
2013-03-26librustc: Enforce that `extern mod` directives come first, then `use` ↵Patrick Walton-1/+1
directives, then items. Resolve them in this order as well.
2013-03-26option: rm functions that duplicate methodsDaniel Micay-1/+1
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-2/+2
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-2/+2
2013-03-22std: replace uses of old deriving attribute with new oneAndrew Paseltiner-2/+2
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-1/+5
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-1/+1
notation. rs=delifetiming
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-9/+12
2013-03-14Remove unused imports in stdILyoan-1/+0
2013-03-07test: Fix tests.Patrick Walton-1/+3
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-13/+13
2013-03-07libstd: Remove `extern mod { ... }` from libstd. rs=deexterningPatrick Walton-3/+7
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-03-02libstd: Remove `fn@`, `fn~`, and `fn&` from libstd. rs=defunPatrick Walton-8/+8
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-6/+5
imports
2013-02-28Remove code that was awaiting a snapshotTim Chevalier-24/+0
* Disallow structural records everywhere * Remove all #[cfg(stage0)] stuff * Remove the last deprecated modes in libcore * Un-xfail a test
2013-02-27libsyntax: Forbid mutable vectors. rs=demutingPatrick Walton-1/+1
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-2/+2
2013-02-15libstd: Get rid of `move`.Luqman Aden-15/+15
2013-02-14Remove all final references to die!Nick Desaulniers-1/+1
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-7/+7
2013-02-13rustc and std: teach about #[bench], modernize to use quote_expr! some.Graydon Hoare-78/+435
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-93/+116
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-04std: Stamp out structural recordsTim Chevalier-31/+32
See #4665
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2