about summary refs log tree commit diff
path: root/src/libsyntax/print/pprust.rs
AgeCommit message (Collapse)AuthorLines
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
2012-10-12remove ctor from ast (take 2) (no review: just dead code removal)Niko Matsakis-12/+0
2012-10-08Revert "remove ctor from ast"Tim Chevalier-0/+12
This reverts commit ed3689d57c988e1dd477930d957c4308c37d1a64.
2012-10-08remove ctor from astNiko Matsakis-12/+0
2012-10-05Remove by-mutable-ref mode from the compilerTim Chevalier-1/+0
and test cases. Closes #3513
2012-10-05Revert "wip"Tim Chevalier-0/+1
This reverts commit ca49fd402af8e7bf613c43e996274b5a017958d2.
2012-10-05wipTim Chevalier-1/+0
2012-09-28Pretty-print item visibility modifiersBrian Anderson-0/+1
2012-09-28demode vecNiko Matsakis-1/+1
2012-09-27core: More option demodingBrian Anderson-4/+4
2012-09-26turn ast::ident into a structErick Tryzelaar-17/+17
This will help with the auto_serialize2 migration. We have to change ident from a type alias to uint into a unique type. We need to use a struct instead of a "enum ident = token::str_num" because structs support constants, but newtypes do not.
2012-09-23core: Demode optionBrian Anderson-7/+7
2012-09-21libsyntax: Fix botched mergePatrick Walton-1/+1
2012-09-21libcore: De-mode strPatrick Walton-3/+3
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-18/+52
#[legacy_exports];
2012-09-20Revert "syntax: Make attributes sendable for rustdoc's benefit"Brian Anderson-4/+4
This reverts commit 90e3665fa79d32c3188169cfa992516fb36b81a8.
2012-09-20syntax: Make attributes sendable for rustdoc's benefitBrian Anderson-4/+4
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-28/+32
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-1/+1
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-2/+2
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-2/+2
2012-09-18libcore: make a copyless io::BytesWriterErick Tryzelaar-21/+21
2012-09-18libsyntax: Remove 'unchecked_blk' from ASTBrian Anderson-1/+0
2012-09-14Have parser recognize static, self region.Niko Matsakis-24/+24
Fixes a bug in methods that &self couldn't be referenced in the body. Also fixes #2479.
2012-09-11Introduce auto adjustment table to subsume autoderef/autoref/borrowings.Niko Matsakis-11/+21
Fixes #3261 Fixes #3443
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-1/+1
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-1/+1
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-15/+28
Only called for string patterns.
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-4/+4
2012-09-07Convert 'again' to 'loop'. Remove 'again' keywordBrian Anderson-1/+1
2012-09-07Remove support for multiple traits in a single implTim Chevalier-6/+7
There was half-working support for them, but they were never fully implemented or even approved. Remove them altogether. Closes #3410