]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoMerge pull request #1568 from mathstuf/suffixes-typo
Nick Cameron [Thu, 18 May 2017 23:57:15 +0000 (11:57 +1200)]
Merge pull request #1568 from mathstuf/suffixes-typo

config: fix `suffices` -> `suffixes` typo

7 years agoconfig: fix `suffices` -> `suffixes` typo
Ben Boeckel [Thu, 18 May 2017 12:03:47 +0000 (08:03 -0400)]
config: fix `suffices` -> `suffixes` typo

Fixes #1477.

7 years agoMerge pull request #1562 from flier/reorder_imports_in_group
Seiichi Uchida [Thu, 18 May 2017 08:53:23 +0000 (17:53 +0900)]
Merge pull request #1562 from flier/reorder_imports_in_group

reorder imports in group

7 years agoreorder imports in group
Flier Lu [Wed, 17 May 2017 10:32:18 +0000 (18:32 +0800)]
reorder imports in group

7 years agoMerge pull request #1560 from topecongiro/issue-1441
Nick Cameron [Wed, 17 May 2017 22:51:21 +0000 (10:51 +1200)]
Merge pull request #1560 from topecongiro/issue-1441

Use multiline when signature does not fit single line

7 years agoBump version of strings.rs and cargo update
Nick Cameron [Wed, 17 May 2017 19:59:09 +0000 (07:59 +1200)]
Bump version of strings.rs and cargo update

7 years agoUse multiline when signature does not fit single line
topecongiro [Wed, 17 May 2017 07:31:09 +0000 (16:31 +0900)]
Use multiline when signature does not fit single line

7 years agoAdd note about libsyntax branch to README
Nick Cameron [Wed, 17 May 2017 07:07:25 +0000 (19:07 +1200)]
Add note about libsyntax branch to README

7 years agoMerge pull request #1559 from topecongiro/poor/chain
Nick Cameron [Wed, 17 May 2017 05:43:42 +0000 (17:43 +1200)]
Merge pull request #1559 from topecongiro/poor/chain

Allow the last element in chain to go multiline

7 years agoMerge pull request #1557 from mjkillough/issue_1366
Nick Cameron [Tue, 16 May 2017 21:58:49 +0000 (09:58 +1200)]
Merge pull request #1557 from mjkillough/issue_1366

Add test for issue #1366.

7 years agoFormat source codes
topecongiro [Tue, 16 May 2017 14:24:38 +0000 (23:24 +0900)]
Format source codes

7 years agoAllow last child in chain to go multiline
topecongiro [Tue, 16 May 2017 14:24:00 +0000 (23:24 +0900)]
Allow last child in chain to go multiline

7 years agoAdd test for issue #1366.
Michael Killough [Tue, 16 May 2017 09:13:23 +0000 (16:13 +0700)]
Add test for issue #1366.

As the comments in the issue state: it appears to work now, so this test
should just stop any regressions.

The second example in the issue description will format to the first,
which is then a fixed-point.

7 years agoMerge pull request #1556 from topecongiro/issue-1555
Nick Cameron [Mon, 15 May 2017 21:55:07 +0000 (09:55 +1200)]
Merge pull request #1556 from topecongiro/issue-1555

Only add offset for unary op

7 years agoFormat source codes
Seiichi Uchida [Mon, 15 May 2017 13:55:45 +0000 (22:55 +0900)]
Format source codes

7 years agoUse offset_left for rewrite_unary_prefix
Seiichi Uchida [Mon, 15 May 2017 13:55:01 +0000 (22:55 +0900)]
Use offset_left for rewrite_unary_prefix

7 years agoMerge pull request #1510 from fintelia/better-filelines
Nick Cameron [Sun, 14 May 2017 21:19:18 +0000 (09:19 +1200)]
Merge pull request #1510 from fintelia/better-filelines

Better file_lines

7 years agoMerge pull request #1551 from topecongiro/else-if-early-line-break
Nick Cameron [Sun, 14 May 2017 20:59:03 +0000 (08:59 +1200)]
Merge pull request #1551 from topecongiro/else-if-early-line-break

Forbid early line breaks inside else if

7 years agoMerge pull request #1550 from topecongiro/issue-1547
Nick Cameron [Sun, 14 May 2017 20:46:14 +0000 (08:46 +1200)]
Merge pull request #1550 from topecongiro/issue-1547

Prevent rewriting closure block to expr inside macro

