]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge pull request #2237 from topecongiro/issue-2131
Nick Cameron [Tue, 5 Dec 2017 03:53:00 +0000 (16:53 +1300)]
Merge pull request #2237 from topecongiro/issue-2131

Do not pass files as arguments to rustfmt when dumping the default config

6 years agoDo not pass files as arguments to rustfmt when dumping the default config
Seiichi Uchida [Mon, 4 Dec 2017 23:01:29 +0000 (08:01 +0900)]
Do not pass files as arguments to rustfmt when dumping the default config

6 years agoMerge pull request #2236 from topecongiro/simple-array
Nick Cameron [Mon, 4 Dec 2017 04:33:42 +0000 (17:33 +1300)]
Merge pull request #2236 from topecongiro/simple-array

Compress an array whose items are all 'simple'

6 years agoMerge pull request #2235 from topecongiro/option_env
Nick Cameron [Mon, 4 Dec 2017 04:24:39 +0000 (17:24 +1300)]
Merge pull request #2235 from topecongiro/option_env

Inspect CFG_RELEASE_CHANNEL env var at compile time

6 years agoCompress an array with simple items
topecongiro [Mon, 4 Dec 2017 03:07:06 +0000 (12:07 +0900)]
Compress an array with simple items

6 years agoFactor out array_tactic
topecongiro [Mon, 4 Dec 2017 03:06:46 +0000 (12:06 +0900)]
Factor out array_tactic

6 years agoUpdate tests
topecongiro [Mon, 4 Dec 2017 03:05:16 +0000 (12:05 +0900)]
Update tests

6 years agoInspect CFG_RELEASE_CHANNEL env var at compile time
topecongiro [Mon, 4 Dec 2017 02:34:27 +0000 (11:34 +0900)]
Inspect CFG_RELEASE_CHANNEL env var at compile time

6 years agoMerge pull request #2219 from topecongiro/issue-549
Nick Cameron [Sun, 3 Dec 2017 21:00:07 +0000 (10:00 +1300)]
Merge pull request #2219 from topecongiro/issue-549

Handle special-case format! like macros

6 years agoCargo fmt
Seiichi Uchida [Sun, 3 Dec 2017 02:38:16 +0000 (11:38 +0900)]
Cargo fmt

6 years agoAdd macros from the log crate to whitelist
Seiichi Uchida [Sun, 3 Dec 2017 02:37:55 +0000 (11:37 +0900)]
Add macros from the log crate to whitelist

6 years agoCargo fmt
topecongiro [Fri, 1 Dec 2017 10:47:56 +0000 (19:47 +0900)]
Cargo fmt

6 years agoFactor out a mess
topecongiro [Fri, 1 Dec 2017 04:44:40 +0000 (13:44 +0900)]
Factor out a mess

6 years agoCargo fmt and update a test
topecongiro [Fri, 1 Dec 2017 04:30:21 +0000 (13:30 +0900)]
Cargo fmt and update a test

6 years agoHandle special-case macros
topecongiro [Fri, 1 Dec 2017 04:30:04 +0000 (13:30 +0900)]
Handle special-case macros

6 years agoAdd whitelists of macros that need special-case format
topecongiro [Fri, 1 Dec 2017 04:28:36 +0000 (13:28 +0900)]
Add whitelists of macros that need special-case format

6 years agoAdd a test for special case macros like format! and assert!
topecongiro [Fri, 1 Dec 2017 04:28:16 +0000 (13:28 +0900)]
Add a test for special case macros like format! and assert!

6 years agoMerge pull request #2222 from topecongiro/issue-2197
Nick Cameron [Sun, 3 Dec 2017 02:00:27 +0000 (15:00 +1300)]
Merge pull request #2222 from topecongiro/issue-2197

Do not format fenced code blocks in comment

6 years agoMerge pull request #2224 from kbacha/issue-2220
Nick Cameron [Sun, 3 Dec 2017 01:24:33 +0000 (14:24 +1300)]
Merge pull request #2224 from kbacha/issue-2220

