rust/tests/target
Nick Cameron 7a758ea20a Fix closures again (#937)
* Fix closures again

Closes #934

Oh god, the rules for parsing closures are even more messed up than I thought - whether or not there is an inner block or depends not only on if there are braces, but also if there is a return type for the closure (!) and if there are statements in the block.

* Fix overflow
2016-04-15 10:52:08 +02:00
..
nested_skipped test ignored out of line modules 2015-12-24 00:15:29 +03:00
nestedmod Fix empty body format, add fn_empty_single_line option, refactor block tests 2015-11-19 20:45:02 -06:00
assignment.rs Format assignment 2015-08-25 21:43:13 +02:00
attrib-extern-crate.rs implement framework for system tests 2015-06-05 17:50:22 +02:00
attrib.rs Fix empty body format, add fn_empty_single_line option, refactor block tests 2015-11-19 20:45:02 -06:00
chains-block-indented-base.rs Deal with floating links in chains 2015-10-22 22:30:01 +02:00
chains-indent-inherit.rs new config 'chain_indent' 2015-11-14 21:50:40 +01:00
chains-indent-tabbed.rs new config 'chain_indent' 2015-11-14 21:50:40 +01:00
chains-indent-visual.rs new config 'chain_indent' 2015-11-14 21:50:40 +01:00
chains-no-overflow.rs Be careful about where we change braces in closures 2016-04-14 09:05:42 +12:00
chains-no-overlow-2.rs tests: Use Result::expect() throughout 2016-01-31 13:10:09 -05:00
chains.rs Be careful about where we change braces in closures 2016-04-14 09:05:42 +12:00
closure.rs Fix closures again (#937) 2016-04-15 10:52:08 +02:00
comment-not-disappear.rs Removed the failing test part since it will work when #754 is accepted 2016-01-12 03:09:19 +01:00
comment.rs Fix #784 2016-01-27 02:18:05 +01:00
comment2.rs Put empty modules on one line 2016-01-28 19:53:41 +13:00
comment3.rs Put empty modules on one line 2016-01-28 19:53:41 +13:00
comment4.rs Add normalise_comments option. 2015-12-10 09:29:03 +13:00
comment_crlf_newline.rs Avoid adding an extra newline after block comments 2015-11-20 23:31:05 +01:00
comments-fn.rs Fix empty body format, add fn_empty_single_line option, refactor block tests 2015-11-19 20:45:02 -06:00
doc.rs Fix large block comments 2015-10-19 23:06:36 +02:00
empty_file.rs Add unittest for #115 2015-08-28 22:59:36 +02:00
enum-no_trailing_comma.rs Honor "enum_trailing_comma" option. Fixes #556 2015-11-03 23:57:31 +01:00
enum.rs Don't be so aggressie about line-breaking strings (#911) 2016-04-11 20:45:47 +02:00
expr-no-hints.rs Refine chain breaking heuristics 2015-09-11 00:53:01 +02:00
expr.rs Format closed ranges 2016-03-29 23:58:45 +02:00
extern.rs Keep empty extern blocks on one line 2016-03-14 18:55:55 +13:00
fn-custom-2.rs Support where predicates on the same line 2015-09-01 18:53:16 +12:00
fn-custom-3.rs Support where predicates on the same line 2015-09-01 18:53:16 +12:00
fn-custom-4.rs Support where clauses on the same line as the function decl where it all fits on one line. 2015-09-02 07:59:54 +12:00
fn-custom-5.rs Support where clause predicates at different indentations 2015-09-01 19:04:41 +12:00
fn-custom-6.rs Fix long generic indent 2016-04-07 20:29:05 +01:00
fn-custom-7.rs Fix long generic indent 2016-04-07 20:29:05 +01:00
fn-custom-8.rs Fix long generic indent 2016-04-07 20:29:05 +01:00
fn-custom.rs Fixup tests 2015-09-27 19:39:58 +13:00
fn-simple.rs Break function headers earlier 2015-12-01 22:09:37 +01:00
fn-single-line.rs Where clause is on same line as fn if fn is empty fix-#760 2016-01-10 22:06:06 -07:00
fn-ty.rs Types which can be return types for function types 2015-11-23 13:55:53 +13:00
fn.rs Where clause is on same line as fn if fn is empty fix-#760 2016-01-10 22:06:06 -07:00
fn_args_density-vertical.rs Add independent test for Vertical rustfmt-fn_args_density 2016-03-14 04:03:33 +02:00
fn_args_layout-block.rs Fix long generic indent 2016-04-07 20:29:05 +01:00
fn_args_layout-blockalways.rs Add variant to fn_args_layout 2016-04-07 20:01:16 +01:00
fn_once.rs Fix 1-tuple regression. 2015-10-01 11:06:49 -07:00
hard-tabs.rs Don't be so aggressie about line-breaking strings (#911) 2016-04-11 20:45:47 +02:00
hello.rs implement framework for system tests 2015-06-05 17:50:22 +02:00
impl.rs Keep comments in empty impl bodies 2015-11-24 12:55:32 -06:00
impls.rs Fix brace indentation for impl items (#927) 2016-04-14 20:42:38 +02:00
imports-reorder.rs Add option to override single configuration lines for tests 2015-08-19 21:51:03 +02:00
imports.rs Correct doc comment indentation for struct fields 2015-11-22 22:55:57 +01:00
issue-64.rs Add regression test for UFCS formatting error 2015-06-08 18:34:53 +02:00
issue-447.rs Handle more possible comment position for if else 2016-01-12 03:08:48 +01:00
issue-510.rs Don't apply the function args heuristic to tuple lits. 2016-03-14 20:51:06 +13:00
issue-770.rs Add regression test for issue 770 2016-04-14 20:41:23 +02:00
issue-811.rs Fix for issue #811 (falsely inserted "::" in paths with parameterized trait cast). 2016-03-01 16:39:43 +01:00
issue-850.rs Add a test for #850 2016-03-09 02:44:01 -08:00
item-brace-style-always-next-line.rs Properly follow the brace styles. 2015-11-18 22:34:14 -08:00
item-brace-style-prefer-same-line.rs Properly follow the brace styles. 2015-11-18 22:34:14 -08:00
item-brace-style-same-line-where.rs Properly follow the brace styles. 2015-11-18 22:34:14 -08:00
long-fn-1.rs implement framework for system tests 2015-06-05 17:50:22 +02:00
long_field_access.rs Fix long field accesses not being broken onto separate lines 2015-11-21 01:05:31 +01:00
loop.rs Handle span error with continue 2015-08-20 08:11:14 +12:00
macro_not_expr.rs Add test for a macro not containing an exprssion 2015-10-23 13:46:14 -07:00
macros.rs Merge pull request #883 from marcusklaas/macro-with-name 2016-03-30 02:03:28 +02:00
match-block-trailing-comma.rs Update trailing comma match logic, add tests 2015-12-01 20:10:57 +13:00
match-nowrap-trailing-comma.rs Update trailing comma match logic, add tests 2015-12-01 20:10:57 +13:00
match-nowrap.rs Add option to disable (un)wrapping of match arms 2015-11-20 21:50:25 +01:00
match-wildcard-trailing-comma.rs Trailing commas for wildcard arms 2016-01-06 11:02:01 +09:00
match.rs Reviewer comments - mostly fix rewrite_guard 2016-04-12 10:30:57 +12:00
mod-1.rs Put empty modules on one line 2016-01-28 19:53:41 +13:00
mod-2.rs Rewrite module declarations 2015-11-21 21:06:29 +01:00
mod_skip_child.rs test ignored out of line modules 2015-12-24 00:15:29 +03:00
mulit-file.rs Handle multiply-referenced files 2015-11-23 15:22:00 +13:00
multiple.rs Take rustfmt_skip attribute into account on modules 2015-11-23 09:20:53 +13:00
no_new_line_beginning.rs Fix empty body format, add fn_empty_single_line option, refactor block tests 2015-11-19 20:45:02 -06:00
other.rs Add a terrible, but useful, test which I used locally 2015-06-11 14:36:31 +12:00
paths.rs Detect when comments disappear 2016-01-10 15:20:58 +01:00
pattern.rs Format all patterns (well, except macros) 2016-02-12 14:59:13 +13:00
single-line-if-else.rs Prevent nested if-else from being put on a single line. 2015-08-25 22:52:33 +02:00
skip.rs implement framework for system tests 2015-06-05 17:50:22 +02:00
static.rs Format visibility for statics and consts 2015-10-19 20:08:03 +02:00
string-lit-2.rs Don't be so aggressie about line-breaking strings (#911) 2016-04-11 20:45:47 +02:00
string-lit-custom.rs Format strings option https://github.com/nrc/rustfmt/issues/202 2015-09-01 08:14:52 -04:00
string-lit.rs Don't be so aggressie about line-breaking strings (#911) 2016-04-11 20:45:47 +02:00
string_punctuation.rs Don't be so aggressie about line-breaking strings (#911) 2016-04-11 20:45:47 +02:00
struct_lits.rs Empty structs and struct lits (#920) 2016-04-11 21:05:54 +02:00
struct_lits_multiline.rs Comments in structs use appropriate style 2015-11-17 11:57:49 +13:00
struct_lits_visual.rs Don't be so aggressie about line-breaking strings (#911) 2016-04-11 20:45:47 +02:00
struct_lits_visual_multiline.rs Don't be so aggressie about line-breaking strings (#911) 2016-04-11 20:45:47 +02:00
structs.rs Empty structs and struct lits (#920) 2016-04-11 21:05:54 +02:00
trait.rs Fixed nitpicks 2016-03-15 14:08:12 -06:00
tuple.rs Don't apply the function args heuristic to tuple lits. 2016-03-14 20:51:06 +13:00
type-punctuation.rs Added test case 2016-01-12 13:51:32 -07:00
type.rs Handle variadic function types 2016-04-12 10:47:35 +12:00
type_alias.rs Remove trailing whitespace for fn types /w non-unit return 2016-03-27 20:40:23 +02:00
where-clause.rs Fix where clauses not taking the width of the line into account 2015-11-27 09:27:41 +01:00
where-trailing-comma.rs Added tests 2016-03-14 20:05:20 -06:00