]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge pull request #2413 from topecongiro/issue-2401
Nick Cameron [Sun, 4 Feb 2018 19:44:21 +0000 (08:44 +1300)]
Merge pull request #2413 from topecongiro/issue-2401

Use correct offset when unindenting code block

6 years agoUse correct offset when unindenting code block
Seiichi Uchida [Sun, 4 Feb 2018 08:21:10 +0000 (17:21 +0900)]
Use correct offset when unindenting code block

When using hard tabs, we should only remove '\t'.

6 years agoMerge pull request #2411 from topecongiro/update-travis
Nick Cameron [Sun, 4 Feb 2018 03:58:21 +0000 (16:58 +1300)]
Merge pull request #2411 from topecongiro/update-travis

Update a minimal travis example

6 years agoUpdate a minimal travis example
Seiichi Uchida [Sun, 4 Feb 2018 01:02:45 +0000 (10:02 +0900)]
Update a minimal travis example

6 years agoMerge pull request #2410 from topecongiro/skip-repeat-macro
Nick Cameron [Sun, 4 Feb 2018 01:33:03 +0000 (14:33 +1300)]
Merge pull request #2410 from topecongiro/skip-repeat-macro

Skip rewriting macro def with repeat

6 years agoMerge pull request #2406 from nrc/str-fix
Nick Cameron [Sun, 4 Feb 2018 01:18:34 +0000 (14:18 +1300)]
Merge pull request #2406 from nrc/str-fix

Make `is_mod_decl` more accommodating

6 years agoSkip rewriting macro def with repeat
Seiichi Uchida [Sat, 3 Feb 2018 23:52:50 +0000 (08:52 +0900)]
Skip rewriting macro def with repeat

6 years agoMake `is_mod_decl` more accommodating
Nick Cameron [Fri, 2 Feb 2018 02:16:29 +0000 (15:16 +1300)]
Make `is_mod_decl` more accommodating

Fixes #2403 (I think)

6 years agoUpdate libsyntax crates
Nick Cameron [Fri, 2 Feb 2018 01:18:30 +0000 (14:18 +1300)]
Update libsyntax crates

6 years ago0.3.7
Nick Cameron [Thu, 1 Feb 2018 06:25:48 +0000 (19:25 +1300)]
0.3.7

6 years agoMerge pull request #2384 from topecongiro/init-shorthand
Nick Cameron [Thu, 1 Feb 2018 02:20:11 +0000 (15:20 +1300)]
Merge pull request #2384 from topecongiro/init-shorthand

Use field initialization shorthand if possible

6 years agoMerge branch 'master' into init-shorthand
Nick Cameron [Thu, 1 Feb 2018 02:20:01 +0000 (15:20 +1300)]
Merge branch 'master' into init-shorthand

6 years agoMerge pull request #2380 from topecongiro/reorder-mods
Nick Cameron [Thu, 1 Feb 2018 02:18:34 +0000 (15:18 +1300)]
Merge pull request #2380 from topecongiro/reorder-mods

[RFC] Reorder modules alphabetically

6 years agoMerge pull request #2400 from csmoe/support_immovable_generators
Seiichi Uchida [Wed, 31 Jan 2018 04:13:05 +0000 (13:13 +0900)]
Merge pull request #2400 from csmoe/support_immovable_generators

Support immovable generators

6 years agoadd a support for immovable generators
csmoe [Tue, 30 Jan 2018 14:14:33 +0000 (22:14 +0800)]
add a support for immovable generators

6 years agoAdd 'use_field_init_shorthand' config option
Seiichi Uchida [Mon, 29 Jan 2018 13:14:25 +0000 (22:14 +0900)]
Add 'use_field_init_shorthand' config option

6 years agoCargo fmt with modules reordering enabled
Seiichi Uchida [Mon, 29 Jan 2018 13:00:07 +0000 (22:00 +0900)]
Cargo fmt with modules reordering enabled

