about summary refs log tree commit diff
path: root/src/test/pretty
AgeCommit message (Collapse)AuthorLines
2013-08-17Fix warnings it testsErick Tryzelaar-23/+25
2013-08-03remove obsolete `foreach` keywordDaniel Micay-3/+3
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-3/+3
2013-07-17Clean-up tests after debug!/std-macros change.Huon Wilson-1/+1
The entire testsuite is converted to using info! rather than debug! because some depend on the code within the debug! being trans'd.
2013-07-05Fix fallout from span changeSeo Sanghyeon-2/+19
2013-06-23vec: remove BaseIter implementationDaniel Micay-2/+2
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-14fixed code to placate new restrictions on form of function/method invocations.Felix S. Klock II-4/+4
2013-06-13make pp file conform to actual output, noting some oddities along the way.Felix S. Klock II-30/+35
2013-06-13checkpoint block-comment-wchar state.Felix S. Klock II-2/+113
2013-06-13Fix #3961 : use char range methods instead of byte offsets to detect whitespace.Felix S. Klock II-0/+109
2013-05-27Change `alt` to `match` in filenames.Lindsey Kuper-0/+0
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1/+1
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+1
2013-04-10syntax: match variants use 4 space indent by defaultErick Tryzelaar-6/+6
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-1/+1
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-2/+2
2013-03-19test: Fix test. rs=testPatrick Walton-1/+1
2013-03-07test: Fix tests.Patrick Walton-3/+1
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-3/+3
2013-03-02test: Remove `fn@`, `fn~`, and `fn&` from the test suite. rs=defunPatrick Walton-1/+1
2013-03-02Fix some struct-tuple def prettyprint issuesSeth Pink-0/+10
- Removed space between struct name and parentheses - Fixed indentation of the rest of the file (missing end) - Don't print parentheses for structs with no fields - Added test
2013-02-28testsuite: Re-xfail record-trailing-commaTim Chevalier-0/+1
It was xfailed before the other commits in this pull request, so no big deal. I'll look into it later.
2013-02-28Remove code that was awaiting a snapshotTim Chevalier-3/+0
* Disallow structural records everywhere * Remove all #[cfg(stage0)] stuff * Remove the last deprecated modes in libcore * Un-xfail a test
2013-02-22test: De-mut the test suite. rs=demutingPatrick Walton-2/+2
2013-02-14auto merge of #4911 : lifthrasiir/rust/comment-exemptions, r=catamorphismbors-5/+24
This is a natural extension of #4887, and handles the following three cases: ~~~~ a line with only /s //////////////////////////////////////////// a line with only /s followed by whitespace //////////////////////////////////////////// a block comment with only *s between two /s /********************************/ ~~~~
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-02-13libsyntax: don't parse ////, /***/ as doc commentsKang Seonghoon-5/+24
2013-02-08Change pretty-exact to pp-exactSeo Sanghyeon-10/+8
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-27/+0
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.
2013-01-28testsuite: De-record pretty testsTim Chevalier-4/+12
2012-12-10tests: relicense .pp files. Oddly not caught during local testing.Graydon Hoare-0/+30
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+230
2012-12-06Remove obsolete commentTim Chevalier-3/+0
2012-11-15Un-xfail working testsTim Chevalier-1/+0
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-4/+4
Fixes #1896 which was never truly fixed, just masked. The given tests would have failed had they used `~fn()` and not `@fn()`. They now result in compilation errors. Fixes #2978. Necessary first step for #2202, #2263.
2012-10-20Fix a pprint test for fixed-length vecsBen Striegel-2/+2
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