about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2011-09-28rustc: Add a new "C stack cdecl" native ABIPatrick Walton-1/+14
2011-09-28xfail-fast run-pass/alt-range.rsBrian Anderson-0/+2
2011-09-28Revert "Revert "Implement pattern ranges for all numeric types.""Brian Anderson-26/+455
This reverts commit a034f87146e60e1db2327c6f6807c47406a1bb0b. Conflicts: src/comp/middle/check_alt.rs src/comp/middle/trans_alt.rs src/comp/syntax/ast.rs src/comp/syntax/ast_util.rs src/comp/syntax/fold.rs src/comp/syntax/print/pprust.rs Conflicts: src/comp/middle/trans_alt.rs
2011-09-28vim: `const` is a keywordPatrick Walton-2/+2
2011-09-28rt: Add a call stub that switches to the C stack, untested as of yetPatrick Walton-0/+16
2011-09-28rt: Add an upcall to allocate space on the C stack. This will be used for ↵Patrick Walton-9/+31
native calls on the C stack.
2011-09-28rt: Expose the C stack inside the Rust scheduler so that C calls can switch ↵Patrick Walton-4/+5
to it
2011-09-28rustc: Switch to cdecl for all calls. This is needed to make stack growth ↵Patrick Walton-36/+25
efficient, as I need to use eax and ecx in the function prologue and can't afford to stomp on incoming arguments.
2011-09-28Remove a few kludges that worked around issue #913Marijn Haverbeke-7/+2
2011-09-28Register new snapshotMarijn Haverbeke-0/+5
It had been a while. I mostly wanted a fix for #913 in stage0.
2011-09-28Don't descend into functions from relax_precond_blockMarijn Haverbeke-11/+7
Closes #913
2011-09-28Get rid of might_not_init kludge in init_local.Marijn Haverbeke-43/+3
Initializing something is now safe wrt to cleanups (so the cleanup for the local is only registered after the initialization.)
2011-09-28Wait with registering cleanups for locals until after the init code ranMarijn Haverbeke-5/+4
Fixes a double-cleanup that was breaking unwind-tup.rs under valgrind.
2011-09-28Use DPS for assignment and local initializationMarijn Haverbeke-51/+56
Issue #667
2011-09-27Patch to error instead of crashing when parsing unmatched double quotesWade Mealing-0/+15
Patch to error and fail instead of using all available memory then crashing to detect the error condition of an unmatched double quote before the end of a file. I couldn't get it to show nice error messages, so this may not be the ideal fix. A test case for this situation has also been added.
2011-09-27Make it again possible to initialize resource locals via assignmentBrian Anderson-26/+28
Some special cases allow both 'let a <- my_resource(x)' and 'let a = my_resource(x)' to work as expected despite ostensibly being copies and moves.
2011-09-27Prevent copies of resources into various thingsBrian Anderson-13/+162
2011-09-27rt: Store the task in TLSPatrick Walton-1/+76
2011-09-27Add more comments about kind checking on local move initializersBrian Anderson-1/+3
2011-09-27Add xfailed tests that resources can't be copied into various thingsBrian Anderson-0/+68
2011-09-27Don't ever raise unique kinds of pinned kinds to shared (again)Brian Anderson-37/+25
So *resource, ~resource, [resource] are all pinned. This is counter to the design of the kind system, but this way is a much clearer path to type safety. Once we've established a good baseline with lots of tests, then we can try to make raising pinned kinds work.
2011-09-27Revert "Use DPS for assignment and local initialization"Brian Anderson-56/+51
This reverts commit b1b202d302d1e84886360f9c8f146b9562db5f23.
2011-09-27Add an xfailed test for bogus deep copying of things containing resourcesBrian Anderson-0/+16
2011-09-27Add an xfailed test for bogus vector addition of typaramsBrian Anderson-0/+21
2011-09-27Fix lurking bug in matching of nilMarijn Haverbeke-6/+6
Which was somehow made visible by the DPS changes.
2011-09-27Use DPS for assignment and local initializationMarijn Haverbeke-51/+56
Issue #667
2011-09-27Safeguard against self-assignment for unique typesMarijn Haverbeke-4/+6
2011-09-27Test for #924Jesse Ruderman-1/+16
2011-09-27Move expr_unary to DPS styleMarijn Haverbeke-96/+90
Issue #667
2011-09-27Make trans_rec and trans_tup understand overwrite destsMarijn Haverbeke-45/+54
Issue #667
2011-09-27Move expr_binary into trans_expr_dpsMarijn Haverbeke-123/+115
Issue #667
2011-09-27Move expr_lit and expr_vec into trans_expr_dpsMarijn Haverbeke-32/+54
Issue #667
2011-09-27Move more non-value-returning things to trans_expr_dps.Marijn Haverbeke-87/+90
Issue #667
2011-09-26Add two xfailed tests for invalid copies into vectorsBrian Anderson-0/+36
2011-09-26xfail-win32 -> xfail-fastBrian Anderson-1/+1
2011-09-26Try to appease windows by xfail-win32'ing a random testBrian Anderson-0/+2
2011-09-26Test for issue #980Brian Anderson-0/+13
2011-09-26Enforce copy restrictions on let initializersBrian Anderson-18/+67
2011-09-26Make some nocopy tests a bit more futureproofBrian Anderson-4/+4
Turn the let assignment initializers into move initializers since that assignment is going to become illegal
2011-09-26Distinguish #924Jesse Ruderman-1/+6
2011-09-26Add a cycle-collection fuzzerJesse Ruderman-0/+59
2011-09-26Prevent copying of uncopyable things via the copy opBrian Anderson-0/+11
2011-09-26Prevent copying of uncopyable things via compound assignment opsBrian Anderson-1/+13
2011-09-26Don't allow vectors of pinned kinds to be copiedBrian Anderson-0/+14
2011-09-26Don't allow copying of unique boxes of pinned kindsBrian Anderson-20/+32
Issue #409
2011-09-26Add a test that unique boxes in vectors are copied when the vector isBrian Anderson-0/+13
Issue #409
2011-09-26rt: Don't run arbitrary destructors on cycle collection; that's just broken.Patrick Walton-8/+1
2011-09-26rt: Turn on cycle collection at task death; add a test casePatrick Walton-3/+34
2011-09-26rt: Make the logic that moves environments between tasks update the GC alloc ↵Patrick Walton-6/+48
chain correctly
2011-09-26stdlib: Fix typos in comments in lib/test.rsPatrick Walton-3/+3