about summary refs log tree commit diff
path: root/src/comp/front
AgeCommit message (Collapse)AuthorLines
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
2011-06-09rustc: Add ty_istr and ty_ivec typesPatrick Walton-3/+3
2011-06-09rustc: Parse istr and ivecPatrick Walton-0/+8
2011-06-09Further support for predicate constraintsTim Chevalier-52/+98
Changed function types to include a list of constraints. Added code for parsing and pretty-printing constraints. This necessitated splitting pprust into two files (pprust and ppaux) to break a circulate dependency, as ty_to_str now needs to print out constraints, which may include literals, but pprust depended on ty.
2011-06-09A revised, improved alias-checkerMarijn Haverbeke-0/+4
The old system tried to ensure that the location an alias pointed at would retain its type. That turned out to not be strong enough in the face of aliases to the inside of tags. The new system instead proves that values pointed to by aliases are not replaced (or invalidated in some other way) at all. It knows of two sufficient conditions for this, and tries to prove at least of them: A) The alias is 'immutably rooted' in a local, and this local is not reassigned for the lifetime of the alias. Immutably rooted means the alias refers to the local itself, or to something reachable from the local through immutable dereferencing. B) No value whose type might include the type of the 'inner mutable element' of the thing the alias refers to (for example, the box in rec(mutable x = @mutable int)) is from the outer scope is accessed for the lifetime of the alias. This means for functions, no other argument types may include the alias's inner mutable type. For alt, for each, and for, it means the body does not refer to any locals originating from outside their scope that include this type. The lifetime of an alias in an alt, for each, or for body is defined as the range from its definition to its last use, not to the point where it goes out of scope. This makes working around these restrictions somewhat less annoying. For example, you can assign to your alt-ed value you don't refer to any bindings afterwards.
2011-06-08Add optional message to fail.Josh Matthews-4/+13
2011-06-07More work on proper linkage name-mangling. Almost right, aside from version ↵Graydon Hoare-4/+18
numbers.
2011-06-07Add multiline, whitespace-eating strings.Josh Matthews-0/+3
2011-06-04stdlib: Use spans for #fmt errors originating in stdBrian Anderson-1/+7
Issue #444
2011-06-04rustc: Reenable debug logging in extfmtBrian Anderson-8/+7
This is not obnoxious now that logging is off by default
2011-06-04rustc: Hide the parser from syntax extensionsBrian Anderson-9/+5
Eventually extensions will probably need access to the parser again, but it'll be in a different form.
2011-06-04rustc: Generate extension annotations from ext_ctxt instead of parserBrian Anderson-65/+67
2011-06-04rustc: Add a next_ann method to ext_ctxtBrian Anderson-4/+13
After this we can remove the parser from the syntax extensions, at least for now.
2011-06-04rustc: Use spans for #env errorsBrian Anderson-5/+9
Issue #444
2011-06-04rustc: Report unimplemented #fmt features with spansBrian Anderson-26/+22
2011-06-04rustc: Add a span_unimpl method to ext_ctxtBrian Anderson-5/+13
2011-06-04rustc: Use spans on extfmt error messagesBrian Anderson-29/+31
Issue #444
2011-06-04rustc: Return the correct span from parse_seqBrian Anderson-7/+4
2011-06-04rustc: Pass the correct span to syntax extensionsBrian Anderson-1/+2
2011-06-04rustc: Introduce ext module. Move some things from parser to ext.Brian Anderson-24/+67
Introduce an ext_ctxt record to provide a span_err method for use while expanding syntax extensions. Hopefully it will be useful for other things.
2011-06-03"macro" -> "syntax extension" for nowPaul Stansifer-22/+22
2011-06-03Make the macro system more modular.Paul Stansifer-75/+59
2011-06-03Add spans to fields, args, methods. Improve pp of same.Graydon Hoare-13/+17
2011-06-03Parse pointers in metadata.Rafael Ávila de Espíndola-0/+1
2011-06-03Accept *foo as a pointer to foo.Rafael Ávila de Espíndola-0/+6
This is accepted everywhere, since just passing a pointer is safe.
2011-06-02Pretty-print literals exactly as we saw them in the source.Graydon Hoare-5/+29
2011-06-02Implement pcwalton's code review suggestions.Paul Stansifer-1/+1
2011-06-02Error message, instead of segfault, when recursive types are used.Paul Stansifer-0/+8
2011-06-01Allow constraint args to be literalsTim Chevalier-0/+1
2011-06-01Add a space after @mutable.Graydon Hoare-1/+1