6 years agoReorder modules
Seiichi Uchida [Mon, 29 Jan 2018 12:59:15 +0000 (21:59 +0900)]
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?

6 years agoUpdate to the latest libsyntax changes
Seiichi Uchida [Mon, 29 Jan 2018 12:44:26 +0000 (21:44 +0900)]
Update to the latest libsyntax changes

6 years agoCargo update
Seiichi Uchida [Mon, 29 Jan 2018 12:43:44 +0000 (21:43 +0900)]
Cargo update

6 years agoMerge pull request #2395 from davidalber/fix-configuration-snippets2
Nick Cameron [Mon, 29 Jan 2018 02:51:16 +0000 (13:51 +1100)]
Merge pull request #2395 from davidalber/fix-configuration-snippets2

Fixing straightforward configuration snippets (Part 2)

6 years agoMerge pull request #2396 from topecongiro/issue-2389
Nick Cameron [Sun, 28 Jan 2018 23:36:26 +0000 (10:36 +1100)]
Merge pull request #2396 from topecongiro/issue-2389

Put attributes and enum variants on different lines

6 years agoPut attributes and enum variants on different lines
Seiichi Uchida [Fri, 26 Jan 2018 07:20:00 +0000 (16:20 +0900)]
Put attributes and enum variants on different lines

6 years agoCargo clippy
Seiichi Uchida [Fri, 26 Jan 2018 05:53:28 +0000 (14:53 +0900)]
Cargo clippy

6 years agoWrapping `match_arm_blocks=false` snippet in function
David Alber [Sun, 21 Jan 2018 06:57:53 +0000 (22:57 -0800)]
Wrapping `match_arm_blocks=false` snippet in function

6 years agoWrapping `match_arm_blocks=true` snippet in function
David Alber [Sun, 21 Jan 2018 06:56:14 +0000 (22:56 -0800)]
Wrapping `match_arm_blocks=true` snippet in function

6 years agoFixing `use_try_shorthand=true` snippet
David Alber [Sun, 21 Jan 2018 06:51:51 +0000 (22:51 -0800)]
Fixing `use_try_shorthand=true` snippet

6 years agoFixing `use_try_shorthand=false` snippet
David Alber [Sun, 21 Jan 2018 06:49:54 +0000 (22:49 -0800)]
Fixing `use_try_shorthand=false` snippet

6 years agoFixing `type_punctuation_density=Compressed` snippet
David Alber [Sun, 21 Jan 2018 06:46:30 +0000 (22:46 -0800)]
Fixing `type_punctuation_density=Compressed` snippet

6 years agoFixing `type_punctuation_density=Wide` snippet
David Alber [Sun, 21 Jan 2018 06:44:09 +0000 (22:44 -0800)]
Fixing `type_punctuation_density=Wide` snippet

6 years agoWrapping `trailing_comma=Never` snippet in function
David Alber [Sun, 21 Jan 2018 06:39:27 +0000 (22:39 -0800)]
Wrapping `trailing_comma=Never` snippet in function

6 years agoWrapping `trailing_comma=Always` snippet in function
David Alber [Sun, 21 Jan 2018 06:37:58 +0000 (22:37 -0800)]
Wrapping `trailing_comma=Always` snippet in function

6 years agoWrapping `trailing_comma=Vertical` snippet in function
David Alber [Sun, 21 Jan 2018 06:36:12 +0000 (22:36 -0800)]
Wrapping `trailing_comma=Vertical` snippet in function

6 years agoFixing `tab_spaces=2` snippet
David Alber [Sun, 21 Jan 2018 06:33:42 +0000 (22:33 -0800)]
Fixing `tab_spaces=2` snippet

6 years agoFixing `tab_spaces=4` snippet
David Alber [Sun, 21 Jan 2018 06:33:11 +0000 (22:33 -0800)]
Fixing `tab_spaces=4` snippet

6 years agoWrapping `struct_lit_single_line=false` snippet in function
David Alber [Sun, 21 Jan 2018 06:20:56 +0000 (22:20 -0800)]
Wrapping `struct_lit_single_line=false` snippet in function

