about summary refs log tree commit diff
path: root/src/libsyntax/print
AgeCommit message (Collapse)AuthorLines
2012-07-31accept naked exprs with commas in pattern armsNiko Matsakis-4/+16
pretty printing will use them, but indentation is slightly off if the expr is long
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-1/+1
2012-07-30Fix pretty-printing of consecutive idents.Paul Stansifer-6/+12
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-32/+32
2012-07-30Pretty-print token trees.Paul Stansifer-13/+38
2012-07-30Feed the interner to the pretty-printer, in anticipation of pretty-printing ↵Paul Stansifer-4/+5
token trees.
2012-07-30Impl-ize interner.Paul Stansifer-1/+6
2012-07-27Start killing off obsolete/unused quoters, and fix long lines.Graydon Hoare-10/+1
2012-07-24rustc: Don't require that structs have constructorsPatrick Walton-11/+13
2012-07-23rustc: Max/min classes: Add struct literal syntaxPatrick Walton-9/+17
2012-07-19Revert "accept naked exprs with commas in pattern arms" due to ↵Patrick Walton-16/+4
pretty-printing failures This reverts commit f712b2d76b1077a2241916cc3269aa1d83ce3088. In alt arms, the parser needs to do a little lookahead to determine whether it's looking at a record literal or a block. Also there are some indentation issues in the expected source.
2012-07-18accept naked exprs with commas in pattern armsNiko Matsakis-4/+16
pretty printing will use them, but indentation is slightly off if the expr is long
2012-07-18syntax: Parse multiple trait refs in a single implementationPatrick Walton-4/+6
2012-07-18prevent regions from escaping in ifaces; remove &r.T syntaxNiko Matsakis-1/+1
2012-07-17rustc: Implement and enforce instance coherencePatrick Walton-17/+21
2012-07-17Support attributes on class ctors and dtorsTim Chevalier-3/+9
Closes #2660
2012-07-16introduce an owned kind for data that contains no borrowed ptrsNiko Matsakis-0/+1
2012-07-14remove typestate from code, tests, and docsNiko Matsakis-85/+2
2012-07-14Get rid of ast::ty_vstore, which was only used for fixed length.Michael Sullivan-12/+4
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-270/+272
#2907.
2012-07-13Change the pretty printer to print vstores for strs in prefix notation.Michael Sullivan-16/+10
2012-07-13Front-end support for default impls in traits.Lindsey Kuper-1/+9
2012-07-12Pretty-print regions in slices correctlyTim Chevalier-2/+11
2012-07-12Fix region printing in the prettyprinterTim Chevalier-2/+2
2012-07-12Accept prefix notation for writing the types of str/~ and friends.Michael Sullivan-1/+1
2012-07-11infer when types are region parameterized rather than requiring /&Niko Matsakis-17/+5
- removes various fields from various variants in the AST - also update tests not to use this notation
2012-07-11We're going to have a hard time if we want to pretty-print token trees.Paul Stansifer-2/+25
2012-07-10Pretty print vectors as ~[] instead of []/~. Closes #2863.Michael Sullivan-10/+34
2012-07-10Don't pretty print unsafe pointers as carets, since #2826 is abandoned.Michael Sullivan-1/+1
2012-07-09syntax: Pretty-print view item attributesBrian Anderson-0/+1
2012-07-06First step on #2826, accept ^ for ty_ptr.Graydon Hoare-1/+1
2012-07-06For #2229, recognize 'again' in place of 'cont', final change pending snapshot.Graydon Hoare-1/+1
2012-07-06Plumbing and parsing for item-position macros.Eric Holk-0/+3
2012-07-05Change 'iface' to 'trait' internally; parse `trait` as `iface` synonymLindsey Kuper-5/+5
2012-07-03Revert "Remove rule requiring non-nil block-style statements to be ↵Brian Anderson-3/+5
semi-terminated" This reverts commit 0f5eaef5fb2443acd3ea67250c953839c3d04d38.
2012-07-03Remove rule requiring non-nil block-style statements to be semi-terminatedBrian Anderson-5/+3
This is a subtle rule that no longer seems to be required.
2012-07-02rustc: Implement a new resolve pass behind a compile flagPatrick Walton-1/+1
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-4/+12
Conflicts: src/compiletest/errors.rs src/libsyntax/parse/attr.rs src/libsyntax/parse/comments.rs src/test/compile-fail/ambig_impl_unify.rs src/test/compile-fail/assign-super.rs src/test/compile-fail/bad-for-loop.rs src/test/compile-fail/bad-var-env-capture-in-block-arg.rs src/test/compile-fail/block-arg-as-stmt-with-value.rs src/test/compile-fail/borrowck-assign-comp-idx.rs src/test/compile-fail/borrowck-lend-flow.rs src/test/compile-fail/borrowck-loan-blocks-move-cc.rs src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs src/test/compile-fail/borrowck-loan-rcvr.rs src/test/compile-fail/borrowck-loan-vec-content.rs src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs src/test/compile-fail/cap-clause-with-stack-closure.rs src/test/compile-fail/do1.rs src/test/compile-fail/do2.rs src/test/compile-fail/empty-vec-trailing-comma.rs src/test/compile-fail/evec-subtyping.rs src/test/compile-fail/issue-1896.rs src/test/compile-fail/issue-2149.rs src/test/compile-fail/issue-2150.rs src/test/compile-fail/issue-2487-b.rs src/test/compile-fail/kindck-implicit-close-over-mut-var.rs src/test/compile-fail/liveness-issue-2163.rs src/test/compile-fail/liveness-use-in-index-lvalue.rs src/test/compile-fail/no-reuse-move-arc.rs src/test/compile-fail/no-send-res-ports.rs src/test/compile-fail/non-const.rs src/test/compile-fail/pure-higher-order.rs src/test/compile-fail/pure-loop-body.rs src/test/compile-fail/regions-addr-of-upvar-self.rs src/test/compile-fail/regions-escape-loop-via-vec.rs src/test/compile-fail/regions-scoping.rs src/test/compile-fail/seq-args.rs src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs src/test/compile-fail/tstate-unsat-in-fn-expr.rs src/test/compile-fail/vec-add.rs src/test/compile-fail/vec-concat-bug.rs src/test/compile-fail/vector-no-ann.rs
2012-07-01Convert to new closure syntaxBrian Anderson-34/+34
2012-07-01syntax: Pretty print new closures correctlyBrian Anderson-6/+5
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-4/+4
2012-06-30syntax: Pretty-print 'do' correctlyBrian Anderson-0/+1
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-4/+12
1. make /// ... and //! ... and /** ... */ and /*! ... */ into sugar for #[doc = ...] attributes. 2. add a script in etc/ to help converting doc-attributes to doc-comments 3. add some functions to core::str to help with (1)
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-49/+49
2012-06-28Don't use literal info from the original source when pretty printing ↵Michael Sullivan-2/+5
expanded ASTs.
2012-06-27syntax: Don't use an enum name as a variable namePatrick Walton-5/+5
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-9/+10
This comes with a terminology change. All linkage-symbols are 'extern' now, including rust syms in other crates. Some extern ABIs are merely "foreign". The term "native" is retired, not clear/useful. What was "crust" is now "extern" applied to a _definition_. This is a bit of an overloading, but should be unambiguous: it means that the definition should be made available to some non-rust ABI.
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-53/+54
2012-06-25MergeTim Chevalier-3/+5
2012-06-24Remove resourcesTim Chevalier-49/+0
Also fixed shapes for classes with dtors, as well as handling offsets for classes with dtors correctly in take glue. Closes #2485