about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2013-03-11auto merge of #5303 : brson/rust/newsched4, r=brsonbors-252/+2788
r? Followup to #5022. This is the same, but everything is in `core::rt` now. `std::uv_ll` is moved to `core::unstable::uvll`, with the intent that it eventually move into its own crate (blocked on #5192 at least). I've had to disable the uv tests because of #2064. All of `core::rt` is disabled on platforms that aren't mac or linux until I complete the windows thread local storage bindings and ARM context switching. My immediate next priorities will be to fix #2064 and clean up the uv bindings, get everything building on all platforms.
2013-03-11Fix std::getopts::opts_present() to check value.Ben Kelly-4/+5
Currently the opts_present() function only checks to see if the option is configured in the match, but doesn't actually check to see if the option value has been set. This means that opt_present('h') may return false while opts_present([~'h']) returns true. Add a test case to catch this condition and fix opts_present() to check the value before returning true. Note, there is another API difference between these two functions that this does not address. Currently if you pass a non-configured option to opt_present() the program will fail!(), but opts_present() simply returns false. If it is acceptable to standardize on the fail!() then opts_present() should probably be implemented in terms of the opt_present() function.
2013-03-11Implement Add on Option typesBen Striegel-0/+40
This will allow you to use the + operator to add together any two Options, assuming that the contents of each Option likewise implement +. So Some(4) + Some(1) == Some(5), and adding with None leaves the other value unchanged. This might be monoidic? I don't know what that word means!
2013-03-11core: Add rt mod and add the new scheduler codeBrian Anderson-252/+2788
2013-03-11treemap: fix a bug in the union implementationDaniel Micay-0/+4
2013-03-11treemap: add more set testsDaniel Micay-0/+10
2013-03-11treemap: refactor the set operation testsDaniel Micay-80/+34
2013-03-11Work on 0.6 release notesBrian Anderson-2/+79
2013-03-11auto merge of #5292 : thestinger/rust/nil, r=graydonbors-1/+6
2013-03-11auto merge of #5322 : brson/rust/4812, r=brsonbors-149/+382
Supersedes #5013
2013-03-11core: Convert obsolete fn syntaxBrian Anderson-2/+2
2013-03-11core: convert asserts to fail_unless!Jeff Olson-5/+5
2013-03-11core: link pthreads explicitly in linux buildJeff Olson-0/+1
2013-03-11core: formatting appeasementJeff Olson-3/+5
2013-03-11core: fix broken tests on windowsJeff Olson-3/+3
2013-03-11core: change import of exchange_alloc for win32 os::_list_dirJeff Olson-1/+1
2013-03-11rt/core: port os::list_dir to rust ref #4812Jeff Olson-86/+174
2013-03-11core: rt/core: impl os::env() in rust ref #4812Jeff Olson-40/+196
2013-03-11rt/core: impl os::getcwd() in rust ref #4812Jeff Olson-22/+8
2013-03-11More descriptive error messages for debug info testsBrian Leibig-2/+2
2013-03-11Re-enable struct value printing in debug info tests with gdb pretty printing offBrian Leibig-10/+9
2013-03-11Disable struct value printing in debug info testsBrian Leibig-8/+4
This is due to the way different versions of gdb print out structs: older versions have them always spread out with fields on different lines, while newer versions will compactly print them on one line. This makes it hard for the output checker to verify the expected output.
2013-03-11Debuginfo revampBrian Leibig-98/+217
2013-03-11auto merge of #5305 : brson/rust/mut_buf_as_slice, r=brsonbors-0/+14
r? Like `buf_as_slice` but for mutable pointers and slices.
2013-03-11core: Add vec::raw::mut_buf_as_sliceBrian Anderson-0/+14
2013-03-11auto merge of #5318 : jdm/rust/deriving_cell, r=pcwaltonbors-0/+1
r? @pcwalton
2013-03-11Add deriving_eq to Cell.Josh Matthews-0/+1
2013-03-11treemap: add more tests for set differenceDaniel Micay-16/+21
2013-03-11treemap: inline the TreeSet wrappersDaniel Micay-12/+20
2013-03-11treemap: indentation fixesDaniel Micay-14/+14
2013-03-11treemap: make set_advance publicDaniel Micay-2/+2
2013-03-11auto merge of #5314 : jld/rust/adt-simplification, r=pcwaltonbors-77/+40
Struct and enum representations have some complicatedness that's no longer needed. Now that everything's in one place and has access to anything we'd want to know about the type, flatten some of that out. Slight changes to representations in some cases.
2013-03-11auto merge of #5291 : pcwalton/rust/drop-lint, r=pcwaltonbors-1190/+1138
r? @nikomatsakis
2013-03-11librustc: Lint the old `drop` destructor notation offPatrick Walton-81/+51
2013-03-11librustc: Remove old-style operator overloadingPatrick Walton-14/+34
2013-03-11test: Fix tests. rs=testsPatrick Walton-32/+32
2013-03-11libsyntax: Stop parsing newtype enumsPatrick Walton-10/+9
2013-03-11doc: Remove documentation on newtype enums.Patrick Walton-44/+36
2013-03-11libsyntax: Remove newtype enums from libsyntax. rs=deenumPatrick Walton-40/+14
2013-03-11librustc: Remove newtype enums from librustcPatrick Walton-37/+41
2013-03-11libstd: Remove all newtype enums from std and core.Patrick Walton-17/+42
2013-03-11test: Remove newtype enums from the test suite. rs=deenumPatrick Walton-110/+42
2013-03-11libsyntax: Stop parsing bare functions in preparation for switching them overPatrick Walton-9/+40
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-812/+813
2013-03-11auto merge of #5122 : sanxiyn/rust/vec-match-tail-2, r=nikomatsakisbors-153/+276
Incorporated @nikomatsakis's comments from #4748. Fix #4635.
2013-03-11Add one more test for vector destructuringSeo Sanghyeon-1/+42
2013-03-11Implement vector destructuring from tailSeo Sanghyeon-159/+241
2013-03-11Get rid of the `Unit` enum representation.Jed Davis-30/+10
The only thing we really lose is that C-like enums with one variant and a non-zero discriminant now take up space, but I do not think this is a common usage. As previously noted, that was mostly there for transitional compatibility with the pre-adt.rs codebase.
2013-03-10Simplify struct representation.Jed Davis-48/+31
Out goes the extra layer of struct wrapping; the destructedness flag is added to the end of the struct. This means that, if the struct previously had alignment padding at the end, the flag will live there instead of increasing the struct size.
2013-03-10auto merge of #5308 : wanderview/rust/std-getopts-rustdoc-fix, r=luqmanabors-5/+8
There were three issues effecting the example in the getopts rustdoc: 1. The blockquote was incorrectly formatted. Fixed by switching to using an explicit markdown code section with ```. 2. The `fail fail_str(f)` would not compile. Fixed by using `fail!()` instead of `fail`. 3. The line `matches.free[0]` produced a compile error about moving from an immutable vector. Fix by using `copy`.