6 years agoFixing `spaces_within_parens_and_brackets=true` snippet
David Alber [Sun, 21 Jan 2018 06:09:07 +0000 (22:09 -0800)]
Fixing `spaces_within_parens_and_brackets=true` snippet

6 years agoFixing `spaces_within_parens_and_brackets=false` snippet
David Alber [Sun, 21 Jan 2018 05:51:23 +0000 (21:51 -0800)]
Fixing `spaces_within_parens_and_brackets=false` snippet

6 years agoFixing `force_multiline_blocks=true` snippet
David Alber [Thu, 18 Jan 2018 05:37:41 +0000 (21:37 -0800)]
Fixing `force_multiline_blocks=true` snippet

6 years agoFixing `force_multiline_blocks=false` snippet
David Alber [Thu, 18 Jan 2018 05:32:47 +0000 (21:32 -0800)]
Fixing `force_multiline_blocks=false` snippet

6 years agoMerge pull request #2386 from acmcarther/master
Seiichi Uchida [Fri, 26 Jan 2018 03:35:52 +0000 (12:35 +0900)]
Merge pull request #2386 from acmcarther/master

Make rustfmt-bin's CARGO_PKG_VERSION envvar optional

6 years agoMerge pull request #2369 from davidalber/fix-configuration-snippets
Seiichi Uchida [Fri, 26 Jan 2018 03:35:04 +0000 (12:35 +0900)]
Merge pull request #2369 from davidalber/fix-configuration-snippets

Fixing straightforward configuration snippets (Part 1)

6 years agoMerge pull request #2383 from davidalber/range-spaces-in-match
Seiichi Uchida [Fri, 26 Jan 2018 03:32:28 +0000 (12:32 +0900)]
Merge pull request #2383 from davidalber/range-spaces-in-match

Extending `spaces_around_ranges` to ranges in match arm patterns

6 years agoMake rustfmt-bin's CARGO_PKG_VERSION envvar optional
Alex McArther [Tue, 23 Jan 2018 15:55:50 +0000 (07:55 -0800)]
Make rustfmt-bin's CARGO_PKG_VERSION envvar optional

6 years agoCargo fmt
Seiichi Uchida [Mon, 22 Jan 2018 04:05:18 +0000 (13:05 +0900)]
Cargo fmt

6 years agoUse field initialization shorthand if possible
Seiichi Uchida [Mon, 22 Jan 2018 04:04:20 +0000 (13:04 +0900)]
Use field initialization shorthand if possible

Also this PR fixes a bug that attributes on a shorthand field get removed.

6 years agoAdd a test for field initialization shorthand
Seiichi Uchida [Mon, 22 Jan 2018 04:03:48 +0000 (13:03 +0900)]
Add a test for field initialization shorthand

6 years agoExtending `spaces_around_ranges` to ranges in match arm patterns
David Alber [Mon, 22 Jan 2018 00:25:24 +0000 (16:25 -0800)]
Extending `spaces_around_ranges` to ranges in match arm patterns

6 years agoMerge pull request #2341 from rust-lang-nursery/steveklabnik-patch-1
Seiichi Uchida [Sun, 21 Jan 2018 06:26:31 +0000 (15:26 +0900)]
Merge pull request #2341 from rust-lang-nursery/steveklabnik-patch-1

Fix installation instructions to use rustup

6 years agoMerge pull request #2378 from kjvalencik/hard-tabs-overflow
Seiichi Uchida [Sun, 21 Jan 2018 06:20:33 +0000 (15:20 +0900)]
Merge pull request #2378 from kjvalencik/hard-tabs-overflow

LineOverflow: Count tabs as tab_spaces when measuring line length for overflow

6 years agoLineOverflow: Count tabs as tab_spaces when measuring line length for overflow
K.J. Valencik [Fri, 19 Jan 2018 17:18:25 +0000 (12:18 -0500)]
LineOverflow: Count tabs as tab_spaces when measuring line length for overflow

