about summary refs log tree commit diff
path: root/src/compiletest/errors.rs
AgeCommit message (Collapse)AuthorLines
2014-01-17Tweak the interface of std::ioAlex Crichton-2/+1
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
2013-12-11std::io: Add Buffer.lines(), change .bytes() apiklutzy-4/+1
- `Buffer.lines()` returns `LineIterator` which yields line using `.read_line()`. - `Reader.bytes()` now takes `&mut self` instead of `self`. - `Reader.read_until()` swallows `EndOfFile`. This also affects `.read_line()`.
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-11-08std::ascii: Provide a copyless [Ascii] -> str method.Huon Wilson-3/+1
This renames to_str_ascii to as_str_ascii and makes it non-copying, which is possible now that strings no longer have a hidden extra byte/null terminator. Fixes #6120.
2013-11-03Fill out the remaining functionality in io::fileAlex Crichton-2/+2
This adds bindings to the remaining functions provided by libuv, all of which are useful operations on files which need to get exposed somehow. Some highlights: * Dropped `FileReader` and `FileWriter` and `FileStream` for one `File` type * Moved all file-related methods to be static methods under `File` * All directory related methods are still top-level functions * Created `io::FilePermission` types (backed by u32) that are what you'd expect * Created `io::FileType` and refactored `FileStat` to use FileType and FilePermission * Removed the expanding matrix of `FileMode` operations. The mode of reading a file will not have the O_CREAT flag, but a write mode will always have the O_CREAT flag. Closes #10130 Closes #10131 Closes #10121
2013-11-03Remove all blocking std::os blocking functionsAlex Crichton-4/+4
This commit moves all thread-blocking I/O functions from the std::os module. Their replacements can be found in either std::rt::io::file or in a hidden "old_os" module inside of native::file. I didn't want to outright delete these functions because they have a lot of special casing learned over time for each OS/platform, and I imagine that these will someday get integrated into a blocking implementation of IoFactory. For now, they're moved to a private module to prevent bitrot and still have tests to ensure that they work. I've also expanded the extensions to a few more methods defined on Path, most of which were previously defined in std::os but now have non-thread-blocking implementations as part of using the current IoFactory. The api of io::file is in flux, but I plan on changing it in the next commit as well. Closes #10057
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-1/+1
Who doesn't like a massive renaming?
2013-10-10Remove some users of io::file_readerAlex Crichton-5/+9
2013-10-10Migrate users of io::fd_t to io::native::file::fd_tAlex Crichton-0/+1
2013-09-30compiletest: Remove usage of fmt!Alex Crichton-1/+1
2013-07-17test: Fix tests.Patrick Walton-1/+1
2013-07-04Bring compiletest/rustpkg/driver up to date on std vs coreAlex Crichton-3/+1
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-1/+1
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-11fix tests, remove some warningsHuon Wilson-1/+0
2013-06-10std: replace str::find_str* with a methodHuon Wilson-1/+1
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-4/+4
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+3
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-04-27only use #[no_core] in libcoreDaniel Micay-6/+0
2013-04-24Fixed typo... And a billion other things.Marvin Löbel-3/+4
2013-04-24Removed ascii functions from other modulesMarvin Löbel-1/+4
Replaced str::to_lowercase and str::to_uppercase
2013-04-14test: remove unnecessary unsafe blocks/functionsAlex Crichton-27/+25
2013-03-21back-renamed slice_DBG_BRWD, slice_V_DBG_BRWD -> slice, slice_DBG_UNIQ -> ↵Marvin Löbel-2/+2
slice_unique
2013-03-21renamed str::view -> slice_DBG_BRWDMarvin Löbel-2/+2
renamed str::slice -> slice_DBG_UNIQ changed vec slice method -> to_owned() renamed vec view method -> slice_V_DBG_BRWD
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-3/+4
imports
2013-01-30librustdoc: De-export compiletest, combine-tests, libcargo, libfuzzer, and ↵Patrick Walton-5/+2
librustdoc. rs=deexporting
2013-01-28compiletest: Allow legacy recordsTim Chevalier-5/+6
But also remove most uses of structural records.
2013-01-23libsyntax: Remove `fn() unsafe { ... }`. r=graydonPatrick Walton-25/+27
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-2/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2012-12-28Fix compiling compiletest. rs=fireErick Tryzelaar-0/+2
2012-12-28test: option variants get imported by defaultErick Tryzelaar-2/+2
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-09-25Demode core::resultBrian Anderson-1/+1
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-2/+2
2012-08-26Camel case the option typeBrian Anderson-2/+2
2012-08-26Fix build breakageBrian Anderson-0/+1
2012-08-24Start using core::path2::Path in a lot of places.Graydon Hoare-1/+1
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-1/+1
2012-08-08Convert impls to new syntaxBrian Anderson-2/+0
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-1/+1
2012-08-05Switch alts to use arrowsBrian Anderson-2/+2
2012-08-01Convert ret to returnBrian Anderson-3/+3
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-4/+4
#2907.
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-2/+2
Conflicts: src/compiletest/errors.rs src/libsyntax/parse/attr.rs src/libsyntax/parse/comments.rs src/test/compile-fail/ambig_impl_unify.rs src/test/compile-fail/assign-super.rs src/test/compile-fail/bad-for-loop.rs src/test/compile-fail/bad-var-env-capture-in-block-arg.rs src/test/compile-fail/block-arg-as-stmt-with-value.rs src/test/compile-fail/borrowck-assign-comp-idx.rs src/test/compile-fail/borrowck-lend-flow.rs src/test/compile-fail/borrowck-loan-blocks-move-cc.rs src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs src/test/compile-fail/borrowck-loan-rcvr.rs src/test/compile-fail/borrowck-loan-vec-content.rs src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs src/test/compile-fail/cap-clause-with-stack-closure.rs src/test/compile-fail/do1.rs src/test/compile-fail/do2.rs src/test/compile-fail/empty-vec-trailing-comma.rs src/test/compile-fail/evec-subtyping.rs src/test/compile-fail/issue-1896.rs src/test/compile-fail/issue-2149.rs src/test/compile-fail/issue-2150.rs src/test/compile-fail/issue-2487-b.rs src/test/compile-fail/kindck-implicit-close-over-mut-var.rs src/test/compile-fail/liveness-issue-2163.rs src/test/compile-fail/liveness-use-in-index-lvalue.rs src/test/compile-fail/no-reuse-move-arc.rs src/test/compile-fail/no-send-res-ports.rs src/test/compile-fail/non-const.rs src/test/compile-fail/pure-higher-order.rs src/test/compile-fail/pure-loop-body.rs src/test/compile-fail/regions-addr-of-upvar-self.rs src/test/compile-fail/regions-escape-loop-via-vec.rs src/test/compile-fail/regions-scoping.rs src/test/compile-fail/seq-args.rs src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs src/test/compile-fail/tstate-unsat-in-fn-expr.rs src/test/compile-fail/vec-add.rs src/test/compile-fail/vec-concat-bug.rs src/test/compile-fail/vector-no-ann.rs
2012-06-30change the test suite `//! kind` syntax to `//~ kind` in order to avoid aGareth Daniel Smith-2/+2
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-5/+5