7 years agoMerge pull request #1552 from guanqun/give-specific-errors
Nick Cameron [Sun, 14 May 2017 06:08:27 +0000 (18:08 +1200)]
Merge pull request #1552 from guanqun/give-specific-errors

add more specific reason why it fails to parse

7 years agoadd more specific reason why it fails to parse
Guanqun Lu [Sun, 14 May 2017 05:19:06 +0000 (13:19 +0800)]
add more specific reason why it fails to parse

7 years agoAdd and improve tests of file_lines
Jonathan Behrens [Sat, 13 May 2017 17:15:17 +0000 (13:15 -0400)]
Add and improve tests of file_lines

7 years agoRefactor file range checking
Jonathan Behrens [Sat, 13 May 2017 17:14:24 +0000 (13:14 -0400)]
Refactor file range checking

7 years agoFormat source code
Seiichi Uchida [Sat, 13 May 2017 12:08:10 +0000 (21:08 +0900)]
Format source code

7 years agoUse precise width when rewriting else if
Seiichi Uchida [Sat, 13 May 2017 12:07:36 +0000 (21:07 +0900)]
Use precise width when rewriting else if

7 years agoPrevent rewriting closure block to expr inside macro
Seiichi Uchida [Sat, 13 May 2017 09:20:18 +0000 (18:20 +0900)]
Prevent rewriting closure block to expr inside macro

7 years agoMerge pull request #1546 from topecongiro/bug/range-full
Seiichi Uchida [Sat, 13 May 2017 08:40:47 +0000 (17:40 +0900)]
Merge pull request #1546 from topecongiro/bug/range-full

Add a missing trailing comma before elipses

7 years agoAdd a missing trailing comma before elipses
topecongiro [Fri, 12 May 2017 21:44:57 +0000 (06:44 +0900)]
Add a missing trailing comma before elipses

7 years agoMerge pull request #1530 from azyobuzin/vscodeextlink
Nick Cameron [Fri, 12 May 2017 21:54:09 +0000 (09:54 +1200)]
Merge pull request #1530 from azyobuzin/vscodeextlink

Change the link of Visual Studio Code extension

7 years agoMerge pull request #1543 from topecongiro/field-attr
Seiichi Uchida [Fri, 12 May 2017 11:08:36 +0000 (20:08 +0900)]
Merge pull request #1543 from topecongiro/field-attr

Support struct_field_attributes

7 years agoAdd a link of rls_vscode
azyobuzin [Fri, 12 May 2017 11:06:28 +0000 (20:06 +0900)]
Add a link of rls_vscode

7 years agoSupport struct_field_attributes
topecongiro [Fri, 12 May 2017 08:58:38 +0000 (17:58 +0900)]
Support struct_field_attributes

7 years agoMerge pull request #1540 from topecongiro/fn_call_width
Nick Cameron [Fri, 12 May 2017 08:49:58 +0000 (20:49 +1200)]
Merge pull request #1540 from topecongiro/fn_call_width

Use vertical layout when args len is larger than fn_call_width

7 years agoUse vertical layout when args len is larger than fn_call_width
topecongiro [Fri, 12 May 2017 07:30:26 +0000 (16:30 +0900)]
Use vertical layout when args len is larger than fn_call_width

7 years agoMerge pull request #1529 from topecongiro/issue-1528
Nick Cameron [Fri, 12 May 2017 03:04:01 +0000 (15:04 +1200)]
Merge pull request #1529 from topecongiro/issue-1528

Use newline only when fn_call_style is Block

7 years agoTry multi-line only when fn_call_style is Block and rewriting function call
topecongiro [Thu, 11 May 2017 04:38:26 +0000 (13:38 +0900)]
Try multi-line only when fn_call_style is Block and rewriting function call

7 years agoChange the link of Visual Studio Code extension
azyobuzin [Thu, 11 May 2017 09:48:27 +0000 (18:48 +0900)]
Change the link of Visual Studio Code extension

RustyCode is no longer maintained.

7 years agobump version (0.8.4) and cargo update
Nick Cameron [Tue, 9 May 2017 22:38:35 +0000 (10:38 +1200)]
bump version (0.8.4) and cargo update

7 years agoMerge pull request #1523 from topecongiro/poor-formatting/fn_call_style
Nick Cameron [Tue, 9 May 2017 20:27:24 +0000 (08:27 +1200)]
Merge pull request #1523 from topecongiro/poor-formatting/fn_call_style