6 years ago0.3.6
Seiichi Uchida [Thu, 18 Jan 2018 09:54:21 +0000 (18:54 +0900)]
0.3.6

6 years agoMerge pull request #2371 from topecongiro/issue-2370
Nick Cameron [Thu, 18 Jan 2018 02:19:41 +0000 (15:19 +1300)]
Merge pull request #2371 from topecongiro/issue-2370

Do not panic when special macros have less args than expected

6 years agoDo not panic when special macros have less args than expected
Seiichi Uchida [Wed, 17 Jan 2018 15:50:16 +0000 (00:50 +0900)]
Do not panic when special macros have less args than expected

6 years agoWrapping `match_block_trailing_comma=true` snippet in function
David Alber [Tue, 16 Jan 2018 06:42:59 +0000 (22:42 -0800)]
Wrapping `match_block_trailing_comma=true` snippet in function

6 years agoWrapping `match_block_trailing_comma=false` snippet in function
David Alber [Tue, 16 Jan 2018 06:41:29 +0000 (22:41 -0800)]
Wrapping `match_block_trailing_comma=false` snippet in function

6 years agoFixing `imports_layout="HorizontalVertical"` snippet
David Alber [Tue, 16 Jan 2018 06:36:15 +0000 (22:36 -0800)]
Fixing `imports_layout="HorizontalVertical"` snippet

6 years agoFixing `imports_layout="Mixed"` snippet
David Alber [Tue, 16 Jan 2018 05:12:49 +0000 (21:12 -0800)]
Fixing `imports_layout="Mixed"` snippet

6 years agoFixing `imports_indent="Block"` snippet
David Alber [Mon, 15 Jan 2018 01:43:56 +0000 (17:43 -0800)]
Fixing `imports_indent="Block"` snippet

6 years agoFixing `imports_indent="Visual"` snippet
David Alber [Mon, 15 Jan 2018 01:43:22 +0000 (17:43 -0800)]
Fixing `imports_indent="Visual"` snippet

6 years agoFixing `format_strings=true` snippet
David Alber [Mon, 15 Jan 2018 01:30:41 +0000 (17:30 -0800)]
Fixing `format_strings=true` snippet

6 years agoFixing `format_strings=false` snippet
David Alber [Mon, 15 Jan 2018 01:30:14 +0000 (17:30 -0800)]
Fixing `format_strings=false` snippet

6 years agoFixing `where_single_line=true` snippet
David Alber [Mon, 15 Jan 2018 01:20:18 +0000 (17:20 -0800)]
Fixing `where_single_line=true` snippet

6 years agoFixing `where_single_line=false` snippet
David Alber [Mon, 15 Jan 2018 01:16:59 +0000 (17:16 -0800)]
Fixing `where_single_line=false` snippet

6 years agoFixing `brace_style="PreferSameLine"` structs and enums snippet
David Alber [Mon, 15 Jan 2018 01:14:29 +0000 (17:14 -0800)]
Fixing `brace_style="PreferSameLine"` structs and enums snippet

6 years agoFixing `brace_style="AlwaysNextLine"` structs and enums snippet
David Alber [Mon, 15 Jan 2018 01:12:38 +0000 (17:12 -0800)]
Fixing `brace_style="AlwaysNextLine"` structs and enums snippet

6 years agoFixing `brace_style="SameLineWhere"` structs and enums snippet
David Alber [Mon, 15 Jan 2018 01:10:31 +0000 (17:10 -0800)]
Fixing `brace_style="SameLineWhere"` structs and enums snippet

6 years agoGetting `fn_args_density="Vertical"` snippet to pass
David Alber [Mon, 15 Jan 2018 00:59:49 +0000 (16:59 -0800)]
Getting `fn_args_density="Vertical"` snippet to pass

