summary refs log tree commit diff
path: root/src/rustc/middle/block_use.rs
AgeCommit message (Collapse)AuthorLines
2012-07-01Convert to new closure syntaxBrian Anderson-1/+1
2012-06-24Make 'do' expressions accept stack closuresBrian Anderson-1/+1
2012-05-29Fix an error message to not refer to "block type". Closes #2423.Michael Sullivan-1/+2
2012-04-06Convert old-style for loops to new-styleMarijn Haverbeke-1/+1
Most could use the each method, but because of the hack used to disambiguate old- and new-style loops, some had to use vec::each. (This hack will go away soon.) Issue #1619
2012-03-27Support an alternate for syntax that calls a higher-order functionMarijn Haverbeke-0/+4
The last argument of the call must be a block, and the type of this argument must a function returning bool. `break` and `cont` are supported in the body of the block, and return `false` or `true` from the function. When the end of the function is reached, `true` is implicitly returned. for vec::all([1, 2, 3]) {|elt| if elt == 2 { break; } log(error, elt); } Issue #1619
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-2/+2
2012-03-21add mut decls to rustc and make them mandatoryNiko Matsakis-1/+1
2012-03-02Move src/comp to src/rustcGraydon Hoare-0/+42