Graydon Hoare
7c25fb5628
Fix bug in trans_field, un-XFAIL two more tests.
2011-02-10 17:33:08 -08:00
Graydon Hoare
2b669008a8
Un-XFAIL generic-derived-type.rs.
2011-02-10 15:04:11 -08:00
Brian Anderson
6461cf30de
Add compile-fail tests for tail calls
2011-02-10 12:12:10 -08:00
Brian Anderson
378c0087ca
Parse 'be' statement. Pass tailcall tests. No actual tailcalls yet.
2011-02-10 12:12:10 -08:00
Graydon Hoare
b7dfbc9db0
Fix bug in test and un-XFAIL 4 tests now passing on rustc.
2011-02-09 13:19:20 -08:00
Rob Arnold
6e39102299
Add FreeBSD support in the Makefile
2011-02-09 10:43:46 -08:00
Graydon Hoare
8c0d35066b
Elide passed-typarams when tydescs are captured. Un-XFAIL generic-obj.rs.
2011-02-09 09:54:58 -08:00
Rafael Ávila de Espíndola
4b06dc574b
Add very minimal support for native modules. For now they must be empty.
2011-02-01 16:57:33 -08:00
Graydon Hoare
70bf54bcac
Implement 'else if'
2011-02-01 16:23:48 -08:00
Graydon Hoare
21418230cd
Re-XFAIL those tests enabled by commit a2789363e107114fdc0ff45a208ae67a56bce73a.
...
WinNT tinderbox doesn't like them.
2011-01-31 12:47:17 -08:00
Brian Anderson
7ab8a5904d
Un-XFAIL some compile-fail tests
2011-01-31 11:19:15 -08:00
Brian Anderson
a2789363e1
Reenable xfailed tests for rustboot that pass with trivial or no modifications
2011-01-30 15:55:27 -05:00
Graydon Hoare
65f0f8e64d
Pass --error-exitcode=1 to valgrind in Makefile; XFAIL test that was memcheck-failing.
2011-01-28 13:12:31 -08:00
Rafael Ávila de Espíndola
3cac20dae3
Correctly handle "import foo = bar.zed;".
2011-01-28 11:54:59 -05:00
Graydon Hoare
1086a2b7d1
Un-XFAIL 3 tests that started working recently.
2011-01-27 13:52:02 -08:00
Rafael Ávila de Espíndola
21208f2343
Handle paths correctly. This lets us handle one more test :-)
2011-01-27 15:56:10 -05:00
Graydon Hoare
da32bc1332
Slight makefile refactoring.
2011-01-26 12:45:51 -08:00
Rafael Ávila de Espíndola
70c129f79b
Fix test now that we look at the full error-pattern. Also enable it for rustc.
2011-01-26 12:06:19 -05:00
Rafael Ávila de Espíndola
5b3e7e599d
Fix issue 207 by considering everything after the first : in the error-pattern
...
line.
2011-01-26 11:24:49 -05:00
Rafael Ávila de Espíndola
1b82060c5e
Print an error if we try to refer to a module in an expr_path.
2011-01-25 18:16:52 -05:00
Rafael Ávila de Espíndola
9e2324ad1e
Small first step in expr_path. Call find_final_def just to detect
...
unresolved names. find_final_def is going to be extended to return the
final expr.
2011-01-25 17:54:38 -05:00
Graydon Hoare
18947f83cc
Un-XFAIL a couple more rustc tests that have started working recently.
2011-01-24 18:03:50 -08:00
Graydon Hoare
a32d206d27
Implement autoderef in rustc. Un-XFAIL autoderef-full-lval.rs.
2011-01-24 18:03:31 -08:00
Rafael Ávila de Espíndola
d97137734b
Remove unimplemented erorr and enable test.
2011-01-24 15:29:38 -05:00
Rafael Ávila de Espíndola
c6dec379b0
Implement a bit of type parameter matching to get a simple case working.
2011-01-24 11:58:01 -08:00
Graydon Hoare
3780551878
Re-XFAIL integral-indexing.rs. Seems OSX and linux still don't like it.
2011-01-21 17:05:25 -08:00
Graydon Hoare
b361b1ee8c
Un-XFAIL 7 tests that have begun working on rustc lately. Fix one bug in mlist.rs.
2011-01-21 15:56:42 -08:00
Graydon Hoare
90e329da6b
First cut at translating const items. Support the literal forms at least. Un-XFAIL const.rs.
2011-01-21 12:09:25 -08:00
Graydon Hoare
51542b279f
Fix bug in trans_for, un-XFAIL linear-for-loop.rs.
2011-01-21 08:25:13 -08:00
Graydon Hoare
9d3ebd6a57
Implement dynamic GEP enough to permit expr_field to work on tup(T,T,T).
2011-01-19 16:29:14 -08:00
Rafael Ávila de Espíndola
35d53b7eb1
Look at the type params of an item_ty when resolving.
2011-01-19 16:13:33 -05:00
Graydon Hoare
e8d266c614
Change generic-drop-glue.rs to be meaningful again, and un-XFAIL on rustc.
2011-01-18 17:20:13 -08:00
Graydon Hoare
156e1b363f
Make legal and un-XFAIL generic-fn-infer.rs (on both compilers).
2011-01-17 16:03:38 -08:00
Rafael Ávila de Espíndola
9f3caed8a0
Enable more tests.
2011-01-17 18:13:55 -05:00
Rafael Ávila de Espíndola
58490d7fa0
Fix the last known (to me) bug in import resolution. We were not properly
...
dropping the inner part of the environment when an intermediate item resolved
in an outer scope.
2011-01-17 13:33:13 -08:00
Rafael Ávila de Espíndola
5b9eda4a41
Fix the import handling in "complex" cases. When looking a.b.c and 'a' is a
...
module, we should look for 'b' *just* in the module 'a' and then continue
resolving b.c in the environment created by updating *with* a.
Still not 100% correct, but getting there.
2011-01-14 17:34:00 -05:00
Rafael Ávila de Espíndola
bdcb9d9b53
Make lookup non recursive and instead move the recursion just to
...
find_final_def. Use the fact that the recursion is in a simpler function to
detected import loops and exit.
2011-01-14 11:10:06 -08:00
Rafael Ávila de Espíndola
3722326cd7
Add or enable some tests.
2011-01-13 18:52:06 -05:00
Rafael Ávila de Espíndola
c1f2e29596
Produce better errors for invalid imports.
2011-01-12 12:27:31 -08:00
Rafael Ávila de Espíndola
34643eeac8
Fix another import case we got wrong: The local environment should not
...
interfere with the import statements.
2011-01-11 13:59:52 -08:00
Rafael Ávila de Espíndola
c5a766f133
Fix two invalid import cases we were not detecting:
...
* If an import was unused we would never print any errors for it.
* We would keep the existing environment in scope when descending 'foo.bar'
and would find 'bar' in the global environment if there was no 'bar' in
'foo'.
2011-01-11 13:58:39 -08:00
Graydon Hoare
e96414a6f0
Further corrections to the Makefile rules covering failing tests.
2011-01-10 14:53:20 -08:00
Graydon Hoare
b5e62b04a0
Un-XFAIL drop-bind-thunk-args.rs.
2011-01-07 17:28:35 -08:00
Graydon Hoare
3b0e207109
Drop closures. Un-XFAIL bind-interior.rs.
2011-01-07 16:26:30 -08:00
Rafael Ávila de Espíndola
2fb09eb585
Add sufficient import support to compile some simple single-crate programs.
...
This is likely not the final solution. It does repetitive work and doesn't produce
errors for invalid but unused imports. In any case, I think it is a useful step.
2011-01-07 15:17:18 -08:00
Graydon Hoare
41f47054c8
Un-XFAIL bind-thunk.rs.
2011-01-06 12:56:07 -08:00
Graydon Hoare
f3f63da7c8
Translate trivial bindings. Un-XFAIL bind-trivial.rs.
2011-01-05 16:06:01 -08:00
Graydon Hoare
4fca7d61dd
Fix Yet Another Horrid Makefile Bug that was causing the run-fail tests to silently pass.
2011-01-04 17:57:51 -08:00
Graydon Hoare
7276f85f32
Fix another s/BREQ/SREQ/ in the makefile.
2011-01-04 17:37:51 -08:00
Graydon Hoare
d4c7cd5f8d
Change BREQ to SREQ in deps of compile-fail/%.rustc.out
2011-01-03 14:20:00 -08:00