| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2011-08-02 | In trans, don't assume both sides of a binop have the same type | Tim Chevalier | -0/+6 | |
| This was at least partially responsible for Issue 777. The only solution I can think of is for trans to just not generate code for a comparison if one or both sides has type _|_. Since that means evaluating that subexpression diverges, it should be ok to never do the comparison. Actually generating code for the comparison would trip an LLVM assertion failure. | ||||
| 2011-08-02 | Pretty-print test the rfail tests. Issue #789 | Brian Anderson | -0/+2 | |
| 2011-07-27 | Fix damage done by the pretty-printer | Marijn Haverbeke | -8/+40 | |
| 2011-07-27 | Reformat for new syntax | Marijn Haverbeke | -145/+57 | |
| 2011-07-22 | Add xfail-stage3 directives to tests | Brian Anderson | -0/+2 | |
| The new test runners run stage 3 | ||||
| 2011-07-13 | Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases. | Graydon Hoare | -6/+6 | |
| 2011-07-11 | Visit the type argument in a port expression | Tim Chevalier | -0/+16 | |
| This closes #664. | ||||
| 2011-07-05 | Handle fail inside a for-each loop properly | Tim Chevalier | -0/+16 | |
| 2011-07-03 | Un-XFAIL fail-arg | Tim Chevalier | -4/+2 | |
| 2011-07-03 | Handle fail as an argument; parse fail expressions unambiguously | Tim Chevalier | -0/+9 | |
| An expression like: foo(1, fail, 2) was failing to parse, because the parser was interpreting the comma as the start of an expression that was an argument to fail, rather than recognizing that the fail here has no arguments Fixed this by using can_begin_expr to determine whether the next token after a fail token suggests that this is a nullary fail or a unary fail. In addition, when translating calls, check before translating each argument that the block still isn't terminated. This has the effect that if an argument list includes fail, the back-end won't keep trying to generate code for successive arguments and trip the !*terminated assertion. | ||||
| 2011-07-03 | Manipulate contexts correctly in trans_fail_expr | Tim Chevalier | -0/+9 | |
| This fixes Issue #617 | ||||
| 2011-07-03 | XFAILing the new test case... | Tim Chevalier | -0/+2 | |
| ...because the parsing of fail got changed out from under me. Will fix shortly. | ||||
| 2011-07-02 | Generate code properly for calls with _|_ - typed arguments | Tim Chevalier | -0/+9 | |
| The code for translating a fail (for example) would call Unreachable(), which terminates the block; if a fail appeared as an argument, this would cause an LLVM assertion failure. Changed trans_call to handle this situation correctly. | ||||
| 2011-07-02 | Allow any string expression to be used with fail. | Josh Matthews | -3/+8 | |
| 2011-06-29 | Add a runtime flag to enable/disable claims en masse | Tim Chevalier | -0/+1 | |
| Now, if the environment variable CHECK_CLAIMS is set, then all claims turn into checks. Otherwise, claims are no-ops. | ||||
| 2011-06-28 | Implement "claim" | Tim Chevalier | -0/+16 | |
| Implement "claim" (issue #14), which is a version of "check" that doesn't really do the check at runtime. It's an unsafe feature. The new flag --check-claims turns claims into checks automatically -- but it's off by default, so by default, the assertion in a claim doesn't execute at runtime. | ||||
| 2011-06-25 | Remove variable name 'res' from test suite | Marijn Haverbeke | -1/+1 | |
| 2011-06-22 | test: Enable more tests | Brian Anderson | -3/+0 | |
| 2011-06-21 | Serialize constraints in types (literal arguments still not supported) | Tim Chevalier | -0/+11 | |
| This involved, in part, changing the ast::def type so that a def_fn has a "purity" field. This lets the typechecker determine whether functions defined in other crates are pure. It also required updating some error messages in tests. As a test for cross-crate constrained functions, I added a safe_slice function to std::str (slice(), with one of the asserts replaced with a function precondition) and some test cases (various versions of fn-constraint.rs) that call it. Also, I changed "fn" to "pred" for some of the boolean functions in std::uint. | ||||
| 2011-06-17 | test: Fix mismatched types in prep for typechecker fixes | Brian Anderson | -3/+3 | |
| Issue #500 | ||||
| 2011-06-16 | Bring back if-check | Tim Chevalier | -0/+26 | |
| 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-15 | Reformat source tree (minus a couple tests that are still grumpy). | Graydon Hoare | -133/+99 | |
| 2011-06-14 | Un-xfail test/run-fail/pred.rs | Tim Chevalier | -6/+3 | |
| 2011-06-14 | Un-xfail working test cases | Tim Chevalier | -6/+2 | |
| 2011-06-14 | Add xfail-stage0 to some tests (not sure if it matters...) | Tim Chevalier | -0/+1 | |
| 2011-06-11 | test: Add tests for issue #452 | Brian Anderson | -0/+35 | |
| 2011-06-10 | Use RHS type when translating assignments | Tim Chevalier | -0/+9 | |
| In code like "auto foo = fail", a type gets inferred for foo depending on how it's used. However, fail still has type _|_ and still should be treated that way: particularly, its value shouldn't be copied. Fixed trans to reflect that. | ||||
| 2011-06-08 | Add optional message to fail. | Josh Matthews | -0/+5 | |
| 2011-05-31 | rustc: Teach rustc to use block results as fn return values. Closes #372 | Brian Anderson | -0/+8 | |
| 2011-05-27 | Change the syntax for RECV from "var <- port" to "port |> var". | Michael Sullivan | -4/+4 | |
| 2011-05-27 | Remove parser support for recv as an initializer in preparation for changing ↵ | Michael Sullivan | -1/+1 | |
| the recv syntax. | ||||
| 2011-05-26 | Make _|_ unify with anything | Tim Chevalier | -0/+21 | |
| The typechecker had a number of special cases for unifying types with _|_ (as with checking if and alt). But, a value of type _|_ should be usable in any context, as such a value always diverges, and will never be used by its immediate context. Changed unify accordingly, removed special cases. | ||||
| 2011-05-24 | test: Fix run-fail testing and bring tests up to date | Brian Anderson | -20/+2 | |
| A typo in the Makefile was causing these to not run. Happily, a lot of these tests pass, so un-xfailed. | ||||
| 2011-05-21 | rustc: Allow if expressions to fail | Brian Anderson | -0/+12 | |
| 2011-05-21 | rustc: Allow alt expressions to fail | Brian Anderson | -0/+13 | |
| 2011-05-20 | XFAIL two tests for stage0 | Tim Chevalier | -0/+1 | |
| 2011-05-20 | Added a couple of test cases for sending messages. One works as expected, ↵ | Eric Holk | -0/+14 | |
| the other succeeds unexpectedly. | ||||
| 2011-05-16 | Rewrite everything to use [] instead of vec() in value position. | Graydon Hoare | -2/+2 | |
| 2011-05-14 | Remove xfail-boot lines from tests | Brian Anderson | -1/+0 | |
| 2011-05-12 | Fix mistaken replacements in error-pattern comments in tests | Marijn Haverbeke | -8/+8 | |
| 2011-05-12 | Downcase std modules again, move to :: for module dereferencing | Marijn Haverbeke | -8/+8 | |
| This should be a snapshot transition. | ||||
| 2011-05-03 | Assume xfail-stage0 implies stage1 and stage2 in tests, for now. | Graydon Hoare | -0/+18 | |
| 2011-05-02 | Un-revert "Use different syntax for checks that matter to typestate", fixing ↵ | Patrick Walton | -8/+8 | |
| the problem. This reverts commit d08b443fffb1181d8d45ae5d061412f202dd4118. | ||||
| 2011-05-02 | Revert "Use different syntax for checks that matter to typestate" | Graydon Hoare | -8/+8 | |
| This reverts commit aa25f22f197682de3b18fc4c8ba068d1feda220f. It broke stage2, not sure why yet. | ||||
| 2011-05-02 | Use different syntax for checks that matter to typestate | Tim Chevalier | -8/+8 | |
| This giant commit changes the syntax of Rust to use "assert" for "check" expressions that didn't mean anything to the typestate system, and continue using "check" for checks that are used as part of typestate checking. Most of the changes are just replacing "check" with "assert" in test cases and rustc. | ||||
| 2011-04-19 | Remove effect system from src. | Graydon Hoare | -1/+1 | |
| 2011-03-25 | Switch xfail system to use comments embedded in source files. | Graydon Hoare | -0/+10 | |
| 2010-12-02 | Add test for non-exhaustive match failure. | Graydon Hoare | -0/+15 | |
| 2010-11-02 | First pass on splitting stratum and opacity off of effects. WIP. | Graydon Hoare | -1/+1 | |
| 2010-09-07 | Small updates to test cases. | Michael Bebenita | -0/+3 | |
