about summary refs log tree commit diff
path: root/src/libcore/io.rs
AgeCommit message (Collapse)AuthorLines
2012-04-30Revert "Eliminate a copy in syntax::parse::new_parser_from_file"Tim Chevalier-18/+0
This reverts commit 2bb3b63ec4379b812aeceb690d78763ec55d3cbb. (I was confused.)
2012-04-30Eliminate a copy in syntax::parse::new_parser_from_fileTim Chevalier-0/+18
Fixing a FIXME turned out to be pretty involved. I added an io function that returns a unique boxed string (for the contents of a file) rather than a string, and went from there. Also made the src field of codemap a unique boxed string. This doesn't seem to make that much difference in amount of allocation according to valgrind (disappointingly), but I also had to introduce a copy somewhere else pending a new snapshot, so maybe that's it.
2012-04-25More slice use in vec, io, str, ebml, metadata encoder and decoder.Graydon Hoare-51/+111
2012-04-19Add a lint pass to check for while true { ... } loopsTim Chevalier-2/+2
And suggest changing them to loop { ... }. Had to fix the few remaining while true loops (in core::io). Closes #1962.
2012-04-19core: Move last_os_error from sys to osBrian Anderson-3/+3
2012-03-27Move some code over to iterator-for to see how it performs.Marijn Haverbeke-2/+2
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-9/+9
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-1/+1
2012-03-20Minor io fixlet to account for racing against last_os_error.Graydon Hoare-1/+1
2012-03-16core: Store reexporting result and either. Closes #1997Brian Anderson-0/+2
2012-03-15Comments only: issue numbers for FIXMEsTim Chevalier-9/+13
2012-03-15Put the OS error in the error string in io::mk_file_writer()Tim Chevalier-4/+2
2012-03-13implement deserialization, rename mk_mem_buffer() to mem_buffer()Niko Matsakis-3/+3
2012-03-13Name types after their modules instead of 't'Brian Anderson-6/+6
2012-03-12Libc/os/run/rand/io reorganization. Close #1373. Close #1638.Graydon Hoare-0/+776
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.