about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-06-20Added string duplication to deep_copy. Closes #520.Eric Holk-0/+25
2011-06-20Removed duplicated ret_ty_of_fn. This also means the native function branch ↵Eric Holk-0/+2
is working now, so this commit closes #506.
2011-06-20Added a test case for #506Eric Holk-0/+12
2011-06-18Typecheck block tail expressions that are fn return valuesBrian Anderson-0/+9
2011-06-18test: Add a test case for derived-tydescs-before-dynamic-allocasPatrick Walton-0/+17
2011-06-18stdlib: Add ivec::grow_set()Patrick Walton-0/+12
2011-06-18stdlib: Add ivec::grow() and ivec::grow_fn()Patrick Walton-2/+35
2011-06-18test: Add test cases for ivec::init_elt, ivec::last, and ivec::slicePatrick Walton-2/+57
2011-06-17Restructure the "checking" pass in typestateTim Chevalier-1/+59
I noticed that typestate was being lazier than it should be, because it was only checking typestate for statements and top-level expression (that is, the expression in a stmt_expr, but not any subexpressions). So I rewrote the checks in tstate/ck.rs to use walk, which exposed a few bugs in typestate that I fixed. Also added some more test cases for if-check.
2011-06-17rustc: Increment by the dynamically-computed size in ivec::trans_append. ↵Patrick Walton-1/+1
Uncomment init_fn test in lib-ivec.
2011-06-17test: Comment out the init-fn line in lib-ivec. Puts out burning tinderbox.Patrick Walton-1/+1
2011-06-17rustc: Fix a bunch of memory management bugs relating to generic interior ↵Patrick Walton-4/+15
vectors. Uncomment all tests in lib-ivec.
2011-06-17Adding a test case for getcwd and related functions.Eric Holk-0/+17
2011-06-17Added a test case for #507Eric Holk-0/+34
2011-06-17rustc: Demand that if conditions have bool typeBrian Anderson-0/+11
Closes #513
2011-06-17rustc: Fail to unify if two ty_vars don't unifyBrian Anderson-0/+9
Closes #500
2011-06-17test: Fix mismatched types in prep for typechecker fixesBrian Anderson-7/+7
Issue #500
2011-06-16stdlib: Fix reserve on zero-length interior vectors; uncomment ↵Patrick Walton-1/+1
test_unsafe_ptrs()
2011-06-16stdlib: Sketch out ivec::init_fn, currently segfaultingPatrick Walton-0/+10
2011-06-16Disable lib-ivec's test_unsafe_ptrs. Not working hereBrian Anderson-1/+1
2011-06-16Add better error messages for bad attributes in .rc filesBrian Anderson-0/+5
Issue #487
2011-06-16rustc: Fix regressed handling of bad attributesBrian Anderson-0/+10
Issue #487
2011-06-16rustc: Parse crate attributes in standalone .rs filesBrian Anderson-0/+6
Issue #487
2011-06-16rustc: Parse attributes in crate filesBrian Anderson-1/+4
Issue #487
2011-06-16rustc: Parse inner items of file-level modules linked from crate filesBrian Anderson-0/+11
Issue #487
2011-06-16rustc: Implement conversions from interior vector data to unsafe pointers ↵Patrick Walton-0/+25
and vice-versa
2011-06-16Add support for marking files no-reformat.Graydon Hoare-0/+2
2011-06-16stdlib: Introduce an ivec module into the standard library; add a minimal ↵Patrick Walton-0/+16
test case
2011-06-16rustc: Work around leak when translating interior vectors. Un-XFAIL ↵Patrick Walton-5/+0
interior-vec.rs.
2011-06-16test: Add an interior-vec test case, XFAIL'd for now because of leaks in the ↵Patrick Walton-0/+36
compiler
2011-06-16test: Add a test for outer attributes on the first module in a fileBrian Anderson-0/+6
Issue #487
2011-06-16rustc: Parse inner attributes of modulesBrian Anderson-0/+44
Issue #487
2011-06-16Simple anonymous objects compile with stage0.Lindsey Kuper-3/+0
2011-06-16Bring back if-checkTim Chevalier-4/+43
Add "if check" (expr_if_check), a variation on check that executes an "else" clause rather than failing if the check doesn't hold.
2011-06-16if-check test caseTim Chevalier-0/+13
2011-06-16Write some tests for swap.Michael Sullivan-0/+28
2011-06-15Improve and test failure behavior for malformed attributesBrian Anderson-0/+34
2011-06-15Fixed a problem where spawn arguments were getting lost again. Also, fixed ↵Eric Holk-14/+23
up stack alignment, which closes #496
2011-06-15Re-enabled join.Eric Holk-0/+18
2011-06-15test: Add a compile-fail test for attribute/syntax parsingBrian Anderson-0/+8
I don't currently know how to deal with syntax extensions that appear betweeen an attribute and an item, so this test captures the error that occurs. Issue #487
2011-06-15rustc: Support outer attributes on items that are defined as statementsBrian Anderson-1/+66
Issue #487
2011-06-15stdlib: Add an either moduleBrian Anderson-0/+117
Like Haskell's, with left and right tags, various conversion functions
2011-06-15test: Add missing fn test cases to run-pass/item-attributes.rsBrian Anderson-6/+13
Issue #487
2011-06-15Refactor data structures representing constraints (again...)Tim Chevalier-2/+2
I added a "resolved" version of the ast::constr type -- ty::constr_def -- that has a def_id field instead of an ann_field. This is more consistent with other types and eliminates some checking. Incidentally, I removed the def_map argument to the top-level function in middle::alias, since the ty::ctxt already has a def_map field.
2011-06-15Simple anonymous objects get through translation.Lindsey Kuper-13/+38
2011-06-15Fix a bunch of compile-command lines to use RBUILDGraydon Hoare-7/+7
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-5885/+4487
2011-06-15test: Add tests for multiple outer attributes on itemsBrian Anderson-11/+41
Issue #487
2011-06-15test: Add test cases for outer attributes on all item typesBrian Anderson-0/+13
2011-06-15rustc: Parse module attributesBrian Anderson-0/+8
Issue #487