summary refs log tree commit diff
path: root/src/libsyntax/print
AgeCommit message (Collapse)AuthorLines
2012-12-17Add support for destructuring vectors in match expressionsJakub Wieczorek-0/+10
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-2/+2
2012-12-12syntax: remove remaining #syntaxext machinery. Close #3516.Graydon Hoare-19/+20
2012-12-12syntax: remove most code handling old-style syntax extensions.Graydon Hoare-16/+0
2012-12-10Remove un-needed code for obsolete classesTim Chevalier-10/+2
and rename "class" to "struct" everywhere possible (except local vars, I was too lazy for that) -- that is why this commit is so big. No review, just dead code removal and renaming. Closes #3515
2012-12-07librustc: De-mode pattern bindings. r=nmatsakisPatrick Walton-1/+1
2012-12-07librustc: Implement "&mut [T]" as an expression. r=brsonPatrick Walton-0/+4
2012-12-07Fix pretty-printing of trait constraintsBrian Anderson-3/+5
2012-12-07syntax: try to fix pattern printing yet again, r=burningtree.Graydon Hoare-21/+30
2012-12-07syntax: try to fix pattern printing harder, r=burningtree.Graydon Hoare-20/+35
2012-12-07syntax: pretty print bind_by_value patterns as "copy", r=burningtree.Graydon Hoare-2/+4
2012-12-07syntax: fix a pp bug on foreign mods.Graydon Hoare-0/+1
2012-12-06Revert "Print copy patterns correctly"Tim Chevalier-4/+2
This reverts commit ea6819637382e7f8979766b954dd2a1922d0dee0.
2012-12-06Print copy patterns correctlyTim Chevalier-2/+4
2012-12-05librustc: Hook borrow check loan checking up to the moves-based-on-type ↵Patrick Walton-1/+5
infrastructure. rs=helps-unbreak-the-build
2012-12-04librustc: Long lines. rs=rustbotPatrick Walton-1/+2
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-82/+82
rs=refactoring
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+20
2012-11-30librustc: Make `a.b()` always a method call. r=nmatsakisPatrick Walton-30/+59
2012-11-29librustc: Eliminate most expressions of the form `a.b()` that are not method ↵Patrick Walton-8/+8
calls. rs=refactoring
2012-11-29Distinguish `stmt_mac`s that are followed by semicolons and those that aren't.Paul Stansifer-1/+2
2012-11-29Allow for macros to occur in statement position.Paul Stansifer-0/+4
2012-11-28Merge remote-tracking branch 'brson/companion' into incomingBrian Anderson-15/+0
Conflicts: src/compiletest/compiletest.rs src/libcargo/cargo.rs src/libcore/core.rs src/librustc/rustc.rs src/librustdoc/rustdoc.rc
2012-11-28Register snapshotsBrian Anderson-15/+0
2012-11-28librustc: Parse `extern "C" { ... }`. r=brsonPatrick Walton-0/+1
2012-11-27librustc: Implement @mut [T] as the new replacement for @[mut T]Patrick Walton-0/+4
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+15
2012-11-17Merge remote-tracking branch 'brson/codemap'Brian Anderson-12/+12
Conflicts: src/libsyntax/ext/source_util.rs
2012-11-16Change spans to use byte offsets instead of char offsetsBrian Anderson-5/+5
2012-11-14Add types for character position and byte position in the codemapBrian Anderson-7/+7
2012-11-14librustc: Require the #[derivable] attribute, remove the significance of ↵Patrick Walton-11/+8
"impl Foo : Bar;", and allow only a subset of methods in a trait to be derived. r=brson
2012-11-13rustc: fix pp build breakage.Graydon Hoare-1/+1
2012-11-12Objectify the codemapBrian Anderson-2/+2
2012-11-12Remove CodeMap box typedef from codemapBrian Anderson-3/+3
2012-11-12rustc: Implement floating point literal inference. r=nmatsakisPatrick Walton-0/+1
2012-11-07rustc: Support irrefutable patterns in function arguments. r=nmatsakisPatrick Walton-6/+13
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-63/+87
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-8/+28
2012-10-30Preserve parenthesization in the ASTTim Chevalier-62/+21
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-26libsyntax: Fix pretty printing of tuple structs. Attempt to put out fire. ↵Patrick Walton-26/+51
rs=rustbot
2012-10-23Remove <- operator from the compilerTim Chevalier-13/+4
Yield an obsolete syntax error on things like "let foo <- bar;" and "foo <- bar;" r=brson Progress on #3466
2012-10-23rustc: Implement typechecking for simple monomorphic derivable traits on ↵Patrick Walton-5/+12
monomorphic types. r=brson
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-8/+2
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-20libsyntax: adapt the pretty printer for the new fixed size array syntaxPhilipp Brüschweiler-2/+14
`[int]/5` -> `[int * 5]`
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-7/+7