summary refs log tree commit diff
path: root/src/test/pretty
AgeCommit message (Collapse)AuthorLines
2012-08-26Camel case the option typeBrian Anderson-8/+8
2012-08-23Remove match check from test casesTim Chevalier-7/+8
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-1/+1
2012-08-14More attempts at fixing .. breakage.Graydon Hoare-1/+1
2012-08-14Try to fix pretty-test breakage harder.Graydon Hoare-1/+1
2012-08-14Try to fix pretty-test breakage.Graydon Hoare-1/+1
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-10/+10
2012-08-05Switch alts to use arrowsBrian Anderson-7/+7
2012-08-04Fix closure pretty-print testsBrian Anderson-2/+1
2012-08-01Convert ret to returnBrian Anderson-4/+4
2012-07-31syntax: More tweaks to make alt arrows parse and print correctlyBrian Anderson-7/+6
2012-07-31accept naked exprs with commas in pattern armsNiko Matsakis-0/+34
pretty printing will use them, but indentation is slightly off if the expr is long
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-19Revert "accept naked exprs with commas in pattern arms" due to ↵Patrick Walton-34/+0
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-0/+34
pretty printing will use them, but indentation is slightly off if the expr is long
2012-07-12Comments only: annotate FIXMEs in testsTim Chevalier-1/+1
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.