Use multiline when args exceeds max_width in fn_call_style = "block"

7 years agoMerge pull request #1522 from topecongiro/poor-formatting/if-else
Nick Cameron [Tue, 9 May 2017 20:20:24 +0000 (08:20 +1200)]
Merge pull request #1522 from topecongiro/poor-formatting/if-else

Inherit alignment to 'else'

7 years agoUse multiline when args exceeds max_width in fn_call_style = "block"
topecongiro [Tue, 9 May 2017 15:27:57 +0000 (00:27 +0900)]
Use multiline when args exceeds max_width in fn_call_style = "block"

7 years agoInherit alignment to last else
topecongiro [Tue, 9 May 2017 08:33:45 +0000 (17:33 +0900)]
Inherit alignment to last else

7 years agoRefactor rewrite_pat_expr
topecongiro [Tue, 9 May 2017 08:33:28 +0000 (17:33 +0900)]
Refactor rewrite_pat_expr

7 years agoMerge pull request #1519 from topecongiro/poor-formatting/if-else
Nick Cameron [Tue, 9 May 2017 03:21:29 +0000 (15:21 +1200)]
Merge pull request #1519 from topecongiro/poor-formatting/if-else

Remove visual_indent when rewriting else block

7 years agoMerge pull request #1520 from topecongiro/allow-match
Nick Cameron [Tue, 9 May 2017 03:21:06 +0000 (15:21 +1200)]
Merge pull request #1520 from topecongiro/allow-match

Apply closure exception to match in args

7 years agoApply closure exception to match in args
topecongiro [Mon, 8 May 2017 23:28:05 +0000 (08:28 +0900)]
Apply closure exception to match in args

7 years agoRemove visual_indent when rewriting else block
topecongiro [Mon, 8 May 2017 23:11:05 +0000 (08:11 +0900)]
Remove visual_indent when rewriting else block

7 years agoMerge pull request #1516 from topecongiro/remove-try
Nick Cameron [Mon, 8 May 2017 04:32:05 +0000 (16:32 +1200)]
Merge pull request #1516 from topecongiro/remove-try

Replace 'try!' with '?'

7 years agoReplace 'try!' with '?'
topecongiro [Mon, 8 May 2017 04:13:49 +0000 (13:13 +0900)]
Replace 'try!' with '?'

7 years agoMerge pull request #1506 from topecongiro/issue-1351
Nick Cameron [Mon, 8 May 2017 01:37:01 +0000 (13:37 +1200)]
Merge pull request #1506 from topecongiro/issue-1351

Use block indent if visual indent exceeds max_width when rewriting block

7 years agoUse block indent when visual indent failed
topecongiro [Sun, 7 May 2017 23:07:18 +0000 (08:07 +0900)]
Use block indent when visual indent failed

7 years agoMerge pull request #1442 from topecongiro/poor-formatting/trailing-comma
Nick Cameron [Sun, 7 May 2017 22:45:03 +0000 (10:45 +1200)]
Merge pull request #1442 from topecongiro/poor-formatting/trailing-comma

Remove comma from function definition with a single argument

7 years agoMerge pull request #1511 from topecongiro/bug/closure-fallback
Nick Cameron [Sun, 7 May 2017 22:30:50 +0000 (10:30 +1200)]
Merge pull request #1511 from topecongiro/bug/closure-fallback

Add fallback path inside rewrite_closure

7 years agoMerge pull request #1513 from topecongiro/refactoring
Nick Cameron [Sun, 7 May 2017 22:29:02 +0000 (10:29 +1200)]
Merge pull request #1513 from topecongiro/refactoring

Add methods to Shape

7 years agoRefactor Shape
topecongiro [Sun, 7 May 2017 22:24:32 +0000 (07:24 +0900)]
Refactor Shape

7 years agoAdd indented and with_max_width
topecongiro [Sun, 7 May 2017 22:24:12 +0000 (07:24 +0900)]
Add indented and with_max_width

7 years agoMerge pull request #1512 from topecongiro/config-path
Nick Cameron [Sun, 7 May 2017 22:15:41 +0000 (10:15 +1200)]
Merge pull request #1512 from topecongiro/config-path

Allow config-path to point to a file

7 years agoAllow config-path to point to a file
topecongiro [Sun, 7 May 2017 07:44:03 +0000 (16:44 +0900)]
Allow config-path to point to a file

