summary refs log tree commit diff
path: root/src/rustc/middle/mutbl.rs
AgeCommit message (Collapse)AuthorLines
2012-03-28Allow references to "self" within classesTim Chevalier-11/+28
Allow writing self.f within a class that has a field f. Currently, the compiler accepts either self.f or f. In a future commit I'll require writing self.f and not f. Not sure whether self.f() works if f is a method (making sure that works next).
2012-03-27Enforce mutability declarations in classes; correct shapes for classesTim Chevalier-10/+50
1. Enforce mutability declarations on class fields. Don't allow any mutation of class fields not declared as mutable (except inside the constructor). 2. Handle classes correctly in shape (treat classes like records).
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-2/+2
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-1/+1
2012-03-21add mut decls to rustc and make them mandatoryNiko Matsakis-6/+6
2012-03-19rustc: Fix mutability checking when dereferencing a region-annotated pointerPatrick Walton-7/+1
2012-03-15Improve error message for passing mutable argument by referenceTim Chevalier-1/+1
2012-03-14std: Rename the hashmap constructors to conform to new standardsBrian Anderson-1/+1
Instead of using the new_ prefix just name them after their type
2012-03-14allow immut vars to be moved. enforce mut vars after stage0 in std.Niko Matsakis-5/+12
2012-03-10Use loop instead of while(true) in libraries and compiler itselfTim Chevalier-2/+2
And remove spurious fails/unreachable() calls.
2012-03-08rustc: Add some missing cases in various folds for reference types and some ↵Patrick Walton-1/+1
broken trans code for the address-of operator
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-0/+1
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"Patrick Walton-1/+0
This reverts commit f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-0/+1
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-05rustc: Lower case error messagesBrian Anderson-1/+1
2012-03-02Move src/comp to src/rustcGraydon Hoare-0/+321