about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2013-05-03core: Warning policeTim Chevalier-1/+3
2013-05-03rustpkg: Implement install commandTim Chevalier-0/+37
The install command should work now, though it only installs in-place (anything else has to wait until I implement RUST_PATH). Also including: core: Add remove_directory_recursive, change copy_file Make copy_file preserve permissions, and add a remove_directory_recursive function.
2013-05-03Remove pub from core::{unicode,cmath,stackwalk,rt}Alex Crichton-23/+22
2013-05-03Be more careful about the order in which we read the next fieldNiko Matsakis-6/+25
during task annihilation, since it is easy to tread on freed memory.
2013-05-03auto merge of #6217 : Sodel-the-Vociferous/rust/export-ToBytes, r=graydonbors-2/+1
2013-05-03lang: um, actually set locking bits! this code got lost.Niko Matsakis-1/+11
2013-05-03auto merge of #6216 : Sodel-the-Vociferous/rust/dralston-6146, r=graydonbors-1/+1
cc #6146
2013-05-03auto merge of #6213 : kud1ing/rust/patch-1, r=graydonbors-0/+2
...re/index.html
2013-05-03auto merge of #6046 : brson/rust/io, r=graydonbors-278/+1239
r? @pcwalton Sorry this is so big, and sorry the first commit is just titled 'wip'. Some interesting bits * [LocalServices](https://github.com/brson/rust/commit/f9069baa70ea78117f2087fe6e359fb2ea0ae16a) - This is the set of runtime capabilities that *all* Rust code should expect access to, including the local heap, GC, logging, unwinding. * [impl Reader, etc. for Option](https://github.com/brson/rust/commit/5fbb0949a53a6ac51c6d9b187ef4c464e52ae536) - Constructors like `File::open` return Option<FileStream>. This lets you write I/O code without ever unwrapping an option. This series adds a lot of [documentation](https://github.com/brson/rust/blob/io/src/libcore/rt/io/mod.rs#L11) to `core::rt::io`.
2013-05-03auto merge of #6185 : gifnksm/rust/prelude-from_str, r=graydonbors-14/+10
`core::prelude` re-exports `core::to_str::ToStr`, but doesn't re-export `core::from_str::FromStr`. That is inconsistent.
2013-05-03Change borrow debugging so it is disabled by -ONiko Matsakis-57/+66
2013-05-03FIX: Export to_bytes::ToBytesDaniel Ralston-2/+1
2013-05-03Add core::cmp::Equiv to preludeDaniel Ralston-1/+1
2013-05-03Remove extra `#[cfg(stage0)]`gifnksm-3/+0
2013-05-03Add a brief description to show up in ↵kud1ing-0/+2
http://static.rust-lang.org/doc/core/index.html
2013-05-02Merge remote-tracking branch 'brson/io' into incomingBrian Anderson-278/+1239
Conflicts: mk/rt.mk src/libcore/run.rs
2013-05-02auto merge of #6140 : Dretch/rust/run-with-rust, r=brsonbors-64/+474
Even more of `core::run` could be rust-ified -- I believe that access to the C extern environ can be done with rust now. I did not do this because some special casing is needed for OSX and I don't have a mac I can test with. I think this will also fix #6096.
2013-05-02core: Wire up the unwinder to newsched againBrian Anderson-17/+18
This was some merge fallout
2013-05-02free the borrow list propertly instead of crashingNiko Matsakis-1/+15
2013-05-02Fix some issues with test_destroy_actually_kills:gareth-14/+38
- it is now cross platform, instead of just unix - it now avoids sleeping (fixing issue #6156) - it now calls force_destroy() when force = true (was a bug)
2013-05-02fix numerous dynamic borrow failuresNiko Matsakis-10/+11
2013-05-02auto merge of #6184 : kud1ing/rust/master, r=sanxiynbors-0/+2
2013-05-02Remove errant trailing whitespace.gareth-1/+1
2013-05-02Convert most of rust_run_program.cpp to rust (issue #2674).gareth-50/+436
2013-05-02auto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakisbors-15/+132
This adds #[inline] to many very common string routines (e.g. `len`). It also rewrites `repeat` to not use `+=` and make it O(n) rather than O(n^2), and also concat/connect(_slices) to reduce the overhead of reallocations, and constantly `set_len`ing (etc) in `push_str`. (The added complexity might not be worth the 20% speedup though.)
2013-05-02auto merge of #6177 : gifnksm/rust/iter-chain, r=thestingerbors-6/+15
`T: Iterator<A>` and `U: Iterator<A>` should be able to `chain` whether `T` and `U` are same or not.
2013-05-02libcore: Export core::from_str::FromStr from core::preludegifnksm-12/+11
2013-05-02The following code was generated by "src/etc/unicode.py"kud1ing-0/+2
2013-05-02libcore: optimize string joining routines.Huon Wilson-12/+106
This makes concat/connect/connect_slices about 20% faster, and takes `repeat` from O(n^2) to O(n), and lowers the constant factor.
2013-05-02core: inlining on common functionsHuon Wilson-3/+26
2013-05-02More cases of [cfg(test)] instead of [test].Felix S. Klock II-1/+1
2013-05-02mod items need to be marked with `cfg(test)` not `test`.Felix S. Klock II-1/+1
2013-05-02mod items need to be marked with `cfg(test)` not `test`.Felix S. Klock II-2/+2
2013-05-01auto merge of #6151 : bjz/rust/local-variable-cleanup, r=brsonbors-128/+0
I have noticed these comments scattered across the codebase. They appear to be vestigial Emacs formatting settings and they don't appear in newer files. For the sake of consistency it's probably best to remove them.
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-128/+0
2013-05-01auto merge of #6173 : sammykim/rust/doc-vec, r=yichoibors-4/+4
I think whether vector element is mutable is decided by whether vector reference is mutable.
2013-05-02libcore: Make `ChainIterator` take two different-typed `Iterator`s.gifnksm-6/+15
2013-05-01lang: fix code for maintaining borrow listNiko Matsakis-10/+40
2013-05-01auto merge of #6162 : graydon/rust/random-retry, r=graydonbors-0/+566
Sample from the normal and exponential distributions using the Ziggurat algorithm.
2013-05-01core: add more debugging printouts to borrowingNiko Matsakis-5/+18
2013-05-01libcore: add N(0,1) and Exp(1) distributions to core::rand.Huon Wilson-0/+566
Sample from the normal and exponential distributions using the Ziggurat algorithm.
2013-05-01glob_t should be public on all platformsJesse Luehrs-2/+2
2013-05-01add a higher level glob() function to osJesse Luehrs-0/+83
this could probably use expansion - it just uses all of the default options, which is usually what we want, but not always. maybe add a separate function that takes more options?
2013-05-01libc bindings for glob.hJesse Luehrs-2/+106
only tested on linux/x86_64, but i got the values for other platforms from their system header files. no bindings for win32, because win32 doesn't include glob.h. also, glob() takes a callback for error handling, but i'm just making this a *c_void for now, since i don't know how to represent c calling back into rust (if that's even currently possible).
2013-05-01wip---work on making rooting work properlyNiko Matsakis-11/+64
2013-05-01auto merge of #6148 : erickt/rust/remove-drop, r=pcwaltonbors-18/+15
The drop block has been deprecated for quite some time. This patch series removes support for parsing it and all the related machinery that made drop work. As a side feature of all this, I also added the ability to annote fields in structs. This allows comments to be properly associated with an individual field. However, I didn't update `rustdoc` to integrate these comment blocks into the documentation it generates.
2013-05-01pipes: use finally to fix pipes::try_recvErick Tryzelaar-18/+13
2013-05-01core: Remove use of deprecated `drop`Erick Tryzelaar-4/+6
2013-05-01add an option to debug borrows (RUST_DEBUG_BORROW) so you canNiko Matsakis-9/+75
find out where the offending borrow occurred. This ... still needs some work.
2013-05-01rustc: print out filename/line-number when a borrow failsNiko Matsakis-6/+19