summary refs log tree commit diff
path: root/src/libcore/io.rs
AgeCommit message (Collapse)AuthorLines
2012-12-13Replace some Eq impls with deriving_eqBrian Anderson-10/+1
2012-12-05test: Fix a bunch of test cases. rs=burningPatrick Walton-2/+2
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-30librustc: Make `a.b()` always a method call. r=nmatsakisPatrick Walton-1/+1
2012-11-28Register snapshotsBrian Anderson-13/+0
2012-11-25Ignore a should_fail test on windowsBrian Anderson-0/+1
2012-11-24[libs] Remove unread_byte method from core::io::ReaderTim Chevalier-7/+0
Method isn't used. See discussion on #2738 and #4031 Closes #2738
2012-11-24Fix a bug where read(buf, len) would fail if buf was big enough and succeed ↵Gareth Daniel Smith-1/+24
if it was too small ... which is the opposite of correct.
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+13
2012-11-18Made more stuff pure.Jesse Jones-1/+1
escape functions in char, io.with_str_reader, base64 and md5sum, cell.empty_cell and is_empty.
2012-11-04Add more doc-comments for Reader, ReaderUtil, Writer and WriterUtil (loosely ↵Gareth Daniel Smith-26/+115
associated with issue #2004).
2012-11-04Add size-specific int reading methods to ReaderUtil to match the existing ↵Gareth Daniel Smith-33/+250
int writing methods in WriterUtil (for issue #2004).
2012-11-03Fix a bug where .write([]) would always fail.Gareth Daniel Smith-3/+9
2012-10-23Remove uses of binary move - <- - from tests and librariesTim Chevalier-1/+1
2012-10-18libcore: minor code cleanup.Erick Tryzelaar-2/+2
This is minor and probably completely inconsequential to performance, but I find vec::map to be more clear than vec::each and a push.
2012-10-18libcore: call [u8] values bytes, not bufsErick Tryzelaar-46/+50
2012-10-18Rewrite io::ByteBuf into a structErick Tryzelaar-13/+15
2012-10-18Make with_bytes_reader/with_bytes_writer pureErick Tryzelaar-7/+11
2012-10-12Make moves explicit in core testsTim Chevalier-2/+2
2012-10-04Forbid deprecated modes again in coreTim Chevalier-0/+3
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-02Removing explicit uses of + modeTim Chevalier-9/+9
This removes most explicit uses of the + argument mode. Pending a snapshot, I had to remove the forbid(deprecated_modes) pragma from a bunch of files. I'll put it back! + mode still has to be used in a few places for functions that get moved (see task.rs) The changes outside core and std are due to the to_bytes trait and making the compiler (with legacy modes on) agree with the libraries (with legacy modes off) about modes.
2012-10-01De-export gc and io. Part of #3583.Graydon Hoare-48/+48
2012-09-28Add a demoded version of ptr::addr_ofTim Chevalier-7/+7
Currently, the new version is ptr::p2::addr_of and the old one is ptr::addr_of. This is kind of cheesy, but I need a snapshot before I can ditch the old version, since the pipe compiler generates calls to addr_of. core is converted over to use the new version, std is not.
2012-09-28core: Demode patternsBrian Anderson-3/+3
2012-09-28demode vecNiko Matsakis-3/+3
2012-09-26change vec::view sig to be sound (good catch @bblum)Niko Matsakis-2/+4
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-9/+9
2012-09-26Refactoring ReaderUtil trait, combining it with the traitless impl on Reader.Eric Holk-4/+13
2012-09-26Demode some of core::ioTim Chevalier-42/+44
2012-09-25Demode core::resultBrian Anderson-3/+3
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-12/+0
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-3/+3
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-5/+4
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+3
#[legacy_exports];
2012-09-20libcore: Make BytesWriters not require shared boxes.Patrick Walton-4/+12
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+12
2012-09-19core: Clean up crate docs and give all mods a brief descriptionBrian Anderson-2/+2
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-1/+1
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-2/+2
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-2/+2
2012-09-18core: Rename 'unsafe' mod to 'cast'Brian Anderson-1/+1
2012-09-18libcore: make a copyless io::BytesWriterErick Tryzelaar-30/+30
2012-09-15vec::u8 => vec::bytes (#3444)Erick Tryzelaar-4/+4
2012-09-15io::Reader::chars_from_buf => chars_from_bytes (#3444)Erick Tryzelaar-2/+2
2012-09-12Rename vec::unsafe to vec::rawBrian Anderson-3/+3
2012-09-12fixup mutability of vec::each, make iter_bytes pureNiko Matsakis-1/+1
also, change DVec() to work with imm vectors rather than mut ones
2012-09-10Make all remaining moves explicit in libcoreTim Chevalier-4/+4
2012-09-07Convert 'again' to 'loop'. Remove 'again' keywordBrian Anderson-1/+1
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-3/+3
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+1