| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2012-03-02 | Move src/comp to src/rustc | Graydon Hoare | -75/+0 | |
| 2012-02-22 | Stop normalizing patterns | Marijn Haverbeke | -6/+7 | |
| The check for whether a pat_ident is a variant or a binding is simple and fast. Normalizing patterns again and again is slow and error-prone (several places were forgetting to do it). | ||||
| 2012-02-09 | Remove some pointless imports | Marijn Haverbeke | -1/+0 | |
| 2012-01-17 | Allow omission of the '.' after nullary tag patterns | Tim Chevalier | -2/+2 | |
| This commit allows patterns like: alt x { some(_) { ... } none { } } without the '.' after none. The parser suspends judgment about whether a bare ident is a tag or a new bound variable; instead, the resolver disambiguates. This means that any code after resolution that pattern-matches on patterns needs to call pat_util::normalize_pat, which consults an environment to do this disambiguation. In addition, local variables are no longer allowed to shadow tag names, so this required changing some code (e.g. renaming variables named "mut", and renaming ast::sub to subtract). The parser currently accepts patterns with and without the '.'. Once the compiler and libraries are changed, it will no longer accept the '.'. | ||||
| 2012-01-05 | require a non-semi expr acting as a stmt to have unit return type | Niko Matsakis | -7/+2 | |
| 2011-12-29 | split proto from fn_decl, as not all fn_decls know the proto. | Niko Matsakis | -3/+3 | |
| this will address the (crashing) new test added. | ||||
| 2011-12-23 | Go back to a single visit_fn function in visit.rs | Marijn Haverbeke | -3/+3 | |
| 2011-12-22 | Register new snapshots, purge log_err and log_full in favour of log(...). | Graydon Hoare | -3/+3 | |
| 2011-12-22 | Register snapshots and switch logging over to use of log_full or #error / ↵ | Graydon Hoare | -3/+3 | |
| #debug. | ||||
| 2011-12-21 | Make { || ... } sugar for any type of closure, inferred | Niko Matsakis | -12/+10 | |
| 2011-12-13 | Copy first batch of material from libstd to libcore. | Graydon Hoare | -1/+1 | |
| 2011-11-17 | remove compile-command from local variable blocks | Niko Matsakis | -1/+0 | |
| 2011-11-10 | Cleanup unused imports | Haitao Li | -7/+3 | |
| 2011-09-12 | Factor imports mindlessly. | Graydon Hoare | -19/+6 | |
| 2011-09-12 | Reformat for new mode syntax, step 1 | Marijn Haverbeke | -12/+12 | |
| Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit. | ||||
| 2011-09-02 | Reformat. Issue #855 | Brian Anderson | -3/+3 | |
| 2011-09-01 | Rename std::istr to std::str. Issue #855 | Brian Anderson | -1/+1 | |
| 2011-09-01 | Remove various istr conversions. Issue #855 | Brian Anderson | -1/+1 | |
| 2011-08-27 | Convert std::int to istrs. Issue #855 | Brian Anderson | -3/+3 | |
| 2011-08-27 | Convert std::uint to istrs. Issue #855 | Brian Anderson | -1/+2 | |
| 2011-08-22 | Move functions from syntax::ast to syntax::ast_util | Brian Anderson | -0/+1 | |
| This leaves syntax::ast just defining the AST, which strikes me as somewhat nicer | ||||
| 2011-08-20 | Reformat | Brian Anderson | -7/+7 | |
| This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[] | ||||
| 2011-08-15 | The wonky for...in... whitespace was bothering me. Sorry! | Lindsey Kuper | -1/+1 | |
| 2011-08-09 | Port the compiler to the ivec type [T] syntax. | Erick Tryzelaar | -10/+10 | |
| 2011-08-03 | Make ast::pat_bindings an iterator | Marijn Haverbeke | -3/+1 | |
| And use it to get rid of some repetetive code | ||||
| 2011-08-01 | Partially implement destructuring locals | Marijn Haverbeke | -1/+3 | |
| You can now say let {bcx, val} = some_result_returner(); Similar for loop variables. Assigning to such variables is not safe yet. Function arguments also remain a TODO. | ||||
| 2011-07-27 | Reformat for new syntax | Marijn Haverbeke | -41/+38 | |
| 2011-07-26 | Convert all code that uses walk.rs in the straightforward way to simple_visit | Marijn Haverbeke | -12/+12 | |
| Code that needs the keep_going functionality is still using walk. I will add an equivalent to visit.rs later. | ||||
| 2011-07-25 | Rename the block type to be blk also. Sorry. | Michael Sullivan | -1/+1 | |
| 2011-07-12 | rustc: Remove some useless std::vec imports | Patrick Walton | -1/+0 | |
| 2011-07-07 | rustc: Change lots of AST nodes to use interior vectors | Patrick Walton | -3/+3 | |
| 2011-07-06 | rustc: Move tstate::annotate over to interior vectors | Patrick Walton | -12/+12 | |
| 2011-07-06 | rustc: Revert the conversion to interior vectors due to heap corruption | Patrick Walton | -12/+12 | |
| 2011-07-06 | rustc: Move tstate::annotate over to interior vectors | Patrick Walton | -12/+12 | |
| 2011-07-06 | Remove temporary stdlib placeholders, use actual stdlib functions | Marijn Haverbeke | -6/+6 | |
| (Possible now that a snapshot took place.) | ||||
| 2011-07-05 | Move everything syntax-related to syntax/, break deps on rest of compiler | Marijn Haverbeke | -5/+6 | |
| src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs. | ||||
| 2011-06-30 | Warn for unused variables | Tim Chevalier | -10/+10 | |
| Modify typestate to check for unused variables and emit warnings where relevant. This exposed a (previously harmless) bug in collect_locals where outer functions had bit-vector entries for init constraints for variables declared in their inner nested functions. Fixing that required changing collect_locals to use visit instead of walk -- probably a good thing anyway. | ||||
| 2011-06-24 | Modify the fn vistors in walk so that they can handle functions without ↵ | Michael Sullivan | -4/+5 | |
| names. Update the typestate code to understand this. | ||||
| 2011-06-24 | Remove uses of variable name 'res' from rustc | Marijn Haverbeke | -14/+14 | |
| This in preparation of making 'res' a keyword for defining resources. Please don't introduce too many new ones in the meantime... | ||||
| 2011-06-21 | Move expr ids into the expr record type | Marijn Haverbeke | -2/+1 | |
| This simplifies the tag variants a bit and makes expr_node_id obsolete. | ||||
| 2011-06-20 | Get rid of def_ids and anns in AST nodes, use single node_id | Marijn Haverbeke | -28/+28 | |
| This reduces some redundancy in the AST data structures and cruft in the code that works with them. To get a def_id from a node_id, apply ast::local_def, which adds the local crate_num to the given node_id. Most code only deals with crate-local node_ids, and won't have to create def_ids at all. | ||||
| 2011-06-15 | Reformat source tree (minus a couple tests that are still grumpy). | Graydon Hoare | -32/+27 | |
| 2011-06-13 | Change decl to local in expr_for and expr_for_each | Tim Chevalier | -41/+4 | |
| Since the decl in a for or for-each loop must always be a local decl, I changed the AST to express this. Fewer potential match failures and "the impossible happened" error messages = yay! | ||||
| 2011-06-10 | Fix unsafe uses of mutable references | Marijn Haverbeke | -10/+10 | |
| 2011-06-01 | Redo typestate-related data structures to support predicate constraints. No ↵ | Tim Chevalier | -4/+4 | |
| actual support yet, just infrastructure. | ||||
| 2011-05-26 | Track spans for each local variable in typestate | Tim Chevalier | -8/+10 | |
| This lets us print better messages in situations with name shadowing. | ||||
| 2011-05-24 | Just removing some unnecessary imports. | Lindsey Kuper | -37/+0 | |
| 2011-05-20 | Change node_ann hash table to a vector in typestate | Tim Chevalier | -6/+7 | |
| 2011-05-19 | Add ann as an argument to visit_fn | Tim Chevalier | -7/+8 | |
| 2011-05-19 | Add ident as an argument to visit_fn (typestate wants it) | Tim Chevalier | -10/+8 | |
