rust/tests/source
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
assignment.rs Add test for general assignment breaks 2016-06-04 11:00:01 +02:00
attrib.rs Option to disable line breaking in comments 2015-11-10 08:03:01 +13: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 new config 'chain_indent' 2015-11-14 21:50:40 +01:00
chains-no-overflow.rs Format non-statement if-else expressions on a single line 2016-05-29 17:58:38 +02: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 Option to disable line breaking in comments 2015-11-10 08:03:01 +13:00
comment3.rs Option to disable line breaking in comments 2015-11-10 08:03:01 +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.rs Fix bug in identifying comments 2017-01-17 12:01:10 +13: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
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 Honor "enum_trailing_comma" option. Fixes #556 2015-11-03 23:57:31 +01: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 make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +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-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
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
hard-tabs.rs Make tests fail if rustfmt encounters an error 2017-02-19 19:57:02 +01:00
hello2.rs
hello.rs
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
issue-447.rs make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
issue-510.rs Don't apply the function args heuristic to tuple lits. 2016-03-14 20:51:06 +13: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-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 Fix long field accesses not being broken onto separate lines 2015-11-21 01:05:31 +01:00
long-match-arms-brace-newline.rs Do not format string lits by default 2017-01-27 08:11:59 +13:00
loop.rs Fix width computation in Loop::rewrite 2016-06-12 20:37:15 +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 make rustfmt-normalize_comments false by default 2017-01-16 14:50:27 +13:00
mod_skip_child.rs test ignored out of line modules 2015-12-24 00:15:29 +03:00
mod-1.rs Rewrite module declarations 2015-11-21 21:06:29 +01:00
mod-2.rs Format inline attributes on out-of-line modules (#996) 2016-05-18 22:36:59 +02:00
multiple.rs Do not format string lits by default 2017-01-27 08:11:59 +13:00
no_new_line_beginning.rs
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 Handle pub(restricted) (#1013) 2016-05-28 00:58:25 +02: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 Format visibility of associated consts (#953) 2016-04-19 20:19:14 +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.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 Add try macro to try shorthand conversion tests 2016-05-12 21:15:06 +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 Format type ascription 2016-04-15 17:56:43 +02: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 Added tests 2016-03-14 20:05:20 -06:00