]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge pull request #1818 from topecongiro/issue-1194
Nick Cameron [Tue, 25 Jul 2017 23:40:41 +0000 (11:40 +1200)]
Merge pull request #1818 from topecongiro/issue-1194

Put braces on the next line if it exceeds max width

6 years agoMerge pull request #1817 from topecongiro/file-lines-tests
Nick Cameron [Tue, 25 Jul 2017 23:36:54 +0000 (11:36 +1200)]
Merge pull request #1817 from topecongiro/file-lines-tests

Restore comments in file-lines tests

6 years agoMerge pull request #1816 from topecongiro/struct-variant-width-0
Nick Cameron [Tue, 25 Jul 2017 23:32:42 +0000 (11:32 +1200)]
Merge pull request #1816 from topecongiro/struct-variant-width-0

Force vertical layout when struct_variant_width is 0

6 years agoUpdate tests
topecongiro [Tue, 25 Jul 2017 09:51:29 +0000 (18:51 +0900)]
Update tests

6 years agoPut braces on the next line if it exceeds max width
topecongiro [Tue, 25 Jul 2017 09:51:14 +0000 (18:51 +0900)]
Put braces on the next line if it exceeds max width

6 years agoRestore comments in file-liens tests
topecongiro [Tue, 25 Jul 2017 06:47:44 +0000 (15:47 +0900)]
Restore comments in file-liens tests

6 years agoForce vertical layout when struct_variant_width is 0
topecongiro [Tue, 25 Jul 2017 06:19:09 +0000 (15:19 +0900)]
Force vertical layout when struct_variant_width is 0

6 years agocargo update
Nick Cameron [Tue, 25 Jul 2017 03:55:18 +0000 (15:55 +1200)]
cargo update

6 years agoMerge pull request #1805 from topecongiro/inner-attr
Nick Cameron [Mon, 24 Jul 2017 23:38:59 +0000 (11:38 +1200)]
Merge pull request #1805 from topecongiro/inner-attr

Format inner attributes

6 years agoUpdate tests
Seiichi Uchida [Mon, 24 Jul 2017 15:56:09 +0000 (00:56 +0900)]
Update tests

6 years agoFormat inner attributes wherever possible
Seiichi Uchida [Mon, 24 Jul 2017 15:55:55 +0000 (00:55 +0900)]
Format inner attributes wherever possible

6 years agoSupport inner attributes
Seiichi Uchida [Mon, 24 Jul 2017 15:55:29 +0000 (00:55 +0900)]
Support inner attributes

6 years agoMerge pull request #1808 from topecongiro/issue-831
Nick Cameron [Sat, 22 Jul 2017 04:29:36 +0000 (16:29 +1200)]
Merge pull request #1808 from topecongiro/issue-831

Allow block-like rhs expression to stay on the same line with lhs

6 years agoMerge pull request #1811 from topecongiro/rustfmt-skip-on-stmt
Nick Cameron [Sat, 22 Jul 2017 04:07:25 +0000 (16:07 +1200)]
Merge pull request #1811 from topecongiro/rustfmt-skip-on-stmt

Support rustfmt_skip on statements

6 years agoUpdate tests
topecongiro [Sat, 22 Jul 2017 02:18:59 +0000 (11:18 +0900)]
Update tests

6 years agoSupport rustfmt_skip on statements
topecongiro [Sat, 22 Jul 2017 02:18:47 +0000 (11:18 +0900)]
Support rustfmt_skip on statements

6 years agoFormat source codes and update tests
topecongiro [Fri, 21 Jul 2017 08:55:52 +0000 (17:55 +0900)]
Format source codes and update tests

6 years agoAllow block-like rhs expression to stay on the same line as lhs
topecongiro [Fri, 21 Jul 2017 08:53:03 +0000 (17:53 +0900)]
Allow block-like rhs expression to stay on the same line as lhs

6 years agoMerge pull request #1806 from topecongiro/item-brace-style
Nick Cameron [Fri, 21 Jul 2017 05:58:39 +0000 (17:58 +1200)]
Merge pull request #1806 from topecongiro/item-brace-style

Apply item_brace_style to module

6 years agoUpdate tests
topecongiro [Fri, 21 Jul 2017 04:55:34 +0000 (13:55 +0900)]
Update tests

