about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
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
2012-01-11Fix dependency bug iface-did-of-impl resolvingMarijn Haverbeke-1/+1
By simply not resolving that def id until the typeck pass. Closes #1494
2012-01-11Major clean-up of std::ioMarijn Haverbeke-311/+226
Use ifaces instead of objs, stop wrapping everything in two (or three) layers of no-value-added indirection, and remove some of the more pointless/outdated idioms from the code.
2012-01-11Switch run_program over to ifacesMarijn Haverbeke-47/+48
2012-01-11Convert std::sha1 and std::rand over to ifacesMarijn Haverbeke-38/+40
2012-01-11Convert std::deque over to an ifaceMarijn Haverbeke-52/+56
2012-01-11Implement std::map as an iface/impl instead of an objMarijn Haverbeke-85/+114
2012-01-09Fix rpath bug.Graydon Hoare-9/+12
2012-01-09Merge pull request #1470 from grahame/grahameBrian Anderson-20/+63
add new read_chars method, fix bug in read_char
2012-01-09Remove leftover comm.rs in stdMarijn Haverbeke-188/+1
(The actual comm module lives in core.)
2012-01-09add tests for io::readchars and io::readcharGrahame Bowland-7/+10
Additionally reformat so that 'make check' passes.
2012-01-08Declare MIT license in crate attributes, not BSDBrian Anderson-1/+1
The Rust License is actually the MIT license, not BSD
2012-01-09add new read_chars method, fix bug in read_charGrahame Bowland-20/+60
having a read_chars method is convenient and more efficient. the old read_char method had a bug due to re-use of the 'w' width variable as a loop counter and so was broken for wide characters, this patch fixes that.
2012-01-06simplify task implNiko Matsakis-4/+3
2012-01-06std: UntabifyBrian Anderson-10/+10
2012-01-06std: Add fs::homedirBrian Anderson-0/+48
Returns the home directory of the user as appropriate for the platform. Issue #1359
2012-01-06libstd: rename c_vec::size to len.Erick Tryzelaar-16/+15
2012-01-06libcore: add [u8] helper functions to vec.Erick Tryzelaar-0/+9
2012-01-06libstd: switch map to use libcore's hash functions.Erick Tryzelaar-2/+2
2012-01-05Merge branch 'master' into kmathStefan Plantikow-70/+71
Conflicts: src/libcore/float.rs
2012-01-05Moved generic float::min, max to core::math and cleaned up some importsStefan Plantikow-5/+1
2012-01-05Merge branch 'master' into kmathStefan Plantikow-20/+22
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-70/+71
And remove support for the old syntax
2012-01-05Express some list primitives in a way that doesn't copyMarijn Haverbeke-20/+22
It was somewhat embarassing that list::len copied its elements.
2012-01-05Merge branch 'master' into kmathStefan Plantikow-9/+210
Conflicts: src/libcore/cmath.rs
2012-01-04"str": rename "str_from_cstr" to "from_cstr" (analogous to the other "from_*")Lenny222-1/+1
2012-01-03Allow tail expressions even in no_value blocks. Type checkerNiko Matsakis-1/+1
will guarantee they have unit type.
2012-01-03Merge pull request #1392 from Lenny222/listBrian Anderson-4/+31
list: add "is_not_empty" requirement to "head" and "tail" (analogous to "vec")
2012-01-02Add 'copy' bounds to functions that were faultily accepted withoutMarijn Haverbeke-2/+2
Issue #1390
2012-01-01freebsd supportUser Jyyou-1/+175
2011-12-31removes std::mtypesStefan Plantikow-64/+0
2011-12-29list: use predicate to enforce non-empty requirementLenny222-4/+31
2011-12-28libstd: add bytes_reader and bytes_writerErick Tryzelaar-5/+24
This parallels nicely with string_reader and string_writer, but working with raw byte strings. I'm not quite sure if the return type for bytes_writer.get_bytes should be [u8] or [mutable u8] though, so I'm arbitrarily picking mutable for now.
2011-12-28libstd: Allow io writer to write mutable arraysErick Tryzelaar-6/+6