| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2011-04-09 | Move to single-uint file-position representation. | Marijn Haverbeke | -2/+3 | |
| This makes passing them around cheaper. There is now a table (see front/codemap.rs) that is needed to transform such an uint into an actual filename/line/col location. Also cleans up the span building in the parser a bit. | ||||
| 2011-04-08 | rustc: Resolve ty_locals | Patrick Walton | -3/+32 | |
| 2011-04-08 | rustc: Add the ability to fold over annotations | Patrick Walton | -36/+83 | |
| 2011-04-08 | Remove unused function. | Rafael Ávila de Espíndola | -17/+0 | |
| 2011-04-08 | Remove unused function. | Rafael Ávila de Espíndola | -12/+0 | |
| 2011-04-08 | fix long lines | Tim Chevalier | -36/+30 | |
| 2011-04-08 | Implemented computing prestates and poststates for a few expression forms. | Tim Chevalier | -63/+224 | |
| The typestate checker (if it's uncommented) now correctly rejects a trivial example program that has an uninitialized variable. | ||||
| 2011-04-07 | Make block results work for generic types | Brian Anderson | -14/+17 | |
| I think just about every type can be used as a block result now. There's quite a proliferation of tests here, but they all test slightly different things and some are split out to remain XFAILed. The tests of generic vectors are still XFAILed because generic aliased boxes still don't work in general. | ||||
| 2011-04-07 | rustc: Pointer cast when crossing a box boundary for statically-sized ↵ | Patrick Walton | -0/+4 | |
| elements in trans_index() | ||||
| 2011-04-07 | rustc: Pointer cast when autodereferencing boxed tag types | Patrick Walton | -1/+13 | |
| 2011-04-07 | rustc: Use the name "opaque_tag", not "tag", for opaque tags | Patrick Walton | -1/+1 | |
| 2011-04-07 | Support for self-calls that take arguments. | Lindsey Kuper | -33/+58 | |
| Nicer parsing of self-calls (expr_self_method nodes inside expr_call nodes, rather than a separate expr_call_self) makes typechecking tractable. We can now write self-calls that take arguments and return values (see: test/run-pass/obj-self-*.rs). | ||||
| 2011-04-07 | Fix problem in metadata writer | Marijn Haverbeke | -0/+4 | |
| It was creating non-multiple-of-four section sizes, which, for some reason, presumably by LLVM, were clipped, rather than padded, to be a multiple of four. | ||||
| 2011-04-07 | rustc: Remove useless call to type_of() in trans_rec() | Patrick Walton | -1/+0 | |
| 2011-04-07 | rustc: Allow dereference expressions to be used as lvalues. Add a test case. | Patrick Walton | -20/+26 | |
| 2011-04-07 | Add a -O option and change the Makefile to use it. | Rafael Ávila de Espíndola | -5/+5 | |
| 2011-04-07 | rustc: Reindent line. Puts out burning tinderbox. | Patrick Walton | -2/+2 | |
| 2011-04-07 | rustc: Link to external tag discriminants. Un-XFAIL test/run-pass/lib-option.rs. | Patrick Walton | -44/+52 | |
| 2011-04-07 | Merge branch 'master' of github.com:graydon/rust | Patrick Walton | -120/+281 | |
| 2011-04-07 | Run optimizations. | Rafael Ávila de Espíndola | -5/+66 | |
| It is always on for now just to make sure the bots are happy. If they are, I will add a -O option and update the makefile. | ||||
| 2011-04-06 | Continued sketching out code for checking states against preconditions. | Tim Chevalier | -115/+215 | |
| It's still sketchy. I added a typestate annotation field to statements tagged stmt_decl or stmt_expr, because a stmt_decl statement has a typestate that's different from that of its child node. This necessitated trivial changes to a bunch of other files all over to the compiler. I also added a few small standard library functions, some of which I didn't actually end up using but which I thought might be useful anyway. | ||||
| 2011-04-06 | Merge branch 'master' of github.com:graydon/rust | Patrick Walton | -205/+638 | |
| 2011-04-06 | Remove reference to nonexistent ast.module from typestate_check.rs, stage1 ↵ | Graydon Hoare | -1/+0 | |
| doesn't like it. | ||||
| 2011-04-05 | Brute force and ignorance workaround for tag-and-generic-obj; un-XFAIL it. | Graydon Hoare | -0/+3 | |
| 2011-04-06 | More work on typestate. Sketched out code for computing and checking ↵ | Tim Chevalier | -75/+482 | |
| prestates and poststates. Still a long ways away. | ||||
| 2011-04-05 | Last pieces of self-call support. | Lindsey Kuper | -5/+36 | |
| The last few pieces of the hack that lets us use trans.trans_call() to translate self-calls, plus a fix for the parser buy that was preventing self-call expressions from getting past parsing. test/run-pass/obj-self.rs works now (as in it actually prints "hi!" twice!). | ||||
| 2011-04-05 | Further on the path toward self-awareness. | Lindsey Kuper | -114/+87 | |
| Mostly: * Merciless refactoring of trans.rs so that trans_call can work for self-calls as well as other kinds of calls Also: * Various changes to go with having idents, rather than exprs, in expr_call_self AST nodes * Added missing case for SELF token to token.to_str() | ||||
| 2011-04-05 | FIx native wrapper generation to handle more arg types. | Graydon Hoare | -3/+23 | |
| 2011-04-05 | Knocking out a quick fixme: pretty-printing exprs in error messages. | Lindsey Kuper | -2/+3 | |
| 2011-04-04 | Make box prefix operator and box type carry mutability flag. | Graydon Hoare | -11/+10 | |
| 2011-04-03 | rustc: Make type_of() return the type of the wrapper for native functions. ↵ | Patrick Walton | -4/+4 | |
| lib-map now compiles, but fails to work properly. | ||||
| 2011-04-03 | Begin comparing vectors from the correct address | Brian Anderson | -1/+1 | |
| Start at the first element instead of the address of the vector. | ||||
| 2011-04-02 | Change rust_vec to have a 16-byte header, to 16-byte-align vec-body data. ↵ | Graydon Hoare | -0/+2 | |
| Major perf win. | ||||
| 2011-04-02 | Add FIXMEs around type handling in trans_if, trans_alt | Brian Anderson | -0/+2 | |
| 2011-04-02 | Join the results of alt arms so alt can be used as an expression. | Brian Anderson | -12/+18 | |
| Un-XFAIL expr-alt.rs. | ||||
| 2011-04-02 | Make join_results branch into the join block even when only one edge is live. | Brian Anderson | -6/+0 | |
| I don't don't totally understand the implications of this but it makes the behavior consistent for all live edges, which is going to make joining the arms of an alt expression work correctly. | ||||
| 2011-04-02 | Fail on non-exhaustive alt matches | Brian Anderson | -3/+3 | |
| 2011-04-02 | Terminate fail blocks by making their ends unreachable. | Brian Anderson | -3/+3 | |
| This will make implementing default alt arms simpler. | ||||
| 2011-04-01 | Write typarams for variants. Typecheck gets as far as ty.rs now. | Graydon Hoare | -2/+4 | |
| 2011-04-01 | Encode ty_native ebml node for native types so typechecker has something to ↵ | Graydon Hoare | -0/+1 | |
| work with. | ||||
| 2011-04-01 | Remove typestate_check reference to nonexistent ast.init node; rustc ↵ | Graydon Hoare | -1/+0 | |
| compiling itself notices what rustboot did not :) | ||||
| 2011-04-01 | Re-enable typestate_check in build, was lost during merge. Sorry. | Graydon Hoare | -1/+1 | |
| 2011-04-01 | Support for passing native types through metadata/creader. | Graydon Hoare | -1/+3 | |
| 2011-04-01 | Guh. Actually commit the staged undo-of-indentation. Forgotten git staging ↵ | Graydon Hoare | -56/+56 | |
| wins again. | ||||
| 2011-04-01 | Switch private linkage to local, re-indent trans.rs. | Graydon Hoare | -70/+70 | |
| 2011-04-01 | rustc: Write symbols for native items into the crate metadata | Patrick Walton | -0/+1 | |
| 2011-04-01 | rustc: Don't try to write symbols into the metadata for nullary tags. Puts ↵ | Patrick Walton | -1/+3 | |
| out burning tinderbox. | ||||
| 2011-04-01 | rustc: Get tag variants from the crate metadata | Patrick Walton | -10/+28 | |
| 2011-04-01 | rustc: Have tag_variants() return a new variant_info structure instead of an ↵ | Patrick Walton | -37/+40 | |
| AST node | ||||
| 2011-04-01 | Started adding support for typestate checking. | Tim Chevalier | -197/+685 | |
| I added a new field to the ast "ann" type for typestate information. Currently, the field contains a record of a precondition bit vector and postcondition vector, but I tried to structure things so as to make it easy to change the representation of the typestate annotation type. I also had to add annotations to some syntactic forms that didn't have them before (fail, ret, be...), with all the boilerplate changes that that would imply. The main call to the typestate_check entry point is commented out and the actual pre-postcondition algorithm only has a few cases implemented, though the overall AST traversal is there. The rest of the typestate algorithm isn't implemented yet. | ||||
