summary refs log tree commit diff
path: root/src/compiletest
AgeCommit message (Collapse)AuthorLines
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-2/+2
2013-03-28Removing unused importsAlex Crichton-1/+1
2013-03-26librustc: Enforce that `extern mod` directives come first, then `use` ↵Patrick Walton-6/+7
directives, then items. Resolve them in this order as well.
2013-03-26option: rm functions that duplicate methodsDaniel Micay-3/+1
2013-03-26Fixed all use sites and testsMarvin Löbel-6/+11
2013-03-25Merge remote-tracking branch 'brson/rt'Brian Anderson-2/+16
Conflicts: src/libcore/rt/context.rs src/libcore/rt/sched.rs src/libcore/rt/thread.rs src/libcore/rt/uv.rs
2013-03-22libcore: Fix obsolete syntax in extfmtPatrick Walton-2/+2
2013-03-22auto merge of #5398 : dbaupp/rust/core-readlines, r=graydonbors-11/+11
The `each_line` function in `ReaderUtil` acts very differently to equivalent functions in Python, Ruby, Clojure etc. E.g. given a file `t` with contents `trailing\nnew line\n` and `n` containing `no trailing\nnew line`: Rust: ```Rust t: ~[~"trailing", ~"new line", ~""] n: ~[~"no trailing", ~"new line"] ``` Python: ```Python >>> open('t').readlines() ['trailing\n', 'new line\n'] >>> open('n').readlines() ['no trailing\n', 'new line'] ``` Ruby: ```Ruby irb(main):001:0> File.readlines('t') => ["trailing\n", "new line\n"] irb(main):002:0> File.readlines('n') => ["no trailing\n", "new line"] ``` Clojure ```Clojure user=> (read-lines "t") ("trailing" "new line") user=> (read-lines "n") ("no trailing" "new line") ``` The extra string that rust includes at the end is inconsistent, and means that it is impossible to distinguish between the "real" empty line a file that ends `...\n\n`, and the "fake" one after the last `\n`. The code attached makes Rust's `each_line` act like Clojure (and PHP, i.e. not including the `\n`), as well as adjusting `str::lines` to fix the trailing empty line problem. Also, add a convenience `read_lines` method to read all the lines in a file into a vector.
2013-03-23compiletest: Use lines_each instead of lines(..).each, or split(.., n).eachHuon Wilson-11/+11
2013-03-22compiletest: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-21back-renamed slice_DBG_BRWD, slice_V_DBG_BRWD -> slice, slice_DBG_UNIQ -> ↵Marvin Löbel-3/+3
slice_unique
2013-03-21renamed str::view -> slice_DBG_BRWDMarvin Löbel-4/+4
renamed str::slice -> slice_DBG_UNIQ changed vec slice method -> to_owned() renamed vec view method -> slice_V_DBG_BRWD
2013-03-19compiletest: Make pretty tests actually use compile-flags.Luqman Aden-2/+3
2013-03-18Add a way to run the test suite with the new schedulerBrian Anderson-2/+16
TESTARGS=--newrt make check-stage1-rpass Conflicts: src/rt/rustrt.def.in
2013-03-13auto merge of #5319 : brson/rust/debuginfo, r=brsonbors-2/+11
Continuing #5140 For the sake of getting this merged I've disabled debuginfo tests on mac (where running gdb needs root). Please feel free to follow up with further improvements.
2013-03-11Remove uses of logBrian Anderson-1/+1
2013-03-11More descriptive error messages for debug info testsBrian Leibig-2/+2
2013-03-11Debuginfo revampBrian Leibig-0/+9
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-2/+2
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-2/+2
2013-03-05auto merge of #5212 : thestinger/rust/iter, r=graydonbors-2/+2
A small step towards fixing #2827
2013-03-04Remove unused imports throughout src/Alex Crichton-12/+0
2013-03-03replace option::iter with a BaseIter implDaniel Micay-2/+2
2013-03-02librustdoc: Remove `fn@`, `fn~`, and `fn&` from compiletest, fuzzer, ↵Patrick Walton-1/+1
rustdoc, and rt. rs=defun
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-36/+38
imports
2013-02-22auto merge of #5081 : brson/rust/pipes, r=pcwaltonbors-1/+1
r?
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-1/+1
2013-02-21Remove the last bits of structural records from tests/rustc/rusti/rustpkg.Luqman Aden-19/+20
2013-02-15auto merge of #4969 : nickdesaulniers/rust/issue3869, r=brsonbors-1/+2
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-15compiletest: Get rid of `move`.Luqman Aden-3/+3
2013-02-14Convert all uses of vec::slice to vec::view Issue #3869Nick Desaulniers-1/+2
Rename const_view to const_slice Renamed mut_view to mut_slice
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-10/+10
2013-02-13auto merge of #4908 : bstrie/rust/rimov3, r=pcwaltonbors-2/+2
This patch finishes removing inner vector mutability from the vast majority of the compiler. Exceptions: * core::dvec: ideally this entire type will be able to be replaced by `~[]`, but Niko asked me to hold off on removing Dvecs until he makes some fixes to borrowed pointers. * liveness: liveness.rs is an impenetrable neutron star of deprecated semantics. * compile-fail: I'm not sure if a lot of these tests are testing inner mutability or mutability in general. I figure that RIMOVing this folder should wait until this syntax is removed from the parser. I also took this chance to remove many of the inner-mutability-related functions from core::vec, or as many uses of those functions as possible where still necessary. consume_mut and append_mut have been axed. cast_to_mut and cast_from_mut are still needed in a few places.
2013-02-13rustc and std: teach about #[bench], modernize to use quote_expr! some.Graydon Hoare-5/+11
2013-02-13RIMOV core::vecBen Striegel-2/+2
Also remove as many uses as possible of vec::cast_to_mut and cast_from_mut
2013-02-09Add debug info testsBrian Leibig-10/+91
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-7/+8
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-10/+10
2013-01-30librustdoc: De-export compiletest, combine-tests, libcargo, libfuzzer, and ↵Patrick Walton-59/+39
librustdoc. rs=deexporting
2013-01-28compiletest: Allow legacy recordsTim Chevalier-100/+103
But also remove most uses of structural records.
2013-01-24remove remaining is_not_empty functions/methodsDaniel Micay-1/+1
2013-01-24replace ConstVector trait with the Container traitDaniel Micay-3/+3
2013-01-24convert most of libstd over to structsErick Tryzelaar-11/+4
2013-01-23libsyntax: Remove `fn() unsafe { ... }`. r=graydonPatrick Walton-34/+38
2013-01-23core: Rename to_mut and from_mut to cast_to_mut and cast_from_mutTrinick-1/+1
2013-01-10librustc: Make all external functions unsafe. r=tjcPatrick Walton-9/+11
2013-01-09A collection of refactorings that I found it hard/tiresome to divide:Niko Matsakis-1/+1
- Make `extern fn()` assignable to any closure type, rather than a subtype. - Remove unused int_ty_set and float_ty_set - Refactor variable unification and make it more DRY - Do fn sub/lub/glb on the level of fn_sig - Rename infer::to_str::ToStr to infer::to_str::InferStr - Capitalize names of various types - Correct hashing of FnMeta - Convert various records-of-fns into structs-of-fns. This is both eliminating use of deprecated features and more forwards compatible with fn reform. r=pcwalton
2013-01-09compiletest: more win32 fallout from 2db3abdGraydon Hoare-0/+1
2013-01-09core: rename vec.filter to vec.filteredErick Tryzelaar-1/+1
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+12
module scope. r=tjc