summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2012-07-10Disallow implicitly binding methods in typechecker. Closes #2189.Michael Sullivan-1/+4
2012-07-10Pretty print vectors as ~[] instead of []/~. Closes #2863.Michael Sullivan-2/+2
2012-07-09Add test case for issue 2766, which resolve 3 fixesTim Chevalier-0/+21
2012-07-09test: Remove failing parts of the failing test (requires intertwining of ↵Patrick Walton-4/+0
resolve and typechecking)
2012-07-09change borrowck error msg: 'declared in outer block' -> 'captured in a ↵Ben Blum-8/+8
closure' (properly this time)
2012-07-09rustc: Switch to the new resolution passPatrick Walton-188/+24
2012-07-06Revert "rustc: Switch to the new resolution pass"Niko Matsakis-24/+188
This reverts commit c4af6e92fbae171c56a4e68666025725555fc9d8. Branch was burning...many, many unresolved imports.
2012-07-06rustc: Switch to the new resolution passPatrick Walton-188/+24
2012-07-05Clean up error message punctuation/capitalizationLindsey Kuper-26/+26
2012-07-04Remove empty argument lists from do expressionsBen Striegel-10/+10
2012-07-03Revert "Remove rule requiring non-nil block-style statements to be ↵Brian Anderson-0/+13
semi-terminated" This reverts commit 0f5eaef5fb2443acd3ea67250c953839c3d04d38.
2012-07-03Remove rule requiring non-nil block-style statements to be semi-terminatedBrian Anderson-13/+0
This is a subtle rule that no longer seems to be required.
2012-07-03Change crust -> extern.Graydon Hoare-3/+3
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-20/+20
2012-07-02Update compile-fail/missing-do for new error-comment syntaxBrian Anderson-3/+3
2012-07-02Added testcase for the missing do compile noteArmin Ronacher-0/+9
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-592/+592
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-07-01syntax: Support dropping argument list from for/doBrian Anderson-1/+1
2012-07-01Convert to new closure syntaxBrian Anderson-54/+56
2012-06-30syntax: Add support for new lambda syntaxBrian Anderson-1/+6
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-39/+39
2012-06-30change the test suite `//! kind` syntax to `//~ kind` in order to avoid aGareth Daniel Smith-591/+591
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-135/+135
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-5/+5
This comes with a terminology change. All linkage-symbols are 'extern' now, including rust syms in other crates. Some extern ABIs are merely "foreign". The term "native" is retired, not clear/useful. What was "crust" is now "extern" applied to a _definition_. This is a bit of an overloading, but should be unambiguous: it means that the definition should be made available to some non-rust ABI.
2012-06-26Incorporate class fields into recursive-type checkTim Chevalier-0/+12
Noticed while investigating issue 2718 that the typechecker allowed some non-instantiable types involving classes. This wasn't the root of 2718, but fixed it anyway.
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-128/+128
2012-06-25MergeTim Chevalier-15/+15
2012-06-24Remove resourcesTim Chevalier-4/+4
Also fixed shapes for classes with dtors, as well as handling offsets for classes with dtors correctly in take glue. Closes #2485
2012-06-22Remove 'implements' keyword in favour of :, part of #2301.Graydon Hoare-4/+4
2012-06-22Minor capitalization/punctuation fixes in error messagesLindsey Kuper-4/+4
2012-06-22Nicer quoting in "attempted access of field" message. Issue #2358.Lindsey Kuper-4/+4
2012-06-22Adding an issue number to vec-add.rsEric Holk-3/+3
2012-06-22Hack to make [] and []/~ the same type in preparation for switching to []/~.Michael Sullivan-1/+1
2012-06-22Remove resources from remaining test casesTim Chevalier-8/+30
2012-06-21Add test casesTim Chevalier-0/+11
issue-912 is xfailed. issue-2111 is already fixed, but it's good to have the test case.
2012-06-21Make liveness print out a proper error message for moves out of a self fieldTim Chevalier-0/+13
This was a call to span_bug() before. I'm not sure about the other cases, but the test case shows that the `vk_self` case can certainly arise with a bad program, so it should be a span_err() thing and not a span_bug() thing. Closes #2590
2012-06-21Add test for issue 2467Tim Chevalier-0/+6
2012-06-21Adding `i` suffixes so cfail tests keep failing after suffix inferenceLindsey Kuper-1/+1
2012-06-21Add tests to exercise the "pattern has N field(s), but" error patterns.Lindsey Kuper-0/+32
2012-06-21xfailing vec-add.Eric Holk-0/+6
2012-06-21Updating errors in vec-add.rsEric Holk-19/+29
2012-06-21Test for issue 1896 (which appears to be fixed)Tim Chevalier-0/+8
2012-06-21unxfail test for #2657Niko Matsakis-6/+1
2012-06-21Issue #2657: track mutability of bindings, also prevent move from bindingsNiko Matsakis-0/+13
2012-06-21handle moves in let initializers and allow moves from unsafe ptrsNiko Matsakis-0/+30
Related to issue #2657, but this is not a complete fix.
2012-06-20Change error to debugTim Chevalier-2/+1
IMO this is a better workaround than using the old-style error-pattern: syntax :-)
2012-06-20doc: add information about suffix inference to tutorial and manual.Lindsey Kuper-0/+22
2012-06-20Remove bind. Issue #2189Brian Anderson-40/+2
2012-06-20Fix a test I messed up.Michael Sullivan-1/+2
2012-06-20Call the correct type formatting function for more typecheck diagnostics. ↵Michael Sullivan-0/+4
Closes #2652.