6 years agoApply item_brace_style to mod
topecongiro [Fri, 21 Jul 2017 04:55:15 +0000 (13:55 +0900)]
Apply item_brace_style to mod

6 years agoMerge pull request #1804 from topecongiro/issue-1802
Nick Cameron [Thu, 20 Jul 2017 23:31:43 +0000 (11:31 +1200)]
Merge pull request #1804 from topecongiro/issue-1802

Consider max_width when rewriting struct in single-line

6 years agoMerge pull request #1803 from nrc/writemode
Nick Cameron [Thu, 20 Jul 2017 23:23:24 +0000 (11:23 +1200)]
Merge pull request #1803 from nrc/writemode

Change the writemode to overwrite

6 years agoChange the writemode to overwrite
Nick Cameron [Thu, 20 Jul 2017 21:10:27 +0000 (09:10 +1200)]
Change the writemode to overwrite

6 years agoConsider max_width when rewriting struct in single-line
topecongiro [Thu, 20 Jul 2017 22:17:49 +0000 (07:17 +0900)]
Consider max_width when rewriting struct in single-line

6 years agoMerge pull request #1801 from topecongiro/issue-1799
Nick Cameron [Thu, 20 Jul 2017 20:50:26 +0000 (08:50 +1200)]
Merge pull request #1801 from topecongiro/issue-1799

Cover missing comments between attributes and expressions

6 years agoCover missing comments between attributes and expressions
topecongiro [Thu, 20 Jul 2017 14:58:00 +0000 (23:58 +0900)]
Cover missing comments between attributes and expressions

6 years agoMerge pull request #1796 from topecongiro/small-fixes
Nick Cameron [Wed, 19 Jul 2017 22:14:51 +0000 (10:14 +1200)]
Merge pull request #1796 from topecongiro/small-fixes

Small fixes

6 years agoFormat source codes and update tests
Seiichi Uchida [Wed, 19 Jul 2017 15:35:00 +0000 (00:35 +0900)]
Format source codes and update tests

6 years agoUse block indent when rewriting parenthesised expressions
Seiichi Uchida [Wed, 19 Jul 2017 15:30:42 +0000 (00:30 +0900)]
Use block indent when rewriting parenthesised expressions

6 years agoRemove old heuristics from legacy style
Seiichi Uchida [Wed, 19 Jul 2017 15:16:31 +0000 (00:16 +0900)]
Remove old heuristics from legacy style

6 years agoFormat source codes and update tests
Seiichi Uchida [Wed, 19 Jul 2017 15:09:43 +0000 (00:09 +0900)]
Format source codes and update tests

6 years agoPut the brace of match on the next line if condition is multi-lined
Seiichi Uchida [Wed, 19 Jul 2017 15:09:03 +0000 (00:09 +0900)]
Put the brace of match on the next line if condition is multi-lined

6 years agoFormat source codes and update tests
Seiichi Uchida [Wed, 19 Jul 2017 15:01:38 +0000 (00:01 +0900)]
Format source codes and update tests

6 years agoImplement RFC style for match
Seiichi Uchida [Wed, 19 Jul 2017 15:00:36 +0000 (00:00 +0900)]
Implement RFC style for match

Put the opening brace of match arm's body on the next line if the pattern has
guard and consists of multi lines.

6 years agoUse offset_left instead of shrink_left
Seiichi Uchida [Wed, 19 Jul 2017 13:50:28 +0000 (22:50 +0900)]
Use offset_left instead of shrink_left

6 years agoMerge pull request #1785 from topecongiro/rfc/import
Nick Cameron [Fri, 14 Jul 2017 01:06:34 +0000 (13:06 +1200)]
Merge pull request #1785 from topecongiro/rfc/import

Rfc: use block indent for multi-lined imports

6 years agoAdd imports_indent and imports_layout config options
topecongiro [Thu, 13 Jul 2017 11:40:49 +0000 (20:40 +0900)]
Add imports_indent and imports_layout config options

6 years agoAdd tip about LD_LIBRARY_PATH to README
Nick Cameron [Thu, 13 Jul 2017 21:02:40 +0000 (09:02 +1200)]
Add tip about LD_LIBRARY_PATH to README

closes #1707

6 years agoAdd trailing comma when using Mixed indent style with newline
topecongiro [Thu, 13 Jul 2017 11:32:46 +0000 (20:32 +0900)]
Add trailing comma when using Mixed indent style with newline

