about summary refs log tree commit diff
path: root/src/test/compile-fail/use-uninit-dtor.rs
AgeCommit message (Collapse)AuthorLines
2011-07-29Remove support for obj dtorsMarijn Haverbeke-6/+0
2011-07-27Reformat for new syntaxMarijn Haverbeke-8/+3
2011-05-12Fix mistaken replacements in error-pattern comments in testsMarijn Haverbeke-1/+1
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-1/+1
This should be a snapshot transition.
2011-04-28Enable typestate_checkTim Chevalier-1/+0
Enable typestate checking (just for uninitialized vars) and un-XFAIL the relevant tests for stage0.
2011-04-19Handle nested items correctly in typestate_checkTim Chevalier-0/+12
Summary says it all. Actually, only nested objects and functions are handled, but that's better than before. The fold that I was using before to traverse a crate wasn't working correctly, because annotations have to reflect the number of local variables of the nearest enclosing function (in turn, because annotations are represented as bit vectors). The fold was traversing the AST in the wrong order, first filling in the annotations correctly, but then re-traversing them with the bit vector length for any outer nested functions, and so on. Remedying this required writing a lot of tedious boilerplate code because I scrapped the idea of using a fold altogether. I also made typestate_check handle unary, field, alt, and fail. Also, some miscellaneous changes: * added annotations to blocks in typeck * fix pprust so it can handle spawn * added more logging functions in util.common * fixed _vec.or * added maybe and from_maybe in option * removed fold_block field from ast_fold, since it was never used