summary refs log tree commit diff
path: root/src/libsyntax/print
AgeCommit message (Collapse)AuthorLines
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
2012-06-22Remove 'implements' keyword in favour of :, part of #2301.Graydon Hoare-3/+5
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-3/+2
2012-06-20Remove bind. Issue #2189Brian Anderson-21/+3
2012-06-18Add 'do' expressionsBrian Anderson-0/+3
2012-06-14Further work on integer literal suffix inference (#1425)Lindsey Kuper-7/+3
In this commit: * Change the lit_int_unsuffixed AST node to not carry a type, since it doesn't need one * Don't print "(unsuffixed)" when pretty-printing unsuffixed integer literals * Just print "I" instead of "(integral)" for integral type variables * Set up trans to use the information that will be gathered during typeck to construct the appropriate constants for unsuffixed int literals * Add logic for handling int_ty_sets in typeck::infer * Clean up unnecessary code in typeck::infer * Add missing mk_ functions to middle::ty * Add ty_var_integral to a few of the type utility functions it was missing from in middle::ty
2012-06-13Box AST identsBrian Anderson-36/+36
2012-06-11Add a new AST node for unsuffixed integer types.Lindsey Kuper-0/+11
2012-06-06Insert missing maybe_print_comment call for class destructorsTim Chevalier-0/+1
While it wasn't the original issue, the first program from #2487 failed the pretty-printing test because of this, so it's still a good test case :-) It also turns out that the second program from #2487 now triggers a kind error, so I figured I might as well add it as a test case.
2012-06-06borrowck changes: some copies, some removed mut annotations, some dvecNiko Matsakis-14/+14
2012-05-31Implement 2 kinds of char / str escaping. Use in rustc. Close #2306.Graydon Hoare-24/+2
2012-05-31Rename librustsyntax to libsyntaxKevin Cantu-0/+2389
Per issue #2418.