Combine 3 repeated sections into a single section

6 years ago0.2.17
Nick Cameron [Sun, 3 Dec 2017 00:39:20 +0000 (13:39 +1300)]
0.2.17

6 years agoCombine 3 repeated sections into a single section
Kevin Choubacha [Sat, 2 Dec 2017 23:23:07 +0000 (15:23 -0800)]
Combine 3 repeated sections into a single section

6 years agoDo not format fenced code blocks in comment
Seiichi Uchida [Sat, 2 Dec 2017 14:01:50 +0000 (23:01 +0900)]
Do not format fenced code blocks in comment

6 years agoAdd a test for #2197
Seiichi Uchida [Sat, 2 Dec 2017 14:01:35 +0000 (23:01 +0900)]
Add a test for #2197

6 years agoMerge pull request #2218 from pietroalbini/fix-ast-for-use_nested_groups
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

6 years agoMerge pull request #2210 from topecongiro/issue-2178
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

6 years agoMerge pull request #2215 from iapain/master
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

6 years agoMerge pull request #2216 from topecongiro/issue-2214
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

6 years agoFix imports formatting broken after AST change
Pietro Albini [Thu, 30 Nov 2017 22:55:12 +0000 (23:55 +0100)]
Fix imports formatting broken after AST change

6 years agoMerge pull request #2213 from topecongiro/issue-2212
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

6 years agoMerge pull request #1889 from topecongiro/match-arm
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

6 years agoMerge pull request #2211 from oli-obk/master
Nick Cameron [Thu, 30 Nov 2017 20:54:52 +0000 (09:54 +1300)]
Merge pull request #2211 from oli-obk/master

Address clippy lints

6 years agoRun rustfmt
Oliver Schneider [Thu, 30 Nov 2017 14:04:19 +0000 (15:04 +0100)]
Run rustfmt

6 years agodocs: fixes incorrect output
Deepak Thukral [Thu, 30 Nov 2017 13:48:29 +0000 (14:48 +0100)]
docs: fixes incorrect output

6 years agoLook for trailing comma on array and preserve it inside macro call
topecongiro [Thu, 30 Nov 2017 13:14:06 +0000 (22:14 +0900)]
Look for trailing comma on array and preserve it inside macro call

6 years agoGeneralize rewrite_array() to types other than ast::Expr
topecongiro [Thu, 30 Nov 2017 13:13:28 +0000 (22:13 +0900)]
Generalize rewrite_array() to types other than ast::Expr

6 years agoAdd a test for #2214
topecongiro [Thu, 30 Nov 2017 13:12:55 +0000 (22:12 +0900)]
Add a test for #2214

6 years agodocs: Adds where_single_line in configuration documentation
Deepak Thukral [Thu, 30 Nov 2017 12:01:41 +0000 (13:01 +0100)]
docs: Adds where_single_line in configuration documentation

6 years agoFormat defualtness on specialized impl const
topecongiro [Thu, 30 Nov 2017 10:38:05 +0000 (19:38 +0900)]
Format defualtness on specialized impl const

6 years agoAdd a test for #2212
topecongiro [Thu, 30 Nov 2017 10:37:53 +0000 (19:37 +0900)]
Add a test for #2212

6 years agoCargo fmt & update a test
Seiichi Uchida [Thu, 30 Nov 2017 09:07:10 +0000 (18:07 +0900)]
Cargo fmt & update a test

6 years agoFormat source codes
topecongiro [Tue, 15 Aug 2017 15:48:12 +0000 (00:48 +0900)]
Format source codes

6 years agoDo not put if on the same line as match arm
topecongiro [Tue, 15 Aug 2017 15:46:54 +0000 (00:46 +0900)]
Do not put if on the same line as match arm

6 years agoAddress clippy lints
Oliver Schneider [Thu, 30 Nov 2017 08:22:00 +0000 (09:22 +0100)]
Address clippy lints

6 years agoCombine a sigle argument and a short callee
topecongiro [Thu, 30 Nov 2017 06:00:32 +0000 (15:00 +0900)]
Combine a sigle argument and a short callee

