rust/tests/target
Sebastian Blunt 235f33b230
Make tests fail if rustfmt encounters an error
Previously tests would not fail if they encountered an error such as
LineOverflow or TrailingWhitespace. Making the tests error out will fix
this mismatch between running rustfmt for real and running the tests.

This also modifies all tests that previously contained errors so that
they no longer contain errors (in almost all of the tests this is
accomplished by setting error_on_line_overflow = false).
2017-02-19 19:57:02 +01: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 Add test for general assignment breaks 2016-06-04 11:00:01 +02:00
associated-items.rs Don't misplace the :: on associated items. 2016-05-02 17:11:22 -07:00
attrib-extern-crate.rs
attrib.rs Handle attributes on modules (#968) 2016-05-02 10:54:25 +02:00
break-and-continue.rs Update to the latest syntex module 2016-12-23 11:20:07 -08:00
chains-block-indented-base.rs Format non-statement if-else expressions on a single line 2016-05-29 17:58:38 +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 Tests 2016-04-22 18:53:39 +12:00
chains-no-overflow.rs Format non-statement if-else expressions on a single line 2016-05-29 17:58:38 +02:00
chains-no-overlow-2.rs Change defaults and update tests and source 2016-04-22 19:18:48 +12:00
chains-visual.rs Allow empty blocks on one line in more places 2017-01-16 16:37:58 +13:00
chains.rs Allow empty blocks on one line in more places 2017-01-16 16:37:58 +13:00
closure.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13: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 Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
comment5.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
comment_crlf_newline.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13: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 bug in identifying comments 2017-01-17 12:01:10 +13: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
control-brace-style-always-next-line.rs Refactor if/else formatting 2017-01-11 18:14:41 +13:00
control-brace-style-always-same-line.rs Refactor if/else formatting 2017-01-11 18:14:41 +13:00
disable_all_formatting.rs New disable_all_formatting config option (#1297) 2017-02-07 17:11:47 +13:00
doc.rs Add a more lightweight method for rewriting comments when we are not normalising 2017-01-17 10:17:48 +13:00
else-if-brace-style-always-next-line.rs Refactor if/else formatting 2017-01-11 18:14:41 +13:00
else-if-brace-style-always-same-line.rs Refactor if/else formatting 2017-01-11 18:14:41 +13:00
else-if-brace-style-closing-next-line.rs Refactor if/else formatting 2017-01-11 18:14:41 +13:00
empty_file.rs
enum-no_trailing_comma.rs Optionally put short struct variants on one line (#997) 2016-05-18 22:38:49 +02:00
enum.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
expr-no-hints.rs
expr.rs Allow empty blocks on one line in more places 2017-01-16 16:37:58 +13:00
extern_not_explicit.rs Add option to force explicit extern ABI's 2016-04-18 18:39:40 +02:00
extern.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
file-lines-1.rs Update to latest Syntex 2016-09-16 15:28:02 +12:00
file-lines-2.rs Update to latest Syntex 2016-09-16 15:28:02 +12:00
file-lines-3.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
file-lines-4.rs Update to latest Syntex 2016-09-16 15:28:02 +12: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 make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
fn_args_layout-blockalways.rs Add variant to fn_args_layout 2016-04-07 20:01:16 +01:00
fn_once.rs
fn-custom-2.rs
fn-custom-3.rs
fn-custom-4.rs
fn-custom-5.rs
fn-custom-6.rs Fix long generic indent 2016-04-07 20:29:05 +01:00
fn-custom-7.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
fn-custom-8.rs Fix long generic indent 2016-04-07 20:29:05 +01:00
fn-custom.rs Fix off by 2 error in function sigs 2016-05-27 15:05:15 -07:00
fn-simple.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13: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 Catch attributes before comments 2017-01-26 15:10:47 +13:00
hard-tabs.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
hello.rs
impl.rs Keep comments in empty impl bodies 2015-11-24 12:55:32 -06:00
impls.rs Try hard to format impl signatures 2017-01-17 13:08:36 +13:00
imports-reorder-lines-and-items.rs Fixes #1184 where reordering import items could cause a panic. 2016-11-03 04:21:47 +00:00
imports-reorder-lines.rs Add use declaration re-ordering (#1104) 2016-07-26 17:20:01 +12:00
imports-reorder.rs Add a more lightweight method for rewriting comments when we are not normalising 2017-01-17 10:17:48 +13:00
imports.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
indented-impl.rs Indent open brace for impl when nested. (#1227) 2016-11-28 13:47:07 +13:00
issue-64.rs
issue-447.rs Allow empty blocks on one line in more places 2017-01-16 16:37:58 +13: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
issue-855.rs Check length of break and continue expressions 2016-04-15 18:11:29 +02:00
issue-913.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
issue-945.rs Add support for the default keyword (#1025) 2016-05-31 19:48:49 +02:00
issue-977.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
issue-1021.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
issue-1049.rs Fix overlong function signature (#1089) 2016-08-01 16:25:00 +12:00
issue-1055.rs update Serde, etc. 2016-11-21 11:02:18 +13:00
issue-1111.rs Add test case for issue #1111, by adding another route by which a test file's config can be located 2016-08-08 23:13:45 +02:00
issue-1120.rs Fix #1120 - rework how the use list prefix is determined. (#1121) 2016-08-10 18:13:27 +12:00
issue-1124.rs Fix issue 1124 - detect start of output rather than start of input file when writing output source file (#1133) 2016-08-25 08:32:04 +12:00
issue-1177.rs Add a more lightweight method for rewriting comments when we are not normalising 2017-01-17 10:17:48 +13:00
issue-1192.rs Remove extra whitespace after macro calls 2016-10-27 02:40:08 -05:00
issue-1216.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
issue-1239.rs Handle multiline condition in let if else (fixes #1239) 2017-01-31 23:35:57 +01: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_field_access.rs Change defaults and update tests and source 2016-04-22 19:18:48 +12:00
long-fn-1.rs
long-match-arms-brace-newline.rs Do not format string lits by default 2017-01-27 08:11:59 +13:00
loop.rs Prevent line breaking at = or in after trivial patterns 2016-09-17 13:03:14 +09:00
macro_not_expr.rs Add test for a macro not containing an exprssion 2015-10-23 13:46:14 -07:00
macros.rs Handle semicolons in macro statements 2017-01-18 10:38:46 +13: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 Allow empty blocks on one line in more places 2017-01-16 16:37:58 +13:00
mod_skip_child.rs test ignored out of line modules 2015-12-24 00:15:29 +03:00
mod-1.rs Put empty modules on one line 2016-01-28 19:53:41 +13:00
mod-2.rs Format inline attributes on out-of-line modules (#996) 2016-05-18 22:36:59 +02:00
mulit-file.rs Handle multiply-referenced files 2015-11-23 15:22:00 +13:00
multiple.rs Do not format string lits by default 2017-01-27 08:11:59 +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
paths.rs Add a more lightweight method for rewriting comments when we are not normalising 2017-01-17 10:17:48 +13:00
pattern-condense-wildcards.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
pattern.rs Add a more lightweight method for rewriting comments when we are not normalising 2017-01-17 10:17:48 +13:00
pub-restricted.rs Update to latest Syntex 2017-01-20 08:20:49 +13:00
single-line-if-else.rs Format non-statement if-else expressions on a single line 2016-05-29 17:58:38 +02:00
skip.rs Fix #1040 2016-09-10 13:08:32 +09:00
space-before-bound.rs Do not ignore space_before_bound in where clause (#1267) 2017-01-09 15:58:06 +13:00
space-before-type-annotation.rs Apply space_before_type_annotation to struct ctors (#1109) 2016-08-05 01:30:53 -04:00
space-not-after-type-annotation-colon.rs Add three new options for spaces 2016-09-17 02:22:13 +02:00
space-not-before-bound-colon.rs Add three new options for spaces 2016-09-17 02:22:13 +02:00
spaces-around-ranges.rs Add three new options for spaces 2016-09-17 02:22:13 +02:00
spaces-within-angle-brackets.rs Added test for for< 'a > 2016-10-13 22:28:58 +03:00
spaces-within-parens.rs Add support for spaces_within_parens config (#1187) 2016-10-13 14:34:08 +13:00
spaces-within-square-brackets.rs Add spaces_within_square_brackets config option. (#1191) 2016-10-18 09:09:49 +13:00
static.rs Bootstrap it. Hard. 2016-05-12 21:50:43 +02:00
string_punctuation.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
string-lit-2.rs If a string goes over-width, give up formatting it 2017-01-06 16:35:28 +13:00
string-lit-custom.rs
string-lit.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
struct_lits_multiline.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
struct_lits_visual_multiline.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
struct_lits_visual.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
struct_lits.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
structs.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
trait.rs Fixed nitpicks 2016-03-15 14:08:12 -06:00
try-conversion.rs Bootstrap it. Hard. 2016-05-12 21:50:43 +02:00
tuple.rs Fix #775 2016-09-20 14:06:28 +09:00
type_alias.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
type-ascription.rs Refactor pairs/binops 2017-01-11 12:06:23 +13:00
type-punctuation.rs Added test case 2016-01-12 13:51:32 -07:00
type.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13: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 Optionally put short struct variants on one line (#997) 2016-05-18 22:38:49 +02:00