about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2012-02-01Remove native types from stdlibMarijn Haverbeke-56/+67
2012-01-31Change option::t to optionTim Chevalier-59/+59
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-31Rename str::loop_chars to str::all,Kevin Cantu-2/+2
rename str::loop_chars_sub to str::substr_all, and propagate this change to std::rope and rustdoc's calls to these
2012-01-31Require alts to be exhaustiveTim Chevalier-13/+28
middle::check_alt does the work. Lots of changes to add default cases into alts that were previously inexhaustive.
2012-01-30Change all ternary ops to if/then/elsePaul Woolcock-1/+1
All the files below had at least one instance of the ternary operator present in the source. All have been changed to the equivalent if/then/else expression.
2012-01-27Merge remote-tracking branch 'killerswan/fixing_strings_2'Brian Anderson-13/+20
Conflicts: src/comp/driver/driver.rs src/comp/middle/trans/base.rs src/comp/syntax/parse/lexer.rs
2012-01-27std: Long linesBrian Anderson-1/+2
2012-01-27Re-apply fixes brson made.Donovan Preston-4/+4
2012-01-27Implement timers.Donovan Preston-7/+18
2012-01-27Make occurs check in ty::fixup_vars more reliableMarijn Haverbeke-1/+1
It wouldn't detect cycles that went through several type vars before. Closes #1464
2012-01-26std: Fix types in uvtmp testsBrian Anderson-4/+4
2012-01-26Shuffle around to work with rust-spidermonkeyDonovan Preston-14/+21
2012-01-25(TEMPORARY) Break something by making io::mem_buffer_str UTF-8 safeKevin Cantu-1/+1
2012-01-25Replacing str::unsafe_from_bytes with str::from_bytes (part 6)Kevin Cantu-1/+4
2012-01-25Replacing str::unsafe_from_bytes with str::from_bytes (part 5)Kevin Cantu-3/+3
2012-01-25Replacing str::unsafe_from_bytes with str::from_bytes (part 1)Kevin Cantu-9/+13
2012-01-23s/block()/fn()/gNiko Matsakis-32/+32
2012-01-22std: Add some hacks to use libuvBrian Anderson-1/+151
2012-01-21use u64 and not uint; otherwise shift results are undef. in 32 bitNiko Matsakis-7/+7
Fixes #1605.
2012-01-21update to use u64; u32 has undefined resultsNiko Matsakis-1/+6
2012-01-21std: Remove extfmt. Has been moved to core. Closes #1600Brian Anderson-455/+1
2012-01-21issue #1352: change param order on {std,core}::extfmt::str_init_elt to ↵Graham Fawcett-4/+4
mirror vec::init_elt.
2012-01-21issue #1352: change param order on vec::init_elt, putting block in final ↵Graham Fawcett-18/+18
position. To match the init_fn() and init_fn_mut() changes.
2012-01-21fix #1352: change param order on vec::init_fn (and vec::init_fn_mut), ↵Graham Fawcett-2/+2
putting block in final position.
2012-01-19Additional ; to , changes, disable "tag" and ";" in parser. Close #1430. ↵Graydon Hoare-7/+7
Close #1428.
2012-01-19lib: ';' to ',' in enums in more placesPatrick Walton-8/+8
2012-01-19lib: ";" to "," in enumsPatrick Walton-67/+67
2012-01-19libcore: Use 4x the number of scheduler threads for testingBrian Anderson-1/+5
An arbitrary number. I've done no measurements but it's intended to overcome the effects of tasks randomly being scheduled to threads and no work stealing. If scheduler threads == 1 then we just use a single test task.
2012-01-19libcore: Do less blocking in the test runnerBrian Anderson-41/+56
2012-01-19stdlib: "tag" -> "enum"Patrick Walton-39/+39
2012-01-19libstd: Long linesBrian Anderson-2/+2
2012-01-19Use fn~ to simplify the core::test interfaceBrian Anderson-70/+44
2012-01-19Remove support for the '.' after a nullary tag in a patternTim Chevalier-3/+3
(Commit also includes lots of changes to remove '.'s that a git merge messed up, or else it was monkeys.)
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-104/+104
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-19libstd: Revert an integer type castingHaitao Li-1/+4
Otherwise, rustctest failed by a segv fault.
2012-01-19rustc: Use integer from ctypes consistentlyHaitao Li-2/+6
2012-01-19Use ctypes in native function declarationsHaitao Li-6/+8
2012-01-17libstd: Move std tests into libstdBrian Anderson-0/+2925
2012-01-17libstd => libcoreLenny222-30/+1
2012-01-17spin-off rustdocs tuple code to libstdLenny222-1/+30
2012-01-17Allow omission of the '.' after nullary tag patternsTim Chevalier-7/+7
This commit allows patterns like: alt x { some(_) { ... } none { } } without the '.' after none. The parser suspends judgment about whether a bare ident is a tag or a new bound variable; instead, the resolver disambiguates. This means that any code after resolution that pattern-matches on patterns needs to call pat_util::normalize_pat, which consults an environment to do this disambiguation. In addition, local variables are no longer allowed to shadow tag names, so this required changing some code (e.g. renaming variables named "mut", and renaming ast::sub to subtract). The parser currently accepts patterns with and without the '.'. Once the compiler and libraries are changed, it will no longer accept the '.'.
2012-01-17Add an std::md4 moduleMarijn Haverbeke-0/+111
2012-01-14libstd: Remove util::voidBrian Anderson-5/+0
2012-01-14libstd: Remove util::orb. Redundant with core::boolBrian Anderson-5/+0
2012-01-13Remove workaround for issue #1494Marijn Haverbeke-7/+1
We have a snapshot that includes the fix.
2012-01-13distinguish "any closure" and "stack closure" (block)Niko Matsakis-2/+2
2012-01-13make "native fn" the type for bare functions, remove fn exprsNiko Matsakis-14/+14
2012-01-13deprecate fn exprs and the fn() type, preferring fn@ and native fnNiko Matsakis-6/+6
2012-01-11libstd: Remove a bogus link_name attributeBrian Anderson-1/+0
2012-01-11rustc: Don't allow empty link_name when nolink attribute is presentBrian Anderson-4/+0
Closes #1326