about summary refs log tree commit diff
path: root/src/comp/front
AgeCommit message (Collapse)AuthorLines
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
2011-06-01Move brace/if/for/while/do/alt/spawn exprs into bottom_expr rule.Graydon Hoare-23/+19
2011-05-31Now imports are not re-exported unless 'export' is explicitly used.Paul Stansifer-6/+26
2011-05-31Support move as an initializer.Michael Sullivan-0/+6
2011-05-31Insert plumbing for move that behaves just like assign.Michael Sullivan-0/+7
2011-05-31Teach the compiler to understand yield and join, as well as using task as a ↵Eric Holk-1/+3
type name.
2011-05-31Fix comment-scanning logic in lexer.Graydon Hoare-2/+4
2011-05-31Consolidate formatting functions a bit more.Graydon Hoare-3/+3
2011-05-31Add span to field to catch per-field comments in rec exprs.Graydon Hoare-5/+7
2011-05-31Improve comment handling in pp.Graydon Hoare-58/+163
2011-05-31rustc: Remove unneeded type params from alt patternsBrian Anderson-28/+28
2011-05-27Change the syntax for RECV from "var <- port" to "port |> var".Michael Sullivan-2/+2
2011-05-27Fix missing bump in RECV lexer case.Michael Sullivan-0/+1
2011-05-27Pretty print the new RECV token...Michael Sullivan-0/+1
2011-05-27Remove parser support for recv as an initializer in preparation for changing ↵Michael Sullivan-5/+7
the recv syntax.
2011-05-27Lex '|>' as the RECV token.Michael Sullivan-6/+14
2011-05-27"import module::*;" now works.Paul Stansifer-1/+0
2011-05-27Parsing and folding changes for globbed imports.Paul Stansifer-12/+42
2011-05-26Remove unused importsTim Chevalier-4/+1
2011-05-26Remove redisue of unused fields from 'ann'.Graydon Hoare-8/+2
2011-05-26Remove residual uses of fold, and fold itself.Graydon Hoare-30/+35
2011-05-25rustc: Fail better when the first argument to #fmt is not a string literalBrian Anderson-2/+3