6 years agoWrapping `control_brace_style="ClosingNextLine"` snippet in function
David Alber [Mon, 15 Jan 2018 00:51:31 +0000 (16:51 -0800)]
Wrapping `control_brace_style="ClosingNextLine"` snippet in function

6 years agoWrapping `control_brace_style="AlwaysNextLine"` snippet in function
David Alber [Mon, 15 Jan 2018 00:49:30 +0000 (16:49 -0800)]
Wrapping `control_brace_style="AlwaysNextLine"` snippet in function

6 years agoWrapping `control_brace_style="AlwaysSameLine"` snippet in function
David Alber [Mon, 15 Jan 2018 00:47:17 +0000 (16:47 -0800)]
Wrapping `control_brace_style="AlwaysSameLine"` snippet in function

6 years agoWrapping `condense_wildcard_suffixes=true` snippet in function
David Alber [Mon, 15 Jan 2018 00:45:38 +0000 (16:45 -0800)]
Wrapping `condense_wildcard_suffixes=true` snippet in function

6 years agoWrapping `condense_wildcard_suffixes=false` snippet in function
David Alber [Mon, 15 Jan 2018 00:45:10 +0000 (16:45 -0800)]
Wrapping `condense_wildcard_suffixes=false` snippet in function

6 years agoGetting `binop_separator="Front"` snippet to pass
David Alber [Sun, 14 Jan 2018 05:10:57 +0000 (21:10 -0800)]
Getting `binop_separator="Front"` snippet to pass

6 years agoCorrecting `use_small_heuristics=true` snippet
David Alber [Sun, 14 Jan 2018 04:49:58 +0000 (20:49 -0800)]
Correcting `use_small_heuristics=true` snippet

6 years agoCorrecting `indent_style="Block"` where predicate snippet
David Alber [Sun, 14 Jan 2018 04:40:37 +0000 (20:40 -0800)]
Correcting `indent_style="Block"` where predicate snippet

6 years agoWrapping `indent_style="Visual"` struct snippet in function
David Alber [Sun, 14 Jan 2018 03:45:31 +0000 (19:45 -0800)]
Wrapping `indent_style="Visual"` struct snippet in function

6 years agoWrapping `indent_style="Block"` struct snippet in function
David Alber [Sun, 14 Jan 2018 03:44:03 +0000 (19:44 -0800)]
Wrapping `indent_style="Block"` struct snippet in function

6 years agoCorrecting `indent_style="Visual"` generics snippet
David Alber [Sun, 14 Jan 2018 03:39:10 +0000 (19:39 -0800)]
Correcting `indent_style="Visual"` generics snippet

6 years agoCorrecting `indent_style="Block"` generics snippet
David Alber [Sun, 14 Jan 2018 03:36:19 +0000 (19:36 -0800)]
Correcting `indent_style="Block"` generics snippet

6 years agoWrapping `indent_style="Visual"` function call snippet in function
David Alber [Sun, 14 Jan 2018 03:02:21 +0000 (19:02 -0800)]
Wrapping `indent_style="Visual"` function call snippet in function

6 years agoWrapping `indent_style="Block"` function call snippet in function
David Alber [Sun, 14 Jan 2018 02:56:35 +0000 (18:56 -0800)]
Wrapping `indent_style="Block"` function call snippet in function

6 years agoWrapping `indent_style="Visual"` array snippet in function
David Alber [Thu, 11 Jan 2018 02:30:17 +0000 (18:30 -0800)]
Wrapping `indent_style="Visual"` array snippet in function

6 years agoWrapping `indent_style="Block"` array snippet in function
David Alber [Thu, 11 Jan 2018 02:27:43 +0000 (18:27 -0800)]
Wrapping `indent_style="Block"` array snippet in function

6 years agoMerge pull request #2367 from Stinners/range_binopts
Seiichi Uchida [Tue, 16 Jan 2018 08:52:09 +0000 (17:52 +0900)]
Merge pull request #2367 from Stinners/range_binopts

