summary refs log tree commit diff
path: root/src/test/pretty
AgeCommit message (Collapse)AuthorLines
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.
2011-08-03Fix the pretty print tests to handle terminal newlines. Sorry!Michael Sullivan-3/+3
2011-08-03Disambiguate unop statements in pretty-printer. Closes #674Brian Anderson-0/+35
2011-08-02Don't pp extra lines after block open when preserving whitespace. Closes #759Brian Anderson-0/+7
2011-08-02Add dedicated pretty-printer tests with new pp-exact directiveBrian Anderson-0/+13
Add a new src/test/pretty directory to hold just source files for testing the pretty-printer. Add a new pp-exact directive. When this directive is followed by a file name it specifies a file containing the output that the pretty-printer should generate. When pp-exact is not followed by a filename it says that the file should pretty-print as written.