aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Add or enable some tests.Rafael Ávila de Espíndola2011-01-131-0/+13
|
* Produce better errors for invalid imports.Rafael Ávila de Espíndola2011-01-121-0/+6
|
* Fix another import case we got wrong: The local environment should notRafael Ávila de Espíndola2011-01-111-0/+10
| | | | interfere with the import statements.
* Fix two invalid import cases we were not detecting:Rafael Ávila de Espíndola2011-01-113-5/+28
| | | | | | | * 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'.
* Sketch support for reading multi-file crates in rustc. Add test, not yet ↵Graydon Hoare2011-01-103-0/+13
| | | | working.
* Further corrections to the Makefile rules covering failing tests.Graydon Hoare2011-01-108-6/+22
|
* Remove the assumption that circular_buffer's buffer has a power of two sizeBrian Anderson2011-01-101-0/+20
| | | | | | It was not obvious how to make this implementation work when the unit size was not also a power of two, so for now just make the buffer size a multiple of the unit size so it can pass all the tests.
* Remove unused variable in circular_buffer testsBrian Anderson2011-01-101-2/+0
|
* Rename test to reflect that the circular_buffer runtime class is what's ↵Brian Anderson2011-01-101-0/+0
| | | | being tested
* Fix circular_buffer growth when _next != 0Brian Anderson2011-01-101-4/+29
|
* Don't allow circular_buffer to shrink below its original size when unit_sz ↵Brian Anderson2011-01-101-2/+18
| | | | is not a power of two
* Don't allow circular_buffer to shrink below it's initial sizeBrian Anderson2011-01-101-0/+10
|
* Fix the check for growing the circular_bufferBrian Anderson2011-01-101-0/+14
|
* Simplify the test for circular_buffer initializationBrian Anderson2011-01-101-11/+14
|
* Add sufficient import support to compile some simple single-crate programs.Rafael Ávila de Espíndola2011-01-072-0/+21
| | | | | 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.
* Correctly initialize circular_buffer to a power-of-two bytesBrian Anderson2011-01-071-0/+36
|
* New test, bind-interior.rs.Graydon Hoare2011-01-061-0/+11
|
* Add testcase I meant to add in 9ee3475e09c8fce81b5b06365a7f70d029a80155.Graydon Hoare2011-01-031-0/+11
|
* Don't attempt to wake tasks that aren't blocked.Brian Anderson2011-01-031-0/+36
| | | | | | It's possible for a supervised task to kill and wake its supervising task then immediately try to wake it again if the supervising task has joined the supervised. This is the easiest way to prevent that.
* Parse 'import' directives in rustc.Rafael Ávila de Espíndola2010-12-241-0/+7
|
* Parse 'use' directives in rustc.Rafael Ávila de Espíndola2010-12-241-0/+14
|
* Add std.sort, with a simple mergesort.Graydon Hoare2010-12-211-0/+50
|
* Syntax tweak: move 'mutable' from pseudo-ty-param on vec ctor to ↵Graydon Hoare2010-12-133-4/+3
| | | | low-precedence prefix inside paren.
* Add minimal test for box/deref.Graydon Hoare2010-12-021-0/+4
|
* Add test for non-exhaustive match failure.Graydon Hoare2010-12-021-0/+15
|
* rustc: Typecheck whiles and do-whiles. Add a workaround to complex.rs ↵Patrick Walton2010-11-231-1/+2
| | | | pending a solution to the one-armed-if problem.
* Isolate while-header bug to minimal testcase, fix in rustboot, remove ↵Graydon Hoare2010-11-191-0/+22
| | | | workaround in rustc.
* Implement a map2() function in std._vecPatrick Walton2010-11-091-1/+18
|
* Support a special const-value refcount, use it for const strings.Graydon Hoare2010-11-092-7/+16
|
* Add a check for binding an alias. Good thing, as we had two instances in our ↵Graydon Hoare2010-11-081-0/+7
| | | | library.
* test_init_fn() in lib-vec.rs doesn't seem to segfault anymore. Un-XFAIL it.Patrick Walton2010-11-051-1/+1
|
* Move the option type to its own modulePatrick Walton2010-11-051-1/+1
|
* Fix buggy while and do-while translation in rustc. Add test.Graydon Hoare2010-11-041-0/+14
|
* Split out stratum-checking pass, implement more-strict (overly aggressive) ↵Graydon Hoare2010-11-027-13/+13
| | | | impure-effect checking.
* First pass on splitting stratum and opacity off of effects. WIP.Graydon Hoare2010-11-0222-42/+42
|
* rustboot: Emit an error instead of asserting in trans when a T is passed by ↵Patrick Walton2010-10-289-15/+15
| | | | value
* Change vec slice to use uint, add push/pop/shift/unshift.Graydon Hoare2010-10-221-14/+14
|
* line length police; moved comp.util.bits to std.bitvDave Herman2010-10-211-0/+297
|
* Typecheck tags in "alt" patternsPatrick Walton2010-10-142-0/+24
|
* Fix crasher in rustc.Graydon Hoare2010-10-141-0/+5
|
* Fetch typarams from the outermost item frame, when inside an iter-block. One ↵Graydon Hoare2010-10-131-0/+16
| | | | less crash in rustc.
* Teach bind to actually bind typarams, as it claims to.Graydon Hoare2010-10-101-0/+8
|
* Sketch out #fmt syntax extension in rustboot.Graydon Hoare2010-10-012-0/+5
|
* Fix bug in bind thunks failing top drop unbound args; add test and adjust ↵Graydon Hoare2010-09-301-0/+8
| | | | rustc to use bind again.
* Drop slots on block exits even when blocks have no statements. Part way to ↵Graydon Hoare2010-09-301-0/+11
| | | | fixing bind leakage in rustc.
* Initial check-in of 99 Bottles Of BeerPeter Hull2010-09-306-0/+269
| | | | using different methods (simple, iterator, tail-call, pattern match)
* implemented break for while-loop caseOr Brostovski2010-09-301-0/+15
| | | | | | | | | | | | | | ast.ml - added break and cont statements item.ml - added break and cont statements lexer.mll - added break and cont statements token.ml - added break and cont statements trans.ml - implemented the break statement for the while-loop case - replaced hash table accesses with get_stmt_depth where needed type.ml = added break and cont statements typestate.ml - implemented the break statement for the while-loop case - added shorthand filter_live_block_slots walk.ml - added break and cont statements while-with-break.rs - code for testing while loops
* Closed issue 154 - prevents compiler from compiliing a line to zero statementsOr Brostovski2010-09-301-0/+7
|
* Add some basic string functions: index, rindes, find, substr, split, concat, ↵Graydon Hoare2010-09-221-0/+84
| | | | connect.
* Fix linear for loops on strings to not hit trailing null.Graydon Hoare2010-09-221-4/+1
|