rust/tests/source
Seiichi Uchida 56c6d73d82 Reorder modules
Add `reorder_modules` config option.

Two things we must keep in mind when reordering modules:
1. We should not reorder modules with attributes, as doing so could
   potentially break the code (e.g. `#[macro_use]`).
2. We should not reorder inline modules e.g. `mod foo { /* .. */ }`.
   We should only reorder module declarations e.g. `mod foo;`.

Some open questions:
1. Should we bring modules with `pub` in front of those without `pub`
   so that they stand out from others?
2. Instead of keeping modules with attributes in the same place,
   can we bring them in front of others? Is this safe?
2018-01-29 21:59:15 +09:00
..
configs Reorder modules 2018-01-29 21:59:15 +09:00
nested_skipped
nestedmod
assignment.rs
associated-types-bounds-wrapping.rs
attrib.rs
big-impl-rfc.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
big-impl.rs
break-and-continue.rs
catch.rs
chains-indent-tabbed.rs Change chain_indent to indent_style 2017-11-13 17:33:32 +09:00
chains-indent-visual.rs Change chain_indent to indent_style 2017-11-13 17:33:32 +09:00
chains-visual.rs Add a test fot #2264 2017-12-10 23:38:30 +09:00
chains.rs Add a test for #2157 2017-12-05 10:02:49 +09:00
closure-block-inside-macro.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
closure.rs Add a test for #2262 2017-12-10 21:19:51 +09:00
comment2.rs
comment3.rs
comment4.rs
comment5.rs
comment_crlf_newline.rs
comment.rs Add a test for #1603 2017-11-15 15:44:27 +09:00
control-brace-style-always-next-line.rs
control-brace-style-always-same-line.rs
doc.rs
else-if-brace-style-always-next-line.rs Replace various small width heuristics with a single option 2017-11-24 20:17:06 +13:00
else-if-brace-style-always-same-line.rs Replace various small width heuristics with a single option 2017-11-24 20:17:06 +13:00
else-if-brace-style-closing-next-line.rs Replace various small width heuristics with a single option 2017-11-24 20:17:06 +13:00
empty_file.rs
enum.rs Add a test for #2193 2017-11-27 20:53:54 +09:00
expr-block.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
expr.rs Take the width of block's prefix into account only once 2017-12-20 15:44:11 +09:00
extern_not_explicit.rs
extern.rs Compare extern crate items with its name instead of span 2018-01-04 12:49:37 +09:00
file-lines-1.rs
file-lines-2.rs
file-lines-3.rs
file-lines-4.rs
file-lines-5.rs
file-lines-6.rs
file-lines-item.rs
fn_args_density-vertical.rs fix some typos 2017-11-01 07:33:55 +01:00
fn_args_indent-block.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
fn-custom-2.rs Remove where_density and where_layout options 2017-11-24 21:08:24 +13:00
fn-custom-3.rs Remove where_density and where_layout options 2017-11-24 21:08:24 +13:00
fn-custom-4.rs Remove where_density and where_layout options 2017-11-24 21:08:24 +13:00
fn-custom-6.rs Combine fn_brace_style and item_brace_style 2017-11-14 10:47:02 +09:00
fn-custom-7.rs Combine fn_brace_style and item_brace_style 2017-11-14 10:47:02 +09:00
fn-custom-8.rs Combine fn_brace_style and item_brace_style 2017-11-14 10:47:02 +09:00
fn-custom.rs
fn-simple.rs fix some typos 2017-11-01 07:33:55 +01:00
fn-single-line.rs
hard-tabs.rs Fix indent width bug when recovering comments 2017-12-22 12:05:36 +09:00
hello2.rs
hello.rs
impls.rs
imports-reorder-lines-and-items.rs
imports-reorder-lines.rs
imports-reorder.rs
imports.rs Add tests for nested imports 2017-12-09 16:45:20 +09:00
issue-447.rs
issue-510.rs
issue-811.rs
issue-850.rs
issue-855.rs
issue-913.rs
issue-945.rs
issue-977.rs
issue-1021.rs
issue-1049.rs fix some typos 2017-11-01 07:33:55 +01:00
issue-1111.rs
issue-1120.rs
issue-1124.rs Fix a typo in the unstable options handling and address fallout 2017-11-24 15:41:27 +13:00
issue-1127.rs Rename wrap_match_arms to match_arm_blocks 2017-11-27 17:35:27 +13:00
issue-1158.rs
issue-1177.rs
issue-1192.rs
issue-1211.rs
issue-1216.rs
issue-1239.rs
issue-1278.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
issue-1350.rs
issue-1366.rs
issue-1468.rs fix some typos 2017-11-01 07:33:55 +01:00
issue-1693.rs
issue-1800.rs
issue-1914.rs
issue-2025.rs Add a test for #2025 2017-11-10 17:08:16 +09:00
issue-2111.rs Add a test for #2111 2017-11-23 12:36:57 +09:00
issue-2164.rs Add a test for #2164 2017-11-18 15:32:10 +09:00
issue-2179.rs Add a test for #2179 2017-11-24 12:04:00 +09:00
issue-2256.rs Add a test for #2256 2018-01-10 21:30:13 +09:00
issue-2342.rs Add a test for #2343 and update tests 2018-01-11 16:53:13 +09:00
item-brace-style-always-next-line.rs Combine fn_brace_style and item_brace_style 2017-11-14 10:47:02 +09:00
item-brace-style-prefer-same-line.rs Combine fn_brace_style and item_brace_style 2017-11-14 10:47:02 +09:00
item-brace-style-same-line-where.rs Combine fn_brace_style and item_brace_style 2017-11-14 10:47:02 +09:00
large_vec.rs
large-block.rs
long_field_access.rs
long-match-arms-brace-newline.rs Remove force_format_strings in favour of format_strings 2017-11-24 14:07:37 +13:00
loop.rs
macro_not_expr.rs
macros.rs Do not panic when special macros have less args than expected 2018-01-18 00:50:16 +09:00
match-block-trailing-comma.rs
match-nowrap-trailing-comma.rs Rename wrap_match_arms to match_arm_blocks 2017-11-27 17:35:27 +13:00
match-nowrap.rs Rename wrap_match_arms to match_arm_blocks 2017-11-27 17:35:27 +13:00
match.rs Add a test for #2151 2017-11-15 12:22:50 +09:00
max-line-length-in-chars.rs
mod_skip_child.rs
mod-1.rs
mod-2.rs
multiple.rs
nested-if-else.rs
no_new_line_beginning.rs
other.rs
paths.rs
pattern-condense-wildcards.rs
pattern.rs Add a test to see if tuple struct gets combined 2017-11-02 20:28:38 +09:00
pub-restricted.rs Add support for crate shorthand for pub(crate) 2017-10-28 18:41:58 +13:00
remove_blank_lines.rs Add more tests 2017-12-05 17:45:19 +09:00
single-line-if-else.rs Replace various small width heuristics with a single option 2017-11-24 20:17:06 +13:00
soft-wrapping.rs Add a test for soft wrapping on doc comments 2017-11-08 18:23:21 +09:00
space-not-before-newline.rs
spaces-around-ranges.rs
static.rs Break after colon if static item does not fit in a single line 2018-01-10 23:23:42 +09:00
string_punctuation.rs
string-lit-2.rs
string-lit.rs Remove force_format_strings in favour of format_strings 2017-11-24 14:07:37 +13:00
struct_lits_multiline.rs struct_lit_multiline_style -> struct_lit_single_line (and make it a bool) 2017-11-24 14:45:18 +13:00
struct_lits_visual_multiline.rs struct_lit_multiline_style -> struct_lit_single_line (and make it a bool) 2017-11-24 14:45:18 +13:00
struct_lits_visual.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
struct_lits.rs
struct_tuple_visual.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
struct-field-attributes.rs Do not give up rewriting struct field when attribute is long 2017-12-24 13:57:29 +09:00
structs.rs Add a test for where clause on unit struct 2017-11-13 11:06:09 +09:00
trailing_commas.rs
trailing-comma-never.rs
trait.rs Add and update tests for #2320 and #2331 2018-01-04 12:46:05 +09:00
try-conversion.rs
tuple.rs
type_alias.rs
type-ascription.rs
type-punctuation.rs
type.rs
unions.rs fix some typos 2017-11-01 07:33:55 +01:00
where-clause-rfc.rs Replace '_indent' with 'indent_style' 2017-11-13 17:33:32 +09:00
where-clause.rs