| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2011-07-05 | Move everything syntax-related to syntax/, break deps on rest of compiler | Marijn Haverbeke | -2198/+0 | |
| 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-07-05 | Move pretty-printing 'modes' into a callback hook | Marijn Haverbeke | -66/+32 | |
| This way, the pretty-printer does not have to know about middle::ty. (This is a preparation for separating the AST functionality into a separate crate.) | ||||
| 2011-07-04 | Move the ids of pat AST nodes into their struct | Marijn Haverbeke | -5/+5 | |
| Just like it was done with items and exprs. Simplifies some code. | ||||
| 2011-07-02 | Allow any string expression to be used with fail. | Josh Matthews | -3/+3 | |
| 2011-07-01 | rustc: Move path_to_str to front::ast | Patrick Walton | -2/+2 | |
| 2011-07-01 | Revert "rustc: Change methods in ty::t to use interior vectors" | Patrick Walton | -3/+3 | |
| This reverts commit 6720ea760df41df82af880b593e5b6023608d6cd. | ||||
| 2011-07-01 | rustc: Change methods in ty::t to use interior vectors | Patrick Walton | -3/+3 | |
| 2011-07-01 | Track def_ids of native types so that they can be distinguished | Marijn Haverbeke | -1/+1 | |
| Closes #526 | ||||
| 2011-07-01 | Allow 'newtype' syntax for tags | Marijn Haverbeke | -15/+31 | |
| Doing this: tag foo = mytype; is now equivalent to doing this: tag foo { foo(mytype); } | ||||
| 2011-07-01 | Make sure the pretty-printer understand resources | Marijn Haverbeke | -1/+4 | |
| 2011-06-30 | Minor pp cleanups. | Graydon Hoare | -4/+4 | |
| 2011-06-30 | Preserve hard \n\n pairs from source when pretty-printing, as explicit ↵ | Graydon Hoare | -9/+12 | |
| formatting control from users. | ||||
| 2011-06-30 | rustc: Change function argument types to interior vectors | Patrick Walton | -6/+6 | |
| 2011-06-30 | Pretty-print view items in mod items | Brian Anderson | -5/+4 | |
| For mods that aren't defined at the file level we were forgetting to print the view items so, e.g. 'mod { use std; }' would not print correctly. | ||||
| 2011-06-30 | rustc: Use interior vectors for record types | Patrick Walton | -2/+2 | |
| 2011-06-30 | rustc: Use interior vectors for tuple types | Patrick Walton | -2/+2 | |
| 2011-06-28 | Implement "claim" | Tim Chevalier | -2/+9 | |
| Implement "claim" (issue #14), which is a version of "check" that doesn't really do the check at runtime. It's an unsafe feature. The new flag --check-claims turns claims into checks automatically -- but it's off by default, so by default, the assertion in a claim doesn't execute at runtime. | ||||
| 2011-06-28 | Teach the parser and typechecker to understand port[int](). Closes #588 | Eric Holk | -1/+12 | |
| 2011-06-28 | Write metadata for more meta_item types. Issue #487 | Brian Anderson | -6/+10 | |
| 2011-06-28 | Write metadata for crate attributes. Issue #487 | Brian Anderson | -0/+4 | |
| 2011-06-28 | List crate attributes when running rustc with '--ls' | Brian Anderson | -0/+4 | |
| 2011-06-27 | Move metadata::cwriter::encode to metadata::tyencode | Brian Anderson | -2/+2 | |
| 2011-06-27 | Rename middle::metadata to metadata::cwriter. Move creader to metadata | Brian Anderson | -2/+2 | |
| Preparation for a lot more metadata refactoring | ||||
| 2011-06-25 | Partial implementation of resources | Marijn Haverbeke | -0/+12 | |
| Non-copyability is not enforced yet, and something is still flaky with dropping of the internal value, so don't actually use them yet. I'm merging this in so that I don't have to keep merging against new patches. | ||||
| 2011-06-24 | Modify the fn vistors in walk so that they can handle functions without ↵ | Michael Sullivan | -0/+7 | |
| names. Update the typestate code to understand this. | ||||
| 2011-06-23 | rustc: Pretty-print ternary operator | Brian Anderson | -0/+12 | |
| 2011-06-23 | Flesh out type pp code. | Graydon Hoare | -4/+19 | |
| 2011-06-23 | Correct error message for argument mode mismatch | Tim Chevalier | -6/+17 | |
| If you use a function expecting an alias argument in a context that expects a function expecting a value argument, or vice versa, the previous error message complained that the number of arguments was wrong. Fixed the error message to be accurate. | ||||
| 2011-06-22 | rustc: Downcase metadata::Encode | Brian Anderson | -1/+1 | |
| 2011-06-22 | Fix bug: globbed imports were importing everything visible from the other | Paul Stansifer | -2/+11 | |
| module, not just everything exported. | ||||
| 2011-06-22 | rustc: Introduce and parse additional meta_item forms | Brian Anderson | -3/+12 | |
| Examples: #[test], #[link(name = "vers")] Issue #487 | ||||
| 2011-06-21 | Move names and ids of native items into their recs, rather than their tags | Marijn Haverbeke | -5/+5 | |
| 2011-06-21 | Move expr ids into the expr record type | Marijn Haverbeke | -51/+49 | |
| 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 | -10/+11 | |
| 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-20 | Tighten up the hardbreak rules a bit. | Graydon Hoare | -5/+7 | |
| 2011-06-20 | Suppress hardbreaks when following hardbreaks. | Graydon Hoare | -6/+7 | |
| 2011-06-20 | Fix interference between if-check and if printing. | Graydon Hoare | -4/+6 | |
| 2011-06-20 | Fix pp blank-lines insertion at beginning of file and before 'let' decls. | Graydon Hoare | -7/+13 | |
| 2011-06-19 | Fix pp blank-line insertion after isolated comments in cboxes. | Graydon Hoare | -8/+21 | |
| 2011-06-18 | rustc: Store the lhs and rhs of receive exprs in left to right order | Brian Anderson | -2/+2 | |
| With the changing of receive semantics the parser has been putting the rhs expression in the first argument of expr_recv and the lhs in the second, and all subsequent passes have been referring to them backwords (but still doing the right thing because they were assuming that lhs was the port and rhs was the receiver). This makes all code agree on what lhs and rhs mean for receive expressions. | ||||
| 2011-06-16 | Consistify ast::local. | Paul Stansifer | -4/+4 | |
| 2011-06-16 | rustc: Change print_file to print_crate | Brian Anderson | -3/+4 | |
| The pretty-printer needs access to the crate attributes in order to reproduce inner crate attributes in standalone .rs files Issue #487 | ||||
| 2011-06-16 | Reformat a bunch of recent churn. | Graydon Hoare | -28/+15 | |
| 2011-06-16 | rustc: Pretty print module inner attributes | Brian Anderson | -7/+17 | |
| Issue #487 | ||||
| 2011-06-16 | Pretty-print if-check | Tim Chevalier | -37/+46 | |
| 2011-06-16 | rustc: Pretty print interior vector types | Patrick Walton | -0/+6 | |
| 2011-06-16 | Bring swap through typechecking and typestate. | Michael Sullivan | -0/+6 | |
| 2011-06-16 | Refactor ast::item representation | Marijn Haverbeke | -22/+22 | |
| Most of the fields in an AST item were present in all variants. Things could be simplified considerably by putting them in the rec rather than in the variant tags. | ||||
| 2011-06-15 | Refactor data structures representing constraints (again...) | Tim Chevalier | -37/+47 | |
| I added a "resolved" version of the ast::constr type -- ty::constr_def -- that has a def_id field instead of an ann_field. This is more consistent with other types and eliminates some checking. Incidentally, I removed the def_map argument to the top-level function in middle::alias, since the ty::ctxt already has a def_map field. | ||||
| 2011-06-15 | Added issue # to FIXME. | Lindsey Kuper | -1/+1 | |
