about summary refs log tree commit diff
path: root/src/comp/front
AgeCommit message (Collapse)AuthorLines
2011-06-19rustc: Rename session.span_err -> span_fatal, err -> fatalBrian Anderson-39/+44
Issue #440
2011-06-18rustc: Store the lhs and rhs of receive exprs in left to right orderBrian Anderson-1/+1
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-18rustc: receive is spelled |> nowBrian Anderson-1/+1
2011-06-18rustc: Remove the meta keywordBrian Anderson-11/+0
Issue #487
2011-06-17rustc: Remove metadata from the session.Brian Anderson-3/+1
This mechanism was not being used for anything. Issue #487.
2011-06-16Consistify ast::local.Paul Stansifer-16/+20
2011-06-16Add better error messages for bad attributes in .rc filesBrian Anderson-1/+2
Issue #487
2011-06-16rustc: Fix regressed handling of bad attributesBrian Anderson-1/+6
Issue #487
2011-06-16rustc: Change print_file to print_crateBrian Anderson-6/+10
The pretty-printer needs access to the crate attributes in order to reproduce inner crate attributes in standalone .rs files Issue #487
2011-06-16rustc: Parse crate attributes in standalone .rs filesBrian Anderson-1/+5
Issue #487
2011-06-16rustc: Parse attributes in crate filesBrian Anderson-5/+15
Issue #487
2011-06-16rustc: Parse inner items of file-level modules linked from crate filesBrian Anderson-4/+8
Issue #487
2011-06-16Reformat a bunch of recent churn.Graydon Hoare-26/+32
2011-06-16rustc: Parse T[mutable?]Patrick Walton-1/+6
2011-06-16rustc: Correctly mark attributes as inner attributesBrian Anderson-8/+14
Issue #487
2011-06-16rustc: Parse inner attributes of modulesBrian Anderson-17/+49
Issue #487
2011-06-16rustc: Parse interior vector types in which the base type is a path properlyPatrick Walton-14/+36
2011-06-16Bring back if-checkTim Chevalier-2/+20
Add "if check" (expr_if_check), a variation on check that executes an "else" clause rather than failing if the check doesn't hold.
2011-06-16Parse swap.Michael Sullivan-5/+15
2011-06-16Add "<->" to the token definition and the lexer.Michael Sullivan-1/+9
2011-06-16rustc: Change interior vector syntax to `T[]`Patrick Walton-6/+21
2011-06-16Refactor ast::item representationMarijn Haverbeke-47/+39
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-15Improve and test failure behavior for malformed attributesBrian Anderson-1/+13
2011-06-15rustc: Support outer attributes on items that are defined as statementsBrian Anderson-9/+61
Issue #487
2011-06-15Refactor data structures representing constraints (again...)Tim Chevalier-13/+11
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-15Small simplification in parser.rs' crate parsingMarijn Haverbeke-7/+1
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-2090/+1287
2011-06-15rustc: Make room in remaining AST item nodes for attributesBrian Anderson-35/+40
Issue #487
2011-06-15rustc: Introduce an attribute type to the ASTBrian Anderson-9/+32
Right now the only thing that it adds to meta_item is an indication of whether the attribute was declared inside or outside the item, but I expect it will become more useful. Issue #487
2011-06-15rustc: Parse module attributesBrian Anderson-6/+21
Issue #487
2011-06-15rustc: Make room in item_mod for metadataBrian Anderson-5/+5
Issue #487
2011-06-15rustc: Modernize front::evalBrian Anderson-37/+26
2011-06-15Stop dropping object field mutability on the floorMarijn Haverbeke-12/+6
2011-06-14Modernize some code in parser.rsMarijn Haverbeke-132/+82
No more explicit type params or working around rustboot bugs
2011-06-14Print parens on unops when necessary. 'make reformat' output now builds to ↵Graydon Hoare-0/+1
stage3.
2011-06-14Fix bug in detecting trailing comments when at beginning-of-file.Graydon Hoare-1/+3
2011-06-14Implement function expressions/anonymous functionsMarijn Haverbeke-5/+25
Looks like 'fn(..arg..) -> ret {body;}. They don't support type parameters or upvars yet.
2011-06-14Remove 'peeking_at_item' from parserMarijn Haverbeke-52/+41
parse_item now returns a value to indicate it didn't find an item
2011-06-13Change decl to local in expr_for and expr_for_eachTim Chevalier-15/+15
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-10Reject programs with unsatisfied predicate constraintsTim Chevalier-17/+60
Generate appropriate constraints for calls to functions with preconditions, and reject calls where those constraints don't hold true in the prestate. ...by which I mean that it works for one test case :-)
2011-06-10Implement meta tag matching in creader. Start using it in rustc.rc. Close ↵Graydon Hoare-5/+48
#459. Close #457.
2011-06-10Encode meta tags in the crate and start sketching enhanced logic for ↵Graydon Hoare-22/+79
resolving crate "use" directives. Now with extra "works on OSX" kludging.
2011-06-10Merge pull request #447 from paulstansifer/quick_error_message_fixPatrick Walton-0/+8
Error message, instead of segfault, when recursive types are used.
2011-06-10rustc: Remove the bitwise not operatorPatrick Walton-9/+0
2011-06-10Implement mutable/immutable alias distinction.Marijn Haverbeke-15/+10
Before, all aliases were implicitly mutable, and writing &mutable was the same as writing &. Now, the two are distinguished, and assignments to regular aliases are no longer allowed.
2011-06-10Fix all occurrences of writing to immutable aliasesMarijn Haverbeke-4/+4
You'd be surprised.
2011-06-09Revert "Encode meta tags in the crate and start sketching enhanced logic for ↵Patrick Walton-79/+22
resolving crate "use" directives." due to tree bustage This reverts commit ab3635eebef2b8cf0e19cdbc5b4e8dd7a49a4658.
2011-06-09rustc: Write interior vecs and strings into the metadata and add logic for ↵Patrick Walton-0/+2
them in ty_to_str
2011-06-09Encode meta tags in the crate and start sketching enhanced logic for ↵Graydon Hoare-22/+79
resolving crate "use" directives.
2011-06-09rustc: Annotate vector and string literals in the AST with their uniqueness ↵Patrick Walton-27/+45
or lack thereof