Fixing binop_separator="Back" for ranges (Issue #2364)

6 years agoMerge pull request #2366 from davidalber/restore-characters
Seiichi Uchida [Tue, 16 Jan 2018 08:51:37 +0000 (17:51 +0900)]
Merge pull request #2366 from davidalber/restore-characters

Restoring accidentally-removed characters

6 years agoRestoring characters accidentally removed in bbe4b380
David Alber [Tue, 16 Jan 2018 04:57:28 +0000 (20:57 -0800)]
Restoring characters accidentally removed in bbe4b380

6 years agoFixing binop_separator="Back" for ranges
Chris Stinson [Tue, 16 Jan 2018 04:39:21 +0000 (17:39 +1300)]
Fixing binop_separator="Back" for ranges

Hardcoded Separator::Place=Front in call to rewrite_pair for range
caused binop_separator="Back" to be hendled incorrectly

Fixed rewrite_pair call and the example in Configuration.md showing
the faulty behaviour

6 years agoMerge pull request #2361 from davidalber/fix-binop-separator-back-snippet
Nick Cameron [Tue, 16 Jan 2018 00:01:02 +0000 (13:01 +1300)]
Merge pull request #2361 from davidalber/fix-binop-separator-back-snippet

Getting `binop_separator="Back"` snippet in Configurations.md to pass

6 years agoGetting `binop_separator="Back"` to pass
David Alber [Sun, 14 Jan 2018 20:26:26 +0000 (12:26 -0800)]
Getting `binop_separator="Back"` to pass

6 years ago0.3.5
Seiichi Uchida [Mon, 15 Jan 2018 11:50:47 +0000 (20:50 +0900)]
0.3.5

6 years agoMerge pull request #2363 from davidalber/reword-config-note
Seiichi Uchida [Mon, 15 Jan 2018 11:46:22 +0000 (20:46 +0900)]
Merge pull request #2363 from davidalber/reword-config-note

Rewording configuration note

6 years agoRewording configuration note
David Alber [Mon, 15 Jan 2018 09:41:11 +0000 (01:41 -0800)]
Rewording configuration note

6 years agoMerge pull request #2357 from topecongiro/issue-2342
Nick Cameron [Fri, 12 Jan 2018 04:32:55 +0000 (17:32 +1300)]
Merge pull request #2357 from topecongiro/issue-2342

Put attributes and struct fields on different line by default

6 years agoMerge pull request #2355 from topecongiro/hide-parse-error-format-snippet
Nick Cameron [Fri, 12 Jan 2018 04:31:43 +0000 (17:31 +1300)]
Merge pull request #2355 from topecongiro/hide-parse-error-format-snippet

Hide parse error in format_snippet()

6 years agoMerge pull request #2352 from topecongiro/issue-2337
Nick Cameron [Fri, 12 Jan 2018 04:31:12 +0000 (17:31 +1300)]
Merge pull request #2352 from topecongiro/issue-2337

Break after colon if static item does not fit in a single line

6 years agoMerge pull request #2351 from topecongiro/issue-2256
Nick Cameron [Fri, 12 Jan 2018 04:30:27 +0000 (17:30 +1300)]
Merge pull request #2351 from topecongiro/issue-2256

Use correct BytePos when recovering comments on removed import

6 years agoMerge pull request #2350 from topecongiro/issue-2324
Nick Cameron [Fri, 12 Jan 2018 04:27:45 +0000 (17:27 +1300)]
Merge pull request #2350 from topecongiro/issue-2324

Issue 2324

6 years agoMerge pull request #2353 from davidalber/merge-print-diff
Seiichi Uchida [Thu, 11 Jan 2018 23:26:42 +0000 (08:26 +0900)]
Merge pull request #2353 from davidalber/merge-print-diff

Consolidating the logic for printing output

6 years agoMerge pull request #2358 from PSeitz/master
Seiichi Uchida [Thu, 11 Jan 2018 23:26:14 +0000 (08:26 +0900)]
Merge pull request #2358 from PSeitz/master

case insensitive FIXME and TODO