7 years agoAdd fallback path
topecongiro [Sun, 7 May 2017 04:06:54 +0000 (13:06 +0900)]
Add fallback path

7 years agoRespect file_lines within write_snippet() function
Jonathan Behrens [Sat, 6 May 2017 21:59:51 +0000 (17:59 -0400)]
Respect file_lines within write_snippet() function

7 years agoRespect file_lines within format_lines() function
Jonathan Behrens [Sat, 6 May 2017 19:14:44 +0000 (15:14 -0400)]
Respect file_lines within format_lines() function

7 years agoBlock format control flow discriminant expressions and binops
Nick Cameron [Fri, 5 May 2017 02:29:18 +0000 (14:29 +1200)]
Block format control flow discriminant expressions and binops

Fixes #1450

Adds control_style option

7 years agoUpdate tests
topecongiro [Thu, 4 May 2017 06:17:57 +0000 (15:17 +0900)]
Update tests

7 years agoMerge pull request #1502 from topecongiro/tests
Nick Cameron [Thu, 4 May 2017 23:04:26 +0000 (11:04 +1200)]
Merge pull request #1502 from topecongiro/tests

Add tests for issues which can be closed on master

7 years agoUse SeperatorTactic::Never for a single argument
topecongiro [Fri, 7 Apr 2017 07:53:49 +0000 (16:53 +0900)]
Use SeperatorTactic::Never for a single argument

7 years agoAdd tests for issues which can be closed on master
topecongiro [Thu, 4 May 2017 04:52:35 +0000 (13:52 +0900)]
Add tests for issues which can be closed on master

7 years agoMerge pull request #1495 from topecongiro/poor-formatting/closure
Nick Cameron [Thu, 4 May 2017 05:15:58 +0000 (17:15 +1200)]
Merge pull request #1495 from topecongiro/poor-formatting/closure

Fix weird indentation inside closures

7 years agoMerge pull request #1500 from shioju/master
Nick Cameron [Wed, 3 May 2017 22:00:03 +0000 (10:00 +1200)]
Merge pull request #1500 from shioju/master

Format macros in trait item position

7 years agoMerge pull request #1496 from est31/master
Nick Cameron [Wed, 3 May 2017 21:12:21 +0000 (09:12 +1200)]
Merge pull request #1496 from est31/master

Drop rustc-serialize, use serde, update toml dependency

7 years agoFormat macros in trait item position
Sheng Hau [Wed, 3 May 2017 16:10:03 +0000 (00:10 +0800)]
Format macros in trait item position

7 years agoCheck format failures explicitly in visit_block
topecongiro [Wed, 3 May 2017 15:21:51 +0000 (00:21 +0900)]
Check format failures explicitly in visit_block

7 years agoFormat fix
est31 [Wed, 3 May 2017 15:16:58 +0000 (17:16 +0200)]
Format fix

7 years agoSimplifications
est31 [Wed, 3 May 2017 15:11:34 +0000 (17:11 +0200)]
Simplifications

7 years agoDrop rustc-serialize, use serde, update toml dependency
est31 [Wed, 3 May 2017 08:23:50 +0000 (10:23 +0200)]
Drop rustc-serialize, use serde, update toml dependency

7 years agocargo update
Nick Cameron [Wed, 3 May 2017 06:02:48 +0000 (18:02 +1200)]
cargo update

7 years agoUpdate tests
topecongiro [Wed, 3 May 2017 02:26:31 +0000 (11:26 +0900)]
Update tests

7 years agoFormat source codes
topecongiro [Wed, 3 May 2017 02:26:25 +0000 (11:26 +0900)]
Format source codes

7 years agoKeep a chain with length chain_one_line_max in a single line
topecongiro [Wed, 3 May 2017 02:24:08 +0000 (11:24 +0900)]
Keep a chain with length chain_one_line_max in a single line

7 years agoSplit a long chain with a single child
topecongiro [Wed, 3 May 2017 02:22:36 +0000 (11:22 +0900)]
Split a long chain with a single child

7 years agoUse block indent when visual indent failed inside closure block
topecongiro [Wed, 3 May 2017 02:21:31 +0000 (11:21 +0900)]
Use block indent when visual indent failed inside closure block

7 years agoMerge pull request #1453 from topecongiro/bug/empty-struct-with-comment
Nick Cameron [Tue, 2 May 2017 01:49:15 +0000 (13:49 +1200)]
Merge pull request #1453 from topecongiro/bug/empty-struct-with-comment