6 years agoUpdate tests
topecongiro [Thu, 13 Jul 2017 09:43:35 +0000 (18:43 +0900)]
Update tests

6 years agoSet reorder_imported_names to true as default
topecongiro [Thu, 13 Jul 2017 09:42:49 +0000 (18:42 +0900)]
Set reorder_imported_names to true as default

6 years agoSort imports in alphabetical and consistent order
topecongiro [Thu, 13 Jul 2017 09:42:14 +0000 (18:42 +0900)]
Sort imports in alphabetical and consistent order

6 years agoSort items within import alphabetically in groups
topecongiro [Thu, 13 Jul 2017 09:36:31 +0000 (18:36 +0900)]
Sort items within import alphabetically in groups

We group items in snake_case, CamelCase and SCREAMING_SNAKE_CASE

7 years agoMerge pull request #1786 from euclio/globs
Nick Cameron [Wed, 12 Jul 2017 20:15:46 +0000 (08:15 +1200)]
Merge pull request #1786 from euclio/globs

add test for root glob imports

7 years agoMerge pull request #1787 from euclio/errors
Nick Cameron [Wed, 12 Jul 2017 20:13:48 +0000 (08:13 +1200)]
Merge pull request #1787 from euclio/errors

assert no errors on formatting test source

7 years agoassert no errors on formatting test source
Andy Russell [Wed, 12 Jul 2017 17:21:36 +0000 (13:21 -0400)]
assert no errors on formatting test source

Fixes #28.

7 years agoadd test for root glob imports
Andy Russell [Wed, 12 Jul 2017 16:53:02 +0000 (12:53 -0400)]
add test for root glob imports

Fixes #1472.

7 years agoMerge pull request #1779 from topecongiro/issue-1777
Nick Cameron [Wed, 12 Jul 2017 08:41:21 +0000 (20:41 +1200)]
Merge pull request #1779 from topecongiro/issue-1777

Do not count the number of parens inside str or comment

7 years agoDo not count the number of parens inside str or comment
Seiichi Uchida [Mon, 10 Jul 2017 07:45:21 +0000 (16:45 +0900)]
Do not count the number of parens inside str or comment

7 years agoMerge pull request #1783 from topecongiro/trailing-semicolon
Nick Cameron [Wed, 12 Jul 2017 05:34:13 +0000 (17:34 +1200)]
Merge pull request #1783 from topecongiro/trailing-semicolon

Add trailing_semicolon config option

7 years agoAdd trailing_semicolon config option
topecongiro [Tue, 11 Jul 2017 13:41:38 +0000 (22:41 +0900)]
Add trailing_semicolon config option

trailing_semicolon controls whether to add a trailing semicolon after break,
continue and return.

7 years agoMerge pull request #1782 from topecongiro/rfc/combining-match-arm
Nick Cameron [Wed, 12 Jul 2017 04:23:18 +0000 (16:23 +1200)]
Merge pull request #1782 from topecongiro/rfc/combining-match-arm

Rfc: combining match arm

7 years agoUpdate wrap_match_arms option tests and visual guide
topecongiro [Tue, 11 Jul 2017 12:53:57 +0000 (21:53 +0900)]
Update wrap_match_arms option tests and visual guide

7 years agoUpdate tests
topecongiro [Tue, 11 Jul 2017 12:53:48 +0000 (21:53 +0900)]
Update tests

7 years agoFormat source codes
topecongiro [Tue, 11 Jul 2017 12:53:10 +0000 (21:53 +0900)]
Format source codes

7 years agoImplement combining against match arms
topecongiro [Tue, 11 Jul 2017 12:52:27 +0000 (21:52 +0900)]
Implement combining against match arms

7 years agoMerge pull request #1780 from topecongiro/rfc/union
Nick Cameron [Tue, 11 Jul 2017 04:16:35 +0000 (16:16 +1200)]
Merge pull request #1780 from topecongiro/rfc/union

Format union

7 years agoMerge pull request #1778 from topecongiro/rfc/match-arm-multiline-pattern
Nick Cameron [Tue, 11 Jul 2017 04:11:09 +0000 (16:11 +1200)]
Merge pull request #1778 from topecongiro/rfc/match-arm-multiline-pattern

Rfc: fix up match arm pattern

