summary refs log tree commit diff
path: root/src/libextra/test.rs
AgeCommit message (Collapse)AuthorLines
2013-06-30Convert vec::{reverse, swap} to methods.Huon Wilson-1/+1
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-20/+19
2013-06-29'Borrow' stack closures rather than copying them (e.g., "|x|f(x)"), in prep ↵Ben Blum-3/+3
for making them noncopyable.
2013-06-28libextra: Fix even more merge fallout.Patrick Walton-3/+0
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-124/+124
implementations. This should allow fewer symbols to be exported.
2013-06-28Convert vec::{partition, partitioned} to methods.Huon Wilson-1/+1
2013-06-27Convert vec::{head, tail, init, last} (and similar fns) to methods.Huon Wilson-1/+1
2013-06-26auto merge of #7420 : mozilla/rust/rollup, r=thestingerbors-7/+7
2013-06-26Looser restrictions on what can be captured in unbounded traits.Ben Blum-1/+1
2013-06-26Refactor extra::term a bitKevin Ballard-7/+7
Move all the colors into a nested mod named color instead of prefixing with "color_". Define a new type color::Color, and make this a u16 instead of a u8 (to allow for easy comparisons against num_colors, which is a u16). Remove color_supported and replace it with num_colors. Teach fg() and bg() to "dim" bright colors down to the normal intensity if num_colors isn't high enough. Remove unnecessary copies, and fix a bug where a terminfo parse failure would try to use the wrong error and end up failing.
2013-06-23vec: remove BaseIter implementationDaniel Micay-3/+3
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-16auto merge of #7123 : huonw/rust/more-str, r=thestingerbors-2/+1
Moves all the remaining functions that could reasonably be methods to be methods, except for some FFI ones (which I believe @erickt is working on, possibly) and `each_split_within`, since I'm not really sure the details of it (I believe @kimundi wrote the current implementation, so maybe he could convert it to an external iterator method on `StrSlice`, e.g. `word_wrap_iter(&self) -> WordWrapIterator<'self>`, where `WordWrapIterator` impls `Iterator<&'self str>`. It probably won't be too hard, since it's already a state machine.) This also cleans up the comparison impls for the string types, except I'm not sure how the lang items `eq_str` and `eq_str_uniq` need to be handled, so they (`eq_slice` and `eq`) remain stand-alone functions.
2013-06-15rm vec::uniq_lenDaniel Micay-1/+1
2013-06-16std: continue improving the comparison trait impls for str.Huon Wilson-2/+1
This moves them all into the traits submodule, and delegates Ord to the TotalOrd instance. It also deletes the stand-alone lt, gt, ge and le functions.
2013-06-10std: remove str::contains in favour of the methodHuon Wilson-1/+1
2013-06-10std: replace str::find_str* with a methodHuon Wilson-2/+2
2013-06-04std::cell: Modernize constructorsPhilipp Brüschweiler-1/+1
Part of #3853
2013-06-03auto merge of #6826 : cmr/rust/terminfo, r=thestingerbors-7/+12
This will let *everyone* (non-windows, at least) who can see colors see the glorious colors rustc produces.
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-5/+4
2013-05-31extra::term overhaulCorey Richardson-7/+12
2013-05-31auto merge of #6833 : fdr/rust/fix-warnings, r=Aatchbors-3/+1
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-30Remove unnecessary 'use' formsDaniel Farina-3/+1
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-30Remove copy bindings from patterns.Niko Matsakis-6/+5
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-4/+18
2013-05-23cleanup warnings from libextraErick Tryzelaar-2/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+4
to libextra
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+966
This only changes the directory names; it does not change the "real" metadata names.