Handle empty tuple struct def with comment properly

7 years agoMerge pull request #1488 from topecongiro/long-match-arm
Nick Cameron [Tue, 2 May 2017 01:49:02 +0000 (13:49 +1200)]
Merge pull request #1488 from topecongiro/long-match-arm

Use block when arm exceeds max_width

7 years agoAdd test for empty tuple struct with comment
topecongiro [Fri, 14 Apr 2017 13:39:20 +0000 (22:39 +0900)]
Add test for empty tuple struct with comment

7 years agoHandle empty tuple struct def properly
topecongiro [Fri, 14 Apr 2017 11:25:47 +0000 (20:25 +0900)]
Handle empty tuple struct def properly

7 years agoUse block when arm exceeds max_width
Seiichi Uchida [Mon, 1 May 2017 11:00:21 +0000 (20:00 +0900)]
Use block when arm exceeds max_width

7 years agoFixup tests
Nick Cameron [Mon, 1 May 2017 23:42:38 +0000 (11:42 +1200)]
Fixup tests

7 years agoMerge pull request #1474 from regexident/configs-guide
Nick Cameron [Mon, 1 May 2017 23:33:53 +0000 (11:33 +1200)]
Merge pull request #1474 from regexident/configs-guide

Added visual configurations guide.

7 years agoMerge pull request #1481 from regexident/system-error
Nick Cameron [Mon, 1 May 2017 23:17:48 +0000 (11:17 +1200)]
Merge pull request #1481 from regexident/system-error

Improve error message for missing source/target test file

7 years agoMerge pull request #1471 from regexident/type_punctuation_density
Nick Cameron [Mon, 1 May 2017 23:17:35 +0000 (11:17 +1200)]
Merge pull request #1471 from regexident/type_punctuation_density

Made `type_punctuation_density` apply too all `+` in types

7 years agoMade `type_punctuation_density` apply too all `+` in types
Vincent Esche [Mon, 24 Apr 2017 17:59:21 +0000 (19:59 +0200)]
Made `type_punctuation_density` apply too all `+` in types

7 years agoMerge pull request #1482 from regexident/configs-tests
Nick Cameron [Mon, 1 May 2017 23:00:09 +0000 (11:00 +1200)]
Merge pull request #1482 from regexident/configs-tests

Add source/target tests for each config option

7 years agoMerge pull request #1491 from regexident/where_density
Nick Cameron [Mon, 1 May 2017 22:50:32 +0000 (10:50 +1200)]
Merge pull request #1491 from regexident/where_density

Add todo on equal output for `where_density = Tall` or `Vertical`

7 years agoMerge pull request #1489 from regexident/gitignore
Nick Cameron [Mon, 1 May 2017 22:50:03 +0000 (10:50 +1200)]
Merge pull request #1489 from regexident/gitignore

Improve gitignore, adding ‘.DS_Store’

7 years agoMerge pull request #1487 from topecongiro/issue1470
Nick Cameron [Mon, 1 May 2017 22:45:23 +0000 (10:45 +1200)]
Merge pull request #1487 from topecongiro/issue1470

Use block indent when visual indent exceeds max_width

7 years agoMerge pull request #1454 from topecongiro/match
Nick Cameron [Mon, 1 May 2017 22:40:31 +0000 (10:40 +1200)]
Merge pull request #1454 from topecongiro/match

Format nested mathces properly.

7 years agoMerge pull request #1486 from topecongiro/refactoring
Nick Cameron [Mon, 1 May 2017 22:30:11 +0000 (10:30 +1200)]
Merge pull request #1486 from topecongiro/refactoring

Refactor source codes

7 years agoAdd visual configurations guide.
Vincent Esche [Wed, 26 Apr 2017 15:36:10 +0000 (17:36 +0200)]
Add visual configurations guide.

7 years agoImprove error message for missing source/target test file
Vincent Esche [Sun, 30 Apr 2017 21:44:12 +0000 (23:44 +0200)]
Improve error message for missing source/target test file

7 years agoAdd todo on equal output for `where_density = Tall` or `Vertical`
Vincent Esche [Mon, 1 May 2017 20:01:19 +0000 (22:01 +0200)]
Add todo on equal output for `where_density = Tall` or `Vertical`

7 years agoRemove generics_style option
Nick Cameron [Mon, 1 May 2017 19:56:46 +0000 (07:56 +1200)]
Remove generics_style option