7 years agoFormat union
Seiichi Uchida [Mon, 10 Jul 2017 08:26:55 +0000 (17:26 +0900)]
Format union

7 years agoUpdate tests
topecongiro [Mon, 10 Jul 2017 07:52:55 +0000 (16:52 +0900)]
Update tests

7 years agoFormat source codes
topecongiro [Mon, 10 Jul 2017 07:52:50 +0000 (16:52 +0900)]
Format source codes

7 years agoFix up rewriting match arm pattern
topecongiro [Mon, 10 Jul 2017 07:52:07 +0000 (16:52 +0900)]
Fix up rewriting match arm pattern

7 years agoMerge pull request #1776 from topecongiro/poor-formatting/index-budget
Nick Cameron [Mon, 10 Jul 2017 05:52:23 +0000 (17:52 +1200)]
Merge pull request #1776 from topecongiro/poor-formatting/index-budget

Use correct one line budget when rewriting index

7 years agoMerge pull request #1772 from topecongiro/recover-removed-comment
Nick Cameron [Mon, 10 Jul 2017 05:51:35 +0000 (17:51 +1200)]
Merge pull request #1772 from topecongiro/recover-removed-comment

Recover removed comment before and after `where`

7 years agoCover missing comments before and after where
topecongiro [Mon, 10 Jul 2017 05:35:50 +0000 (14:35 +0900)]
Cover missing comments before and after where

7 years agoUse correct one line budget when rewriting index
topecongiro [Mon, 10 Jul 2017 05:23:29 +0000 (14:23 +0900)]
Use correct one line budget when rewriting index

7 years agoUpdate README.md: add 'rustup update'
Seiichi Uchida [Mon, 10 Jul 2017 04:46:36 +0000 (13:46 +0900)]
Update README.md: add 'rustup update'

7 years agoMerge pull request #1775 from topecongiro/rfc/patterns
Nick Cameron [Mon, 10 Jul 2017 04:22:01 +0000 (16:22 +1200)]
Merge pull request #1775 from topecongiro/rfc/patterns

RFC: patterns in condition and match arm

7 years agocargo update
Nick Cameron [Mon, 10 Jul 2017 04:18:41 +0000 (16:18 +1200)]
cargo update

7 years agoUpdate tests
Seiichi Uchida [Sun, 9 Jul 2017 17:25:26 +0000 (02:25 +0900)]
Update tests

7 years agoFormat source codes
Seiichi Uchida [Sun, 9 Jul 2017 17:24:59 +0000 (02:24 +0900)]
Format source codes

7 years agoRefactor rewrite_assign_rhs
Seiichi Uchida [Sun, 9 Jul 2017 17:22:59 +0000 (02:22 +0900)]
Refactor rewrite_assign_rhs

1. Stop using mut var
2. Use block indent when breaking lines

7 years agoUse rewrite_assign_rhs for rewriting pattern in condition
Seiichi Uchida [Sun, 9 Jul 2017 17:22:15 +0000 (02:22 +0900)]
Use rewrite_assign_rhs for rewriting pattern in condition

7 years agoPrefer to put the whole pattern of match arm on one line
Seiichi Uchida [Sun, 9 Jul 2017 17:18:53 +0000 (02:18 +0900)]
Prefer to put the whole pattern of match arm on one line

7 years agoImplement rhs_overhead method against Shape
Seiichi Uchida [Sun, 9 Jul 2017 17:16:57 +0000 (02:16 +0900)]
Implement rhs_overhead method against Shape

7 years agoMerge branch 'master' of https://github.com/petrochenkov/rustfmt into petrochenkov...
Nick Cameron [Fri, 7 Jul 2017 23:22:53 +0000 (11:22 +1200)]
Merge branch 'master' of https://github.com/petrochenkov/rustfmt into petrochenkov-master

7 years agoUpdate rustfmt for ast::ExprKind::MethodCall changes
Vadim Petrochenkov [Fri, 7 Jul 2017 12:52:23 +0000 (15:52 +0300)]
Update rustfmt for ast::ExprKind::MethodCall changes

7 years agoMerge pull request #1769 from topecongiro/comment-vertical-alignment
Nick Cameron [Fri, 7 Jul 2017 04:50:46 +0000 (16:50 +1200)]
Merge pull request #1769 from topecongiro/comment-vertical-alignment

