]>
git.lizzy.rs Git - rust.git/log
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
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
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
topecongiro [Tue, 25 Jul 2017 09:51:29 +0000 (18:51 +0900)]
Update tests
topecongiro [Tue, 25 Jul 2017 09:51:14 +0000 (18:51 +0900)]
Put braces on the next line if it exceeds max width
topecongiro [Tue, 25 Jul 2017 06:47:44 +0000 (15:47 +0900)]
Restore comments in file-liens tests
topecongiro [Tue, 25 Jul 2017 06:19:09 +0000 (15:19 +0900)]
Force vertical layout when struct_variant_width is 0
Nick Cameron [Tue, 25 Jul 2017 03:55:18 +0000 (15:55 +1200)]
cargo update
Nick Cameron [Mon, 24 Jul 2017 23:38:59 +0000 (11:38 +1200)]
Merge pull request #1805 from topecongiro/inner-attr
Format inner attributes
Seiichi Uchida [Mon, 24 Jul 2017 15:56:09 +0000 (00:56 +0900)]
Update tests
Seiichi Uchida [Mon, 24 Jul 2017 15:55:55 +0000 (00:55 +0900)]
Format inner attributes wherever possible
Seiichi Uchida [Mon, 24 Jul 2017 15:55:29 +0000 (00:55 +0900)]
Support inner attributes
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
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
topecongiro [Sat, 22 Jul 2017 02:18:59 +0000 (11:18 +0900)]
Update tests
topecongiro [Sat, 22 Jul 2017 02:18:47 +0000 (11:18 +0900)]
Support rustfmt_skip on statements
topecongiro [Fri, 21 Jul 2017 08:55:52 +0000 (17:55 +0900)]
Format source codes and update tests
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
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
topecongiro [Fri, 21 Jul 2017 04:55:34 +0000 (13:55 +0900)]
Update tests
topecongiro [Fri, 21 Jul 2017 04:55:15 +0000 (13:55 +0900)]
Apply item_brace_style to mod
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
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
Nick Cameron [Thu, 20 Jul 2017 21:10:27 +0000 (09:10 +1200)]
Change the writemode to overwrite
topecongiro [Thu, 20 Jul 2017 22:17:49 +0000 (07:17 +0900)]
Consider max_width when rewriting struct in single-line
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
topecongiro [Thu, 20 Jul 2017 14:58:00 +0000 (23:58 +0900)]
Cover missing comments between attributes and expressions
Nick Cameron [Wed, 19 Jul 2017 22:14:51 +0000 (10:14 +1200)]
Merge pull request #1796 from topecongiro/small-fixes
Small fixes
Seiichi Uchida [Wed, 19 Jul 2017 15:35:00 +0000 (00:35 +0900)]
Format source codes and update tests
Seiichi Uchida [Wed, 19 Jul 2017 15:30:42 +0000 (00:30 +0900)]
Use block indent when rewriting parenthesised expressions
Seiichi Uchida [Wed, 19 Jul 2017 15:16:31 +0000 (00:16 +0900)]
Remove old heuristics from legacy style
Seiichi Uchida [Wed, 19 Jul 2017 15:09:43 +0000 (00:09 +0900)]
Format source codes and update tests
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
Seiichi Uchida [Wed, 19 Jul 2017 15:01:38 +0000 (00:01 +0900)]
Format source codes and update tests
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.
Seiichi Uchida [Wed, 19 Jul 2017 13:50:28 +0000 (22:50 +0900)]
Use offset_left instead of shrink_left
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
topecongiro [Thu, 13 Jul 2017 11:40:49 +0000 (20:40 +0900)]
Add imports_indent and imports_layout config options
Nick Cameron [Thu, 13 Jul 2017 21:02:40 +0000 (09:02 +1200)]
Add tip about LD_LIBRARY_PATH to README
closes #1707
topecongiro [Thu, 13 Jul 2017 11:32:46 +0000 (20:32 +0900)]
Add trailing comma when using Mixed indent style with newline
topecongiro [Thu, 13 Jul 2017 09:43:35 +0000 (18:43 +0900)]
Update tests
topecongiro [Thu, 13 Jul 2017 09:42:49 +0000 (18:42 +0900)]
Set reorder_imported_names to true as default
topecongiro [Thu, 13 Jul 2017 09:42:14 +0000 (18:42 +0900)]
Sort imports in alphabetical and consistent order
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
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
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
Andy Russell [Wed, 12 Jul 2017 17:21:36 +0000 (13:21 -0400)]
assert no errors on formatting test source
Fixes #28.
Andy Russell [Wed, 12 Jul 2017 16:53:02 +0000 (12:53 -0400)]
add test for root glob imports
Fixes #1472.
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
Seiichi Uchida [Mon, 10 Jul 2017 07:45:21 +0000 (16:45 +0900)]
Do not count the number of parens inside str or comment
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
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.
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
topecongiro [Tue, 11 Jul 2017 12:53:57 +0000 (21:53 +0900)]
Update wrap_match_arms option tests and visual guide
topecongiro [Tue, 11 Jul 2017 12:53:48 +0000 (21:53 +0900)]
Update tests
topecongiro [Tue, 11 Jul 2017 12:53:10 +0000 (21:53 +0900)]
Format source codes
topecongiro [Tue, 11 Jul 2017 12:52:27 +0000 (21:52 +0900)]
Implement combining against match arms
Nick Cameron [Tue, 11 Jul 2017 04:16:35 +0000 (16:16 +1200)]
Merge pull request #1780 from topecongiro/rfc/union
Format union
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
Seiichi Uchida [Mon, 10 Jul 2017 08:26:55 +0000 (17:26 +0900)]
Format union
topecongiro [Mon, 10 Jul 2017 07:52:55 +0000 (16:52 +0900)]
Update tests
topecongiro [Mon, 10 Jul 2017 07:52:50 +0000 (16:52 +0900)]
Format source codes
topecongiro [Mon, 10 Jul 2017 07:52:07 +0000 (16:52 +0900)]
Fix up rewriting match arm pattern
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
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`
topecongiro [Mon, 10 Jul 2017 05:35:50 +0000 (14:35 +0900)]
Cover missing comments before and after where
topecongiro [Mon, 10 Jul 2017 05:23:29 +0000 (14:23 +0900)]
Use correct one line budget when rewriting index
Seiichi Uchida [Mon, 10 Jul 2017 04:46:36 +0000 (13:46 +0900)]
Update README.md: add 'rustup update'
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
Nick Cameron [Mon, 10 Jul 2017 04:18:41 +0000 (16:18 +1200)]
cargo update
Seiichi Uchida [Sun, 9 Jul 2017 17:25:26 +0000 (02:25 +0900)]
Update tests
Seiichi Uchida [Sun, 9 Jul 2017 17:24:59 +0000 (02:24 +0900)]
Format source codes
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
Seiichi Uchida [Sun, 9 Jul 2017 17:22:15 +0000 (02:22 +0900)]
Use rewrite_assign_rhs for rewriting pattern in condition
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
Seiichi Uchida [Sun, 9 Jul 2017 17:16:57 +0000 (02:16 +0900)]
Implement rhs_overhead method against Shape
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
Vadim Petrochenkov [Fri, 7 Jul 2017 12:52:23 +0000 (15:52 +0300)]
Update rustfmt for ast::ExprKind::MethodCall changes
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
topecongiro [Fri, 7 Jul 2017 00:01:14 +0000 (09:01 +0900)]
Add tests to check alignment don't exceed max_width
topecongiro [Thu, 6 Jul 2017 23:51:19 +0000 (08:51 +0900)]
Use closure instead of declaring function
Take comment overhead into account
topecongiro [Wed, 5 Jul 2017 16:03:20 +0000 (01:03 +0900)]
Update tests
topecongiro [Wed, 5 Jul 2017 16:03:07 +0000 (01:03 +0900)]
Format source codes
topecongiro [Wed, 5 Jul 2017 16:02:37 +0000 (01:02 +0900)]
Implement vertical alignment for comments after list structure
topecongiro [Wed, 5 Jul 2017 14:12:58 +0000 (23:12 +0900)]
Add Clone trait bound to write_list
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
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
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
topecongiro [Wed, 5 Jul 2017 13:51:52 +0000 (22:51 +0900)]
Add array_horizontal_layout_threshold option
topecongiro [Wed, 5 Jul 2017 10:20:25 +0000 (19:20 +0900)]
Update tests
topecongiro [Wed, 5 Jul 2017 10:19:54 +0000 (19:19 +0900)]
Use correct one line budget for array in Block indent style
topecongiro [Wed, 5 Jul 2017 09:31:37 +0000 (18:31 +0900)]
Format source codes
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.
topecongiro [Wed, 5 Jul 2017 09:25:50 +0000 (18:25 +0900)]
Refactor rewrite_static
topecongiro [Sat, 24 Jun 2017 10:49:01 +0000 (19:49 +0900)]
Format source codes
topecongiro [Sat, 24 Jun 2017 10:46:36 +0000 (19:46 +0900)]
Handle comment at the last element in write_list
topecongiro [Sat, 24 Jun 2017 10:45:22 +0000 (19:45 +0900)]
Handle very long struct
topecongiro [Fri, 23 Jun 2017 16:12:58 +0000 (01:12 +0900)]
Use block indent style for struct tuple
Nick Cameron [Wed, 5 Jul 2017 03:59:24 +0000 (15:59 +1200)]
nightly-0.1.8
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