about summary refs log tree commit diff
path: root/src/libcore/io.rs
AgeCommit message (Collapse)AuthorLines
2013-03-20add stage3 markers where necessary for dist-snapGraydon Hoare-0/+2
2013-03-20core: add Reader, Writer, ReaderUtil, WriterUtil to prelude. Close #4182.Graydon Hoare-1/+3
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-2/+2
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-18libsyntax: Stop parsing old lifetimes, except for the ones on data type ↵Patrick Walton-1/+1
declarations.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-1/+1
notation. rs=delifetiming
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-14/+15
2013-03-11Remove uses of logBrian Anderson-6/+5
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-15/+15
2013-03-08Fix dvec-related fallout in testsAlex Crichton-5/+3
2013-03-08core: Remove uses of DVec in io/reprAlex Crichton-20/+14
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-40/+40
2013-03-07libcore: Remove `extern mod { ... }` from libcore. rs=deexterningPatrick Walton-5/+10
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-2/+2
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-03-06Make object types not implement associated trait. Fixes #5087.Niko Matsakis-2/+32
2013-03-06add floating-point read/write to Reader/WriterJihyun Yu-0/+108
2013-03-05auto merge of #5179 : alexcrichton/rust/default-warn-unused-import, r=graydonbors-4/+3
I've found that unused imports can often start cluttering a project after a long time, and it's very useful to keep them under control. I don't like how Go forces a compiler error by default and it can't be changed, but I certainly want to know about them so I think that a warn is a good default. Now that the `unused_imports` lint option is a bit smarter, I think it's possible to change the default level to warn. This commit also removes all unused imports throughout the compiler and libraries (500+). The only odd things that I ran into were that some `use` statements had to have `#[cfg(notest)]` or `#[cfg(test)]` based on where they were. The ones with `notest` were mostly in core for modules like `cmp` whereas `cfg(test)` was for tests that weren't part of a normal `mod test` module.
2013-03-04Remove unused imports throughout src/Alex Crichton-4/+3
2013-03-03libcore: Add read_until to ReaderUtil.Luqman Aden-8/+12
2013-03-02libcore: Remove `fn@`, `fn~`, and `fn&` from libcore. rs=defunPatrick Walton-9/+5
2013-02-28Remove legacy object creation mode, and convert remaining uses of itNiko Matsakis-7/+7
2013-02-27Turn old `drop` blocks into `Drop` traitsBen Striegel-2/+8
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-6/+6
2013-02-15auto merge of #4969 : nickdesaulniers/rust/issue3869, r=brsonbors-3/+3
Issue #3869 review? @nikomatsakis Convert all uses of vec::slice to vec::view Issue #3869 Rename const_view to const_slice Renamed mut_view to mut_slice Fix windows build error. `buf` is borrowed by the call to `as_mut_buf()` and so we must invoke `slice()` outside of that call.
2013-02-15libcore: Get rid of `move`.Luqman Aden-8/+8
2013-02-14Convert all uses of vec::slice to vec::view Issue #3869Nick Desaulniers-3/+3
Rename const_view to const_slice Renamed mut_view to mut_slice
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-10/+10
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-7/+7
2013-02-13RIMOV core::ioBen Striegel-4/+4
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-3/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-04libcore: Add @ to ReadersPatrick Walton-9/+9
2013-02-03Converted libcore/uint-template.rs to the new string functions.Marvin Löbel-1/+1
- Moved ToStr implementation of unsigned integers to uint-template.rs. - Marked the `str()` function as deprecated. - Forwarded all conversion functions to `core::num::to_str_common()` and `core::num::from_str_common()`. - Fixed most places in the codebase where `to_str()` is being used. - Added uint-template to_str and from_str overflow tests.
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-7/+7
2013-01-29librustc: Disallow trait bounds in types, enumerations, and structure ↵Patrick Walton-1/+1
definitions. r=tjc
2013-01-28Revert readline optimization and add testBrian Anderson-3/+11
2013-01-28Slightly optimize read_line()Michael Neumann-3/+3
No need to allocate an additional vector. Instead directly push into the string.
2013-01-24convert io wrapper records into structsErick Tryzelaar-5/+10
2013-01-24core: convert io::Res over to the Drop traitErick Tryzelaar-3/+6
2013-01-24convert most of libcore records into structsErick Tryzelaar-9/+7
2013-01-13Merge pull request #4411 from wting/4203_rename_memcpyTim Chevalier-2/+2
Rename memcpy, memmove, memset
2013-01-10librustc: Make all external functions unsafe. r=tjcPatrick Walton-66/+127
2013-01-10Rename memcpy, memmove, memset to prevent any confusion with the C equivalents.William Ting-2/+2
Closes #4203.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-5/+12
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-12/+5
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-5/+12
module scope. r=tjc
2012-12-27librustc: Fix the test runner, the condition system, and core test. rs=bustagePatrick Walton-0/+6
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+12
contain at least two components. r=graydon
2012-12-24Convert core::io to use explicit self (for issue #4118 and issue #2004)gareth-169/+163
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