summary refs log tree commit diff
path: root/src/test/pretty
AgeCommit message (Collapse)AuthorLines
2012-07-10Pretty print vectors as ~[] instead of []/~. Closes #2863.Michael Sullivan-38/+38
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-1/+1
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-04Remove empty argument lists from do expressionsBen Striegel-1/+1
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-0/+32
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-3/+6
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-2/+2
2012-06-30syntax: Pretty-print 'do' correctlyBrian Anderson-0/+7
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-0/+32
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-14/+14
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-1/+1
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-16/+16
2012-05-04new cap clause syntaxNiko Matsakis-6/+6
2012-04-07Do not consider ty_bot to be a "resolved type".Niko Matsakis-1/+3
Fixes #2149. Fixes #2150. Fixes #2151.
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-3/+3
2012-03-19test: Remove pretty/issue-953. Doesn't typecheckBrian Anderson-5/+0
2012-02-15Rewrite exhaustiveness checkerMarijn Haverbeke-7/+7
Issue #352 Closes #1720 The old checker would happily accept things like 'alt x { @some(a) { a } }'. It now properly descends into patterns, checks exhaustiveness of booleans, and complains when number/string patterns aren't exhaustive.
2012-02-05test: Issue #953, not #959Brian Anderson-0/+0
2012-02-05test: Add an xfailed test for issue #959Brian Anderson-0/+5
2012-02-05test: Add an xfailed test for issue #929Brian Anderson-0/+4
2012-02-03Fix various drift issues in the qq branch.Graydon Hoare-1/+1
2012-01-30Change all ternary ops to if/then/elsePaul Woolcock-1/+11
All the files below had at least one instance of the ternary operator present in the source. All have been changed to the equivalent if/then/else expression.
2012-01-30Alter/remove tests that include/concern ternaryPaul Woolcock-1/+1
3 tests, pretty/block-disambig.rs, run-pass/operator-overloading.rs, and run-pass/weird-exprs.rs, all included the ternary operator. These were changed to use the if-then-else construct instead. 2 tests, run-pass/block-arg-in-ternary.rs and run-pass/ternary.rs, were only there because of the ternary operator, and were removed.
2012-01-23s/block()/fn()/gNiko Matsakis-1/+1
2012-01-19rustc: Make the pretty printer output commas after enum variants. Update all ↵Patrick Walton-2/+2
tests accordingly.
2012-01-19Rename fn*() to fn() as originally planned.Niko Matsakis-0/+8
2012-01-15rustc: Parse fn inner attributes. Closes #1506Brian Anderson-0/+13
2012-01-13Remove tests for objs, adjust tests that use objsMarijn Haverbeke-14/+0
2012-01-10test: Fix test/pretty/tag-blank-lines.rs for the tag -> enum switchPatrick Walton-1/+1
2012-01-10rename sendfn to fn~, lambda to fn@Niko Matsakis-3/+3
2012-01-09Remove proto_sugar and 'lambda' as keyword, commit to fn@.Graydon Hoare-3/+3
2012-01-05make test typecheckNiko Matsakis-3/+0
2012-01-05fix pretty printer to correctly insert parens for disambNiko Matsakis-1/+6
2012-01-05update test on disambig to reflect that some cases are no longer legalNiko Matsakis-3/+3
2012-01-03Allow tail expressions even in no_value blocks. Type checkerNiko Matsakis-0/+8
will guarantee they have unit type.
2011-12-30add cap clause to pretty printer, with a testNiko Matsakis-0/+17
2011-11-22rustc: Allow trailing comma in record fieldsHaitao Li-0/+8
2011-09-15Add regression tests for previously ambiguous syntactic formsBrian Anderson-0/+37
2011-09-15Remove maybe_protect_block kludge from pretty-printerMarijn Haverbeke-35/+0
It is no longer needed.
2011-09-09Make the pretty printer disambiguatae blocks followed by vec expressions.Jesse Ruderman-0/+2
Semicolons are needed here now that postfix [] is used for vec indexing (the syntax change made in rev 518dc52f85c2efb67aaa1208c02e9a7e0bdaca49).
2011-08-20ReformatBrian Anderson-106/+50
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19Do better at preserving blank lines during pretty-printingBrian Anderson-0/+15
2011-08-19Don't pretty-print extra blank lines after anon object methodsBrian Anderson-0/+14
2011-08-18Don't pretty-print trailing whitespace for blank lines inside block commentsBrian Anderson-0/+15
2011-08-18Try harder to disambig blocks followed by various exprs in pprust. Closes #840Brian Anderson-0/+65
As it turns out, it's not just unops we need to worry about. Also tuples and anything that requires parens.
2011-08-18Kill another case of a spurious blank line. Closes #809.Graydon Hoare-0/+8
2011-08-18More misc ivec->vec renamingBrian Anderson-2/+2
2011-08-18Pretty-print ivecs as []Brian Anderson-21/+21
2011-08-16Add pp test for interleaving comments through vectors. Closes #679Brian Anderson-0/+60
2011-08-09Port the fuzzer and tests to ivec type [T] syntax.Erick Tryzelaar-9/+1
2011-08-09Change the ivec type syntax to [T].Erick Tryzelaar-0/+18
This preserves the old syntax for now.