]>
git.lizzy.rs Git - rust.git/log
Seiichi Uchida [Tue, 5 Dec 2017 07:39:45 +0000 (16:39 +0900)]
Keep blank lines around comments with range
Seiichi Uchida [Tue, 5 Dec 2017 07:25:33 +0000 (16:25 +0900)]
Factor out process_comment()
Seiichi Uchida [Tue, 5 Dec 2017 06:19:36 +0000 (15:19 +0900)]
Change the type of argument of push_vertical_spaces()
Seiichi Uchida [Tue, 5 Dec 2017 06:17:40 +0000 (15:17 +0900)]
Add count_newlines() utility function
Seiichi Uchida [Sat, 2 Dec 2017 08:45:39 +0000 (17:45 +0900)]
Cargo fmt and update tests
Seiichi Uchida [Sat, 2 Dec 2017 08:43:50 +0000 (17:43 +0900)]
Keep vertical spaces between items or statements within range
Seiichi Uchida [Sat, 2 Dec 2017 07:34:16 +0000 (16:34 +0900)]
Merge pull request #2218 from pietroalbini/fix-ast-for-use_nested_groups
Fix broken build after use_nested_groups lands on nightly
Nick Cameron [Fri, 1 Dec 2017 02:02:16 +0000 (15:02 +1300)]
Merge pull request #2210 from topecongiro/issue-2178
Combine a short callee and a single argument
Seiichi Uchida [Fri, 1 Dec 2017 01:41:42 +0000 (10:41 +0900)]
Merge pull request #2215 from iapain/master
Adds where_single_line in configuration documentation
Nick Cameron [Thu, 30 Nov 2017 23:18:38 +0000 (12:18 +1300)]
Merge pull request #2216 from topecongiro/issue-2214
Preserve trailing comma on array inside macro call
Pietro Albini [Thu, 30 Nov 2017 22:55:12 +0000 (23:55 +0100)]
Fix imports formatting broken after AST change
Nick Cameron [Thu, 30 Nov 2017 23:17:10 +0000 (12:17 +1300)]
Merge pull request #2213 from topecongiro/issue-2212
Format defualtness on specialized impl const
Nick Cameron [Thu, 30 Nov 2017 22:56:01 +0000 (11:56 +1300)]
Merge pull request #1889 from topecongiro/match-arm
Do not put if on the same line as match arm
Nick Cameron [Thu, 30 Nov 2017 20:54:52 +0000 (09:54 +1300)]
Merge pull request #2211 from oli-obk/master
Address clippy lints
Oliver Schneider [Thu, 30 Nov 2017 14:04:19 +0000 (15:04 +0100)]
Run rustfmt
Deepak Thukral [Thu, 30 Nov 2017 13:48:29 +0000 (14:48 +0100)]
docs: fixes incorrect output
topecongiro [Thu, 30 Nov 2017 13:14:06 +0000 (22:14 +0900)]
Look for trailing comma on array and preserve it inside macro call
topecongiro [Thu, 30 Nov 2017 13:13:28 +0000 (22:13 +0900)]
Generalize rewrite_array() to types other than ast::Expr
topecongiro [Thu, 30 Nov 2017 13:12:55 +0000 (22:12 +0900)]
Add a test for #2214
Deepak Thukral [Thu, 30 Nov 2017 12:01:41 +0000 (13:01 +0100)]
docs: Adds where_single_line in configuration documentation
topecongiro [Thu, 30 Nov 2017 10:38:05 +0000 (19:38 +0900)]
Format defualtness on specialized impl const
topecongiro [Thu, 30 Nov 2017 10:37:53 +0000 (19:37 +0900)]
Add a test for #2212
Seiichi Uchida [Thu, 30 Nov 2017 09:07:10 +0000 (18:07 +0900)]
Cargo fmt & update a test
topecongiro [Tue, 15 Aug 2017 15:48:12 +0000 (00:48 +0900)]
Format source codes
topecongiro [Tue, 15 Aug 2017 15:46:54 +0000 (00:46 +0900)]
Do not put if on the same line as match arm
Oliver Schneider [Thu, 30 Nov 2017 08:22:00 +0000 (09:22 +0100)]
Address clippy lints
topecongiro [Thu, 30 Nov 2017 06:00:32 +0000 (15:00 +0900)]
Combine a sigle argument and a short callee
topecongiro [Thu, 30 Nov 2017 06:00:20 +0000 (15:00 +0900)]
Update a test
topecongiro [Thu, 30 Nov 2017 06:00:13 +0000 (15:00 +0900)]
Add a test for #2178
Nick Cameron [Wed, 29 Nov 2017 21:54:25 +0000 (10:54 +1300)]
Merge pull request #2209 from topecongiro/issue-2207
Use an explicit flag to decide on whether to add brace compensation for block expression
Seiichi Uchida [Wed, 29 Nov 2017 21:40:29 +0000 (06:40 +0900)]
Rename is_dummy to has_braces
Seiichi Uchida [Wed, 29 Nov 2017 21:13:42 +0000 (06:13 +0900)]
Fix a typo
Seiichi Uchida [Wed, 29 Nov 2017 21:12:32 +0000 (06:12 +0900)]
Use an explicit flag to decide on whether to add brace compensation
Seiichi Uchida [Wed, 29 Nov 2017 21:10:59 +0000 (06:10 +0900)]
Update tests
Seiichi Uchida [Wed, 29 Nov 2017 21:10:50 +0000 (06:10 +0900)]
Add a test for #2207
Seiichi Uchida [Wed, 29 Nov 2017 19:56:19 +0000 (04:56 +0900)]
Fix a typo
Nick Cameron [Wed, 29 Nov 2017 19:44:36 +0000 (08:44 +1300)]
Merge pull request #2205 from topecongiro/issue-2202
Print unstable option's name on warning
Nick Cameron [Wed, 29 Nov 2017 19:38:15 +0000 (08:38 +1300)]
Merge pull request #2203 from topecongiro/issue-2200
Fix budget-related bugs when rewriting chain
Seiichi Uchida [Wed, 29 Nov 2017 11:31:58 +0000 (20:31 +0900)]
Print unstable option's name on warning
topecongiro [Wed, 29 Nov 2017 08:37:56 +0000 (17:37 +0900)]
Update tests
topecongiro [Wed, 29 Nov 2017 08:37:51 +0000 (17:37 +0900)]
Cargo fmt
topecongiro [Wed, 29 Nov 2017 08:36:51 +0000 (17:36 +0900)]
Ignore fn_call_width when rewriting a call with a single non-call arg
topecongiro [Wed, 29 Nov 2017 08:32:31 +0000 (17:32 +0900)]
Use correct shape when rewriting the last arg with overflowing
topecongiro [Wed, 29 Nov 2017 08:29:38 +0000 (17:29 +0900)]
Take into account the rhs overhead when rewriting the last element of chain
topecongiro [Wed, 29 Nov 2017 08:29:06 +0000 (17:29 +0900)]
Fix a test target
topecongiro [Wed, 29 Nov 2017 03:34:09 +0000 (12:34 +0900)]
Add a test for #2200
Seiichi Uchida [Tue, 28 Nov 2017 08:35:52 +0000 (17:35 +0900)]
Cargo update
Nick Cameron [Tue, 28 Nov 2017 02:03:02 +0000 (15:03 +1300)]
Use the right kind of doc comment in chains.rs
cc #2185
Nick Cameron [Mon, 27 Nov 2017 22:48:40 +0000 (11:48 +1300)]
Merge pull request #2194 from topecongiro/use-cargo_metadata
Use cargo_metadata
Nick Cameron [Mon, 27 Nov 2017 19:57:31 +0000 (08:57 +1300)]
Merge pull request #2195 from topecongiro/issue-2193
Take into account a trailing comma on variant
topecongiro [Mon, 27 Nov 2017 13:09:01 +0000 (22:09 +0900)]
Replace TargetKind with simple String
topecongiro [Mon, 27 Nov 2017 12:00:27 +0000 (21:00 +0900)]
Cargo fmt
topecongiro [Mon, 27 Nov 2017 11:58:39 +0000 (20:58 +0900)]
Remove FIXME
now is the time
topecongiro [Mon, 27 Nov 2017 11:57:06 +0000 (20:57 +0900)]
Minor refactoring
topecongiro [Mon, 27 Nov 2017 11:54:55 +0000 (20:54 +0900)]
Remove width of a trailing comma on variant
topecongiro [Mon, 27 Nov 2017 11:53:54 +0000 (20:53 +0900)]
Add a test for #2193
topecongiro [Mon, 27 Nov 2017 10:29:26 +0000 (19:29 +0900)]
Allow '--package <package>'
topecongiro [Mon, 27 Nov 2017 09:57:46 +0000 (18:57 +0900)]
Rename WorkspaceHitlist to CargoFmtStrategy
topecongiro [Mon, 27 Nov 2017 09:48:16 +0000 (18:48 +0900)]
Random formatting
topecongiro [Mon, 27 Nov 2017 09:47:07 +0000 (18:47 +0900)]
Use cargo_metadata crate over json crate
topecongiro [Mon, 27 Nov 2017 09:45:26 +0000 (18:45 +0900)]
Implement PartialEq, Eq and Hash trait for Target
and move Target::from_json() to TargetKind::from_str()
topecongiro [Mon, 27 Nov 2017 09:37:21 +0000 (18:37 +0900)]
Add cargo_metadata to dependency
Nick Cameron [Mon, 27 Nov 2017 05:14:08 +0000 (18:14 +1300)]
Merge pull request #2191 from topecongiro/issue-2190
Recover from failing to format variants even where there is no comment
topecongiro [Mon, 27 Nov 2017 04:50:01 +0000 (13:50 +0900)]
Recover from failing to format variants even where there is no comment
Nick Cameron [Mon, 27 Nov 2017 04:49:55 +0000 (17:49 +1300)]
Remove CompressedIfEmpty option from fn_args_density
It was identical to Tall
topecongiro [Mon, 27 Nov 2017 04:49:53 +0000 (13:49 +0900)]
Add a test for #2190
Nick Cameron [Mon, 27 Nov 2017 04:46:09 +0000 (17:46 +1300)]
Merge fn_empty_single_line and impl_empty_single_line into empty_item_single_line
Nick Cameron [Mon, 27 Nov 2017 04:35:27 +0000 (17:35 +1300)]
Rename wrap_match_arms to match_arm_blocks
Nick Cameron [Mon, 27 Nov 2017 04:01:49 +0000 (17:01 +1300)]
Merge multiline_closure_forces_block and multiline_match_arm_forces_block into force_multiline_block
Nick Cameron [Mon, 27 Nov 2017 03:31:49 +0000 (16:31 +1300)]
Remove `match_arm_forces_newline`
Nick Cameron [Mon, 27 Nov 2017 02:49:14 +0000 (15:49 +1300)]
Remove `indent_match_arms`
Nick Cameron [Fri, 24 Nov 2017 08:08:24 +0000 (21:08 +1300)]
Remove `where_density` and `where_layout` options
There is a choice between block and visual indent for where clauses, plus the
single line option. I think these two are too fine-grained to be useful.
Nick Cameron [Fri, 24 Nov 2017 07:19:12 +0000 (20:19 +1300)]
Merge pull request #2184 from topecongiro/issue-2179
Put rhs on the same line as lhs if putting rhs on next line exceeds max width
Nick Cameron [Fri, 24 Nov 2017 07:17:06 +0000 (20:17 +1300)]
Replace various small width heuristics with a single option
Closes #1984
topecongiro [Fri, 24 Nov 2017 03:05:02 +0000 (12:05 +0900)]
Put rhs on the same line as lhs if putting rhs on next line exceeds max width
topecongiro [Fri, 24 Nov 2017 03:04:00 +0000 (12:04 +0900)]
Add a test for #2179
Nick Cameron [Fri, 24 Nov 2017 02:37:01 +0000 (15:37 +1300)]
Fix a typo in the unstable options handling and address fallout
Nick Cameron [Fri, 24 Nov 2017 02:17:41 +0000 (15:17 +1300)]
Reorganise config options and stabilise a few
Nick Cameron [Fri, 24 Nov 2017 01:46:33 +0000 (14:46 +1300)]
Some tests I renamed in a previous commit and forgot to git add
Nick Cameron [Fri, 24 Nov 2017 01:45:18 +0000 (14:45 +1300)]
struct_lit_multiline_style -> struct_lit_single_line (and make it a bool)
Nick Cameron [Fri, 24 Nov 2017 01:29:44 +0000 (14:29 +1300)]
Merge `attributes_on_same_line_as_field` and `attributes_on_same_line_as_variant` into `same_line_attributes`
Nick Cameron [Fri, 24 Nov 2017 01:12:54 +0000 (14:12 +1300)]
Remove `chain_split_single_child` option
Nick Cameron [Fri, 24 Nov 2017 01:07:37 +0000 (14:07 +1300)]
Remove `force_format_strings` in favour of `format_strings`
Nick Cameron [Fri, 24 Nov 2017 01:01:44 +0000 (14:01 +1300)]
Remove `match_pattern_separator_break_point` in favour of `binop_separator`
Nick Cameron [Fri, 24 Nov 2017 00:27:14 +0000 (13:27 +1300)]
Remove legacy option `fn_args_paren_newline`
Nick Cameron [Fri, 24 Nov 2017 00:19:36 +0000 (13:19 +1300)]
Remove legacy option `fn_return_indent`
Nick Cameron [Fri, 24 Nov 2017 00:08:02 +0000 (13:08 +1300)]
Remove unused option `take_source_hints`
Nick Cameron [Thu, 23 Nov 2017 22:03:00 +0000 (11:03 +1300)]
Merge pull request #2181 from topecongiro/issue-2111
Use vertical layout when there are single line comments in import
topecongiro [Thu, 23 Nov 2017 03:39:00 +0000 (12:39 +0900)]
Update tests
topecongiro [Thu, 23 Nov 2017 03:38:34 +0000 (12:38 +0900)]
Align post comments with items when the it starts with newline
topecongiro [Thu, 23 Nov 2017 03:37:12 +0000 (12:37 +0900)]
Force vertical layout when we find any kind of single line comments
topecongiro [Thu, 23 Nov 2017 03:36:57 +0000 (12:36 +0900)]
Add a test for #2111
Nick Cameron [Tue, 21 Nov 2017 18:25:36 +0000 (07:25 +1300)]
Remove some out of date text from README.md
Nick Cameron [Tue, 21 Nov 2017 02:33:03 +0000 (15:33 +1300)]
Merge pull request #2174 from topecongiro/changelog
Update changelog
topecongiro [Wed, 15 Nov 2017 03:46:51 +0000 (12:46 +0900)]
Update changelog
Nick Cameron [Mon, 20 Nov 2017 20:43:33 +0000 (09:43 +1300)]
0.2.16
Nick Cameron [Mon, 20 Nov 2017 18:07:12 +0000 (07:07 +1300)]
Merge pull request #2172 from topecongiro/issue-2171
Do not squash unsafe block on closure body
topecongiro [Mon, 20 Nov 2017 07:38:29 +0000 (16:38 +0900)]
Do not squash unsafe block
topecongiro [Mon, 20 Nov 2017 07:38:15 +0000 (16:38 +0900)]
Add a test for #2171
Nick Cameron [Mon, 20 Nov 2017 01:51:53 +0000 (14:51 +1300)]
Merge pull request #2161 from topecongiro/issue-1807
Implement RFC style for match pattern