6 years agoUpdate a test
topecongiro [Thu, 30 Nov 2017 06:00:20 +0000 (15:00 +0900)]
Update a test

6 years agoAdd a test for #2178
topecongiro [Thu, 30 Nov 2017 06:00:13 +0000 (15:00 +0900)]
Add a test for #2178

6 years agoMerge pull request #2209 from topecongiro/issue-2207
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

6 years agoRename is_dummy to has_braces
Seiichi Uchida [Wed, 29 Nov 2017 21:40:29 +0000 (06:40 +0900)]
Rename is_dummy to has_braces

6 years agoFix a typo
Seiichi Uchida [Wed, 29 Nov 2017 21:13:42 +0000 (06:13 +0900)]
Fix a typo

6 years agoUse an explicit flag to decide on whether to add brace compensation
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

6 years agoUpdate tests
Seiichi Uchida [Wed, 29 Nov 2017 21:10:59 +0000 (06:10 +0900)]
Update tests

6 years agoAdd a test for #2207
Seiichi Uchida [Wed, 29 Nov 2017 21:10:50 +0000 (06:10 +0900)]
Add a test for #2207

6 years agoFix a typo
Seiichi Uchida [Wed, 29 Nov 2017 19:56:19 +0000 (04:56 +0900)]
Fix a typo

6 years agoMerge pull request #2205 from topecongiro/issue-2202
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

6 years agoMerge pull request #2203 from topecongiro/issue-2200
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

6 years agoPrint unstable option's name on warning
Seiichi Uchida [Wed, 29 Nov 2017 11:31:58 +0000 (20:31 +0900)]
Print unstable option's name on warning

6 years agoUpdate tests
topecongiro [Wed, 29 Nov 2017 08:37:56 +0000 (17:37 +0900)]
Update tests

6 years agoCargo fmt
topecongiro [Wed, 29 Nov 2017 08:37:51 +0000 (17:37 +0900)]
Cargo fmt

6 years agoIgnore fn_call_width when rewriting a call with a single non-call arg
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

6 years agoUse correct shape when rewriting the last arg with overflowing
topecongiro [Wed, 29 Nov 2017 08:32:31 +0000 (17:32 +0900)]
Use correct shape when rewriting the last arg with overflowing

6 years agoTake into account the rhs overhead when rewriting the last element of chain
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

6 years agoFix a test target
topecongiro [Wed, 29 Nov 2017 08:29:06 +0000 (17:29 +0900)]
Fix a test target

6 years agoAdd a test for #2200
topecongiro [Wed, 29 Nov 2017 03:34:09 +0000 (12:34 +0900)]
Add a test for #2200

6 years agoCargo update
Seiichi Uchida [Tue, 28 Nov 2017 08:35:52 +0000 (17:35 +0900)]
Cargo update

6 years agoUse the right kind of doc comment in chains.rs
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

6 years agoMerge pull request #2194 from topecongiro/use-cargo_metadata
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

6 years agoMerge pull request #2195 from topecongiro/issue-2193
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

6 years agoReplace TargetKind with simple String
topecongiro [Mon, 27 Nov 2017 13:09:01 +0000 (22:09 +0900)]
Replace TargetKind with simple String

6 years agoCargo fmt
topecongiro [Mon, 27 Nov 2017 12:00:27 +0000 (21:00 +0900)]
Cargo fmt

6 years agoRemove FIXME
topecongiro [Mon, 27 Nov 2017 11:58:39 +0000 (20:58 +0900)]
Remove FIXME

now is the time

6 years agoMinor refactoring
topecongiro [Mon, 27 Nov 2017 11:57:06 +0000 (20:57 +0900)]
Minor refactoring

6 years agoRemove width of a trailing comma on variant
topecongiro [Mon, 27 Nov 2017 11:54:55 +0000 (20:54 +0900)]
Remove width of a trailing comma on variant

