about summary refs log tree commit diff
path: root/src/test/compile-fail/block-deinitializes-upvar.rs
AgeCommit message (Collapse)AuthorLines
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-18/+0
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-23Remove uses of binary move - <- - from tests and librariesTim Chevalier-1/+1
2012-07-09change borrowck error msg: 'declared in outer block' -> 'captured in a ↵Ben Blum-1/+1
closure' (properly this time)
2012-07-01Convert to new closure syntaxBrian Anderson-1/+1
2012-06-15Issue #2591: Change "upvar" to "variable declared in an outer block" in testsPatrick Walton-1/+1
2012-05-31test: Update test with current error messageBrian Anderson-2/+2
These errors where previously generated by typestate, but there seem to be other passes that cover this now.
2012-03-05rustc: Lower case error messagesBrian Anderson-1/+1
2012-01-23s/block()/fn()/gNiko Matsakis-1/+1
2011-11-21Add a pass that checks that blocks are only used in safe waysMarijn Haverbeke-5/+2
Closes #1188
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-4/+4
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-06Forbid blocks from deinitializing upvarsTim Chevalier-5/+8
Move expressions where the RHS is an upvar are now forbidden within block expressions.
2011-09-01Add a test that lambdas can't deinitialize upvarsTim Chevalier-0/+8