about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2013-04-04Remove a android hackILyoan-19/+8
2013-04-03auto merge of #5704 : brson/rust/compiletest, r=luqmanabors-1/+1
2013-04-03auto merge of #5701 : metajack/rust/net-url-clone, r=thestingerbors-3/+3
2013-04-03auto merge of #5698 : Thiez/rust/de-mutfielding, r=pcwaltonbors-24/+22
This pull request removes some mut-fields from at_vec, str, vec, unstable, and cell. Sadly in case of Cell this required using either transmute_mut (2 instances) or changing the interface. I chose the former. Perhaps it would be a good idea to merge Cell and Option, and take that opportunity to change the interface to use '&mut self' instead of '&self' (which would enable removing the transmutations) for take and put_back. r?
2013-04-03auto merge of #5696 : thestinger/rust/hashmap, r=sanxiynbors-1305/+1301
This naming is free now that `oldmap` has finally been removed, so this is a search-and-replace to take advantage of that. It might as well be called `HashMap` instead of being named after the specific implementation, since there's only one. SipHash distributes keys so well that I don't think there will ever be much need to use anything but a simple hash table with open addressing. If there *is* a better way to do it, it will probably be better in all cases and can just be the default implementation. A cuckoo-hashing implementation combining a weaker hash with SipHash could be useful, but that won't be as general purpose - you would need to write a separate fast hash function specialized for the type to really take advantage of it (like taking a page from libstdc++/libc++ and just using the integer value as the "hash"). I think a more specific naming for a truly alternative implementation like that would be fine, with the nice naming reserved for the general purpose container.
2013-04-03Fix compiletest on windowsBrian Anderson-1/+1
2013-04-03auto merge of #5559 : jbclements/rust/change-to-tt-based-parsing, r=jbclementsbors-34/+123
Changes the parser to parse all streams into token-trees before hitting the parser proper, in preparation for hygiene. As an added bonus, it appears to speed up the parser (albeit by a totally imperceptible 1%). Also, many comments in the parser. Also, field renaming in token-trees (readme->forest, cur->stack).
2013-04-03Add Clone derivation for std::net::url types.Jack Moffitt-3/+3
2013-04-03Unstable didn't need transmute_mut after all.Matthijs Hofstra-4/+4
2013-04-03Removing mut fields from vec.rs, at_vec.rs, str.rs, unstable.rs, and cell.rs.Matthijs Hofstra-24/+22
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-519/+519
2013-04-03hashmap: rm linear namespaceDaniel Micay-927/+923
2013-04-03Make bench/noise.rs more idiomatic and 20x fasterBen Striegel-29/+32
2013-04-03Implement Clone for tuplesJames Miller-0/+17
2013-04-02auto merge of #5202 : dbaupp/rust/std-fileinput, r=graydonbors-0/+612
As per https://github.com/mozilla/rust/wiki/Note-wanted-libraries. Iterates over lines in a series of files, e.g. a basic `cat` ```rust use std::fileinput; fn main() { for fileinput::input |line| { io::println(line); } } ``` The API is essentially a subset of [Python's fileinput module](http://docs.python.org/3.3/library/fileinput.html), although the lack of default arguments and global mutable state means that there are extra functions to handle a few different cases (files from command line arguments, files from a vector, accessing current filename/line number). A few points that possibly require adjustment: - Most functions take vectors of `Path` (well, `Option<Path>`) rather than just `~str`, since this seems safer, and allows finer control without the number of different functions/methods increasing exponentially. - `pathify` has a stupid name. - I'm not quite sure how to mock tests that require external files: the tests in `libcore/io.rs` seem to indicate using a `tmp` subdirectory, so that's what I did, but I can't reliably build rust on this computer to test (sorry! although I have run the tests in just `fileinput.rs` after creating `./tmp/` manually). - The documentation I've written seems pretty crappy and not particularly clear. - Only UTF8 files are supported.
2013-04-02auto merge of #5674 : steveklabnik/rust/improve_reader_util_docs, r=catamorphismbors-40/+335
I filled out better descriptions for all of the necessary functions. r?
2013-04-02auto merge of #5673 : steveklabnik/rust/improve_io_docs, r=catamorphismbors-8/+68
When I submitted #5659, it apparently caused some test failures. Then, because I left it in my incoming rather than making a new branch, I deleted my commit. Let's try this again, this time, with its own branch so that I don't screw it up. r?
2013-04-03libstd: make fileinput tests pass.Huon Wilson-3/+5
2013-04-03libstd: implement io::Reader for fileinput.Huon Wilson-126/+271
2013-04-03libstd: implement fileinput.Huon Wilson-0/+465
Iterate over lines in a series of files. API (mostly) adopted from Python's fileinput module.
2013-04-02Remove excess trailing whitespace.Steve Klabnik-61/+61
2013-04-02remove trailing whitespaceSteve Klabnik-17/+17
2013-04-02Removed libcore/mutable.rs, Mut<T> is now dead.Matthijs Hofstra-96/+0
2013-04-02Removed all uses of Mut from workcache, replaced with @mutMatthijs Hofstra-72/+60
2013-04-02Removed mut-fields from Mut, removed borrow_const from MutMatthijs Hofstra-70/+7
2013-04-01Typo fix. u8 -> i8Steve Klabnik-1/+1
2013-04-01Improve docs for Core::ReaderUtil.Steve Klabnik-40/+335
I filled out better descriptions for all of the neccesary functions.
2013-04-01auto merge of #5669 : graydon/rust/tweaks, r=thestingerbors-1/+1
Just some minor cleanup of version strings and copyrights.
2013-04-01auto merge of #5667 : graydon/rust/remove-a-mode, r=catamorphismbors-1/+1
It seems nobody can figure out whether this is _supposed to_ make a difference anymore, and in testing it seems to work either way, so I removed it. One less alarming warning during a fresh build.
2013-04-01Improve documentation for core::io.Steve Klabnik-8/+68
2013-04-01tidy version numbers and copyright datesGraydon Hoare-1/+1
2013-04-01doc: Update tutorial description of coreBrian Anderson-1/+1
2013-04-01core: Update libc docs to clarify usageBrian Anderson-1/+13
2013-04-01remove stray mode on callback, seems to not change anythingGraydon Hoare-1/+1
2013-03-31auto merge of #5655 : thestinger/rust/arm, r=brsonbors-4/+4
Turns out @ isn't valid for the ARM assembler.
2013-04-01rt/arch/arm: fix syntax used for noexec stackDaniel Micay-4/+4
2013-03-31auto merge of #5653 : brson/rust/warnings, r=brsonbors-30/+21
2013-03-31Fix warningsBrian Anderson-30/+21
2013-03-31auto merge of #5647 : thestinger/rust/execstack, r=brsonbors-19/+91
Closes #5643
2013-03-31mark the assembly object stacks as non-executableDaniel Micay-19/+91
Closes #5643 This also removes the need to pass noexecstack to gcc, but that wasn't actually working anymore.
2013-03-31Fix underflow in char_range_at_reverseMarvin Löbel-2/+15
Added char_range_at_reverse underflow test
2013-03-30auto merge of #5637 : luqmana/rust/5423, r=brsonbors-5/+2
Fixes #5423.
2013-03-30auto merge of #5638 : luqmana/rust/5405, r=brsonbors-3/+49
#5405 Also, renames the confusingly named `use_new_rt` in `libcore/unstable/lang.rs`
2013-03-30Rename confusing var, use_new_rt -> use_old_rt.Luqman Aden-4/+4
2013-03-30Correct type signature for start lang item.Luqman Aden-1/+47
2013-03-30libsyntax: Update abi constants. Fixes #5423.Luqman Aden-5/+2
2013-03-30move dlist from core -> stdDaniel Micay-12/+6
Closes #3549
2013-03-30auto merge of #5636 : thestinger/rust/vim, r=luqmanabors-12/+14
2013-03-30auto merge of #5630 : erickt/rust/serial, r=ericktbors-759/+837
@nikomatsakis and I were talking about how the serializers were a bit too complicated. None of the users of With the `emit_option` and `read_option` functions, the serializers are now moving more high level. This patch series continues that trend. I've removed support for emitting specific string and vec types, and added support for emitting mapping types.
2013-03-30vim: use Operator group for 'as'Daniel Micay-1/+3