summary refs log tree commit diff
path: root/src/test/pretty
AgeCommit message (Collapse)AuthorLines
2014-01-03test: De-`@mut` the test suitePatrick Walton-4/+9
2013-12-14Handle more cases in the heap lintsAlex Crichton-0/+2
2013-11-27Fix handling of upper/lowercase, and whitespaceFlorian Zeitz-9/+7
2013-11-27Update Unicode data to version 6.3Florian Zeitz-44/+44
2013-11-26librustc: Fix merge fallout.Patrick Walton-2/+2
2013-11-18librustc: Convert `~fn()` to `proc()` everywhere.Patrick Walton-1/+1
2013-10-31librustc: Implement `|A| -> B` syntax for closures and make bare `fn`Patrick Walton-4/+21
work
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-1/+1
Who doesn't like a massive renaming?
2013-10-22Activate checking code for ASM feature gate. Fix testsLéo Testard-0/+3
2013-10-08pp: add test for raw strs in non-expression positionsBenjamin Herr-0/+16
2013-09-30pretty: Remove usage of fmt!Alex Crichton-3/+3
2013-09-24auto merge of #9336 : alexcrichton/rust/issue-7981, r=catamorphismbors-5/+5
Progress on #7981 This doesn't completely close the issue because `struct A;` is still allowed, and it's a much larger change to disallow that. I'm also not entirely sure that we want to disallow that. Regardless, punting that discussion to the issue instead.
2013-09-24Stop accepting 'impl ...;', require {} insteadAlex Crichton-5/+5
Progress on #7981
2013-09-23test: Fix rustdoc and tests.Patrick Walton-14/+1
2013-09-17pp: also print bounds in paths with no generic paramsBenjamin Herr-0/+13
Since 3b6314c3 the pretty printer seems to only print trait bounds for `ast::ty_path(...)`s that have a generics arguments list. That seems wrong, so let's always print them. Closes #9253, un-xfails test for #7673.
2013-09-11Fix the empty-impl testsJakub-4/+4
Use an existing type so that it compiles.
2013-09-08Fix pretty-printing of empty impl itemsJakub-0/+10
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