Comment vertical alignment

7 years agoAdd tests to check alignment don't exceed max_width
topecongiro [Fri, 7 Jul 2017 00:01:14 +0000 (09:01 +0900)]
Add tests to check alignment don't exceed max_width

7 years agoUse closure instead of declaring function
topecongiro [Thu, 6 Jul 2017 23:51:19 +0000 (08:51 +0900)]
Use closure instead of declaring function

Take comment overhead into account

7 years agoUpdate tests
topecongiro [Wed, 5 Jul 2017 16:03:20 +0000 (01:03 +0900)]
Update tests

7 years agoFormat source codes
topecongiro [Wed, 5 Jul 2017 16:03:07 +0000 (01:03 +0900)]
Format source codes

7 years agoImplement vertical alignment for comments after list structure
topecongiro [Wed, 5 Jul 2017 16:02:37 +0000 (01:02 +0900)]
Implement vertical alignment for comments after list structure

7 years agoAdd Clone trait bound to write_list
topecongiro [Wed, 5 Jul 2017 14:12:58 +0000 (23:12 +0900)]
Add Clone trait bound to write_list

7 years agoMerge pull request #1745 from topecongiro/assignment
Nick Cameron [Thu, 6 Jul 2017 23:54:06 +0000 (11:54 +1200)]
Merge pull request #1745 from topecongiro/assignment

Put rhs of assignment on the next line if it fits in a single line

7 years agoMerge pull request #1768 from topecongiro/huge-array
Nick Cameron [Thu, 6 Jul 2017 18:48:48 +0000 (06:48 +1200)]
Merge pull request #1768 from topecongiro/huge-array

Add array_horizontal_layout_threshold option

7 years agoMerge pull request #1746 from topecongiro/struct-tuple
Nick Cameron [Wed, 5 Jul 2017 20:16:10 +0000 (08:16 +1200)]
Merge pull request #1746 from topecongiro/struct-tuple

RFC: Use block indent style for struct tuple

7 years agoAdd array_horizontal_layout_threshold option
topecongiro [Wed, 5 Jul 2017 13:51:52 +0000 (22:51 +0900)]
Add array_horizontal_layout_threshold option

7 years agoUpdate tests
topecongiro [Wed, 5 Jul 2017 10:20:25 +0000 (19:20 +0900)]
Update tests

7 years agoUse correct one line budget for array in Block indent style
topecongiro [Wed, 5 Jul 2017 10:19:54 +0000 (19:19 +0900)]
Use correct one line budget for array in Block indent style

7 years agoFormat source codes
topecongiro [Wed, 5 Jul 2017 09:31:37 +0000 (18:31 +0900)]
Format source codes

7 years agoUpdate heuristic in rewrite_assign_rhs
topecongiro [Wed, 5 Jul 2017 09:30:11 +0000 (18:30 +0900)]
Update heuristic in rewrite_assign_rhs

Put the rhs of assignement on the next line when putting next to `lhs = ` will
cause rhs to go multi line, but putting on the next line makes it fits
in a single line.

7 years agoRefactor rewrite_static
topecongiro [Wed, 5 Jul 2017 09:25:50 +0000 (18:25 +0900)]
Refactor rewrite_static

7 years agoFormat source codes
topecongiro [Sat, 24 Jun 2017 10:49:01 +0000 (19:49 +0900)]
Format source codes

7 years agoHandle comment at the last element in write_list
topecongiro [Sat, 24 Jun 2017 10:46:36 +0000 (19:46 +0900)]
Handle comment at the last element in write_list

7 years agoHandle very long struct
topecongiro [Sat, 24 Jun 2017 10:45:22 +0000 (19:45 +0900)]
Handle very long struct

7 years agoUse block indent style for struct tuple
topecongiro [Fri, 23 Jun 2017 16:12:58 +0000 (01:12 +0900)]
Use block indent style for struct tuple

7 years agonightly-0.1.8
Nick Cameron [Wed, 5 Jul 2017 03:59:24 +0000 (15:59 +1200)]
nightly-0.1.8

7 years agoMerge pull request #1767 from topecongiro/range-with-floating-literal
Nick Cameron [Wed, 5 Jul 2017 03:46:43 +0000 (15:46 +1200)]
Merge pull request #1767 from topecongiro/range-with-floating-literal

Add a space before range if lhs ends with dot