6 years agoAdd a test for #2193
topecongiro [Mon, 27 Nov 2017 11:53:54 +0000 (20:53 +0900)]
Add a test for #2193

6 years agoAllow '--package <package>'
topecongiro [Mon, 27 Nov 2017 10:29:26 +0000 (19:29 +0900)]
Allow '--package <package>'

6 years agoRename WorkspaceHitlist to CargoFmtStrategy
topecongiro [Mon, 27 Nov 2017 09:57:46 +0000 (18:57 +0900)]
Rename WorkspaceHitlist to CargoFmtStrategy

6 years agoRandom formatting
topecongiro [Mon, 27 Nov 2017 09:48:16 +0000 (18:48 +0900)]
Random formatting

6 years agoUse cargo_metadata crate over json crate
topecongiro [Mon, 27 Nov 2017 09:47:07 +0000 (18:47 +0900)]
Use cargo_metadata crate over json crate

6 years agoImplement PartialEq, Eq and Hash trait for Target
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()

6 years agoAdd cargo_metadata to dependency
topecongiro [Mon, 27 Nov 2017 09:37:21 +0000 (18:37 +0900)]
Add cargo_metadata to dependency

6 years agoMerge pull request #2191 from topecongiro/issue-2190
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

6 years agoRecover 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

6 years agoRemove CompressedIfEmpty option from fn_args_density
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

6 years agoAdd a test for #2190
topecongiro [Mon, 27 Nov 2017 04:49:53 +0000 (13:49 +0900)]
Add a test for #2190

6 years agoMerge fn_empty_single_line and impl_empty_single_line into empty_item_single_line
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

6 years agoRename wrap_match_arms to match_arm_blocks
Nick Cameron [Mon, 27 Nov 2017 04:35:27 +0000 (17:35 +1300)]
Rename wrap_match_arms to match_arm_blocks

6 years agoMerge multiline_closure_forces_block and multiline_match_arm_forces_block into force_...
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

6 years agoRemove `match_arm_forces_newline`
Nick Cameron [Mon, 27 Nov 2017 03:31:49 +0000 (16:31 +1300)]
Remove `match_arm_forces_newline`

6 years agoRemove `indent_match_arms`
Nick Cameron [Mon, 27 Nov 2017 02:49:14 +0000 (15:49 +1300)]
Remove `indent_match_arms`

6 years agoRemove `where_density` and `where_layout` options
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.

6 years agoMerge pull request #2184 from topecongiro/issue-2179
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

6 years agoReplace various small width heuristics with a single option
Nick Cameron [Fri, 24 Nov 2017 07:17:06 +0000 (20:17 +1300)]
Replace various small width heuristics with a single option

Closes #1984

6 years agoPut rhs on the same line as lhs if putting rhs on next line exceeds max width
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

6 years agoAdd a test for #2179
topecongiro [Fri, 24 Nov 2017 03:04:00 +0000 (12:04 +0900)]
Add a test for #2179

6 years agoFix a typo in the unstable options handling and address fallout
Nick Cameron [Fri, 24 Nov 2017 02:37:01 +0000 (15:37 +1300)]
Fix a typo in the unstable options handling and address fallout

6 years agoReorganise config options and stabilise a few
Nick Cameron [Fri, 24 Nov 2017 02:17:41 +0000 (15:17 +1300)]
Reorganise config options and stabilise a few

6 years agoSome tests I renamed in a previous commit and forgot to git add
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

6 years agostruct_lit_multiline_style -> struct_lit_single_line (and make it a bool)
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)

6 years agoMerge `attributes_on_same_line_as_field` and `attributes_on_same_line_as_variant...
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`

6 years agoRemove `chain_split_single_child` option
Nick Cameron [Fri, 24 Nov 2017 01:12:54 +0000 (14:12 +1300)]
Remove `chain_split_single_child` option

6 years agoRemove `force_format_strings` in favour of `format_strings`
Nick Cameron [Fri, 24 Nov 2017 01:07:37 +0000 (14:07 +1300)]
Remove `force_format_strings` in favour of `format_strings`