summary refs log tree commit diff
path: root/src/libsyntax
AgeCommit message (Collapse)AuthorLines
2012-11-12Reorder codemap declsBrian Anderson-32/+32
2012-11-12Remove CodeMap box typedef from codemapBrian Anderson-37/+39
2012-11-12Reformatting in codemapBrian Anderson-2/+5
2012-11-12Move codemap doc comments to the proper placeBrian Anderson-6/+6
2012-11-12Move filemap ctors to static methodsBrian Anderson-22/+26
2012-11-12Remove filemap box typedef from codemapBrian Anderson-21/+19
2012-11-12Convert most codemap types from records to structsBrian Anderson-34/+52
2012-11-12rustc: Implement floating point literal inference. r=nmatsakisPatrick Walton-4/+32
2012-11-07rustc: Support irrefutable patterns in function arguments. r=nmatsakisPatrick Walton-33/+80
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-258/+308
Fixes #1896 which was never truly fixed, just masked. The given tests would have failed had they used `~fn()` and not `@fn()`. They now result in compilation errors. Fixes #2978. Necessary first step for #2202, #2263.
2012-11-05rustc: Implement parsing and typechecking for "once fn"Patrick Walton-20/+88
2012-11-03Remove stage0 stuff that was awaiting snapshotTim Chevalier-49/+0
and re-register snapshots Just removing unneeded code, no review
2012-11-02syntax: Fold macros in default methods. Closes #3911Brian Anderson-1/+7
2012-11-02Fix #1996 (pending snapshot)Tim Chevalier-6/+6
Change int to uint in some extfmt code. Remove the #[cfg(stage0)] code after a snapshot.
2012-11-01Support #[cfg] on methodsBrian Anderson-0/+1
2012-10-30Fix #1458 (allow paren'd exprs to be the operator in a `do`)Tim Chevalier-1/+1
Closes #1458
2012-10-30Preserve parenthesization in the ASTTim Chevalier-177/+80
Maintain explicit "paren" nodes in the AST so we can pretty-print without having to guess where parens should go. We may revisit this in the future. r=graydon
2012-10-26rustc: Translate monomorphic intra-crate automatically-derived methods that ↵Patrick Walton-1/+1
follow the "eq" format
2012-10-26libsyntax: Fix pretty printing of tuple structs. Attempt to put out fire. ↵Patrick Walton-26/+51
rs=rustbot
2012-10-25libsyntax: Don't write a ctor ID for struct-like enum variants. rs=rustbotPatrick Walton-1/+1
2012-10-25Merge remote-tracking branch '14427/incoming'Brian Anderson-2/+2
Conflicts: src/libstd/sort.rs
2012-10-25rustc: Translate tuple struct constructorsPatrick Walton-5/+34
2012-10-24Merge branch 'method-vis-parse'Brian Anderson-10/+10
Conflicts: src/libsyntax/parse/parser.rs
2012-10-24rustc: Implement typechecking for tuple structs. r=nmatsakisPatrick Walton-5/+38
2012-10-24Make check & TidyMahmut Bulut-4/+3
2012-10-23Remove <- operator from the compilerTim Chevalier-76/+35
Yield an obsolete syntax error on things like "let foo <- bar;" and "foo <- bar;" r=brson Progress on #3466
2012-10-23 Remove uses of binary move in the compilerTim Chevalier-4/+4
2012-10-23Don't generate move-by-init in AST builderTim Chevalier-2/+8
2012-10-23rustc: Implement typechecking for simple monomorphic derivable traits on ↵Patrick Walton-22/+42
monomorphic types. r=brson
2012-10-23* Parsing sequence changedMahmut Bulut-11/+12
1- visibility parse 2- purity parse
2012-10-22Merge remote-tracking branch 'original/incoming' into incomingSimon BD-2496/+1692
2012-10-22Preliminary support for labeled break/continue for `loop`sTim Chevalier-1/+4
This patch adds preliminary middle-end support (liveness and trans) for breaks and `loop`s to `loop` constructs that have labels. while and for loops can't have labels yet. Progress on #2216
2012-10-22Simplify the AST representation of ty param boundsTim Chevalier-35/+21
Change ast::ty_param_bound so that all ty param bounds are represented as traits, with no special cases for Copy/Send/Owned/Const. typeck::collect generates the special cases. A consequence of this is that code using the #[no_core] attribute can't use the Copy kind/trait. Probably not a big deal? As a side effect, any user-defined traits that happen to be called Copy, etc. in the same module override the built-in Copy trait. r=nmatsakis Closes #2284
2012-10-20Parse and report obsolete fixed-length vector syntaxBrian Anderson-3/+77
2012-10-20...missed a merge marker on that last rebaseBen Striegel-1/+0
2012-10-20No longer parse old fixed-length vec sytnaxBen Striegel-38/+1
2012-10-20Remove old fixed-length vector syntaxBen Striegel-9/+5
2012-10-20libsyntax: adapt the pretty printer for the new fixed size array syntaxPhilipp Brüschweiler-2/+14
`[int]/5` -> `[int * 5]`
2012-10-18rustc: Implement intra-crate static methods on anonymous trait ↵Patrick Walton-29/+33
implementations. r=nmatsakis
2012-10-18Remove dead type definitionTim Chevalier-5/+1
2012-10-18libcore: minor code cleanup.Erick Tryzelaar-3/+1
This is minor and probably completely inconsequential to performance, but I find vec::map to be more clear than vec::each and a push.
2012-10-17libsyntax: refactor the parser to consider foreign items as itemsPhilipp Brüschweiler-26/+60
parse_item_or_view_item() would drop visibility if none of the conditions following it would hold. This was the case when parsing extern {} blocks, where the function was only used to parse view items, but discarded the visibility of the first not-view item.
2012-10-17Line lengthTim Chevalier-1/+2
2012-10-17word => word_spaceTim Chevalier-1/+1
2012-10-17remove duplicate visibility and fix indentationJyun-Yan You-11/+11
2012-10-17fix the indentation of foreign constantJyun-Yan You-0/+1
2012-10-15rustc: Merge module and type namespaces. r=brsonPatrick Walton-284/+282
2012-10-15Allow enum discriminator exprs to refer to declared constsTim Chevalier-0/+2
Also some work towards #3521 Closes #2428
2012-10-15libstd: make Serializer a trait-level typaramErick Tryzelaar-56/+136
2012-10-12Make moves explicit in libsyntaxTim Chevalier-2/+2