]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge pull request #2246 from divarvel/patch-1
Seiichi Uchida [Wed, 6 Dec 2017 12:38:22 +0000 (21:38 +0900)]
Merge pull request #2246 from divarvel/patch-1

Fix format for `spaces_around_ranges` example

6 years agoFix format for `spaces_around_ranges` example
Clément Delafargue [Wed, 6 Dec 2017 10:19:23 +0000 (11:19 +0100)]
Fix format for `spaces_around_ranges` example

6 years agoMerge pull request #2243 from topecongiro/issue-2241
Nick Cameron [Wed, 6 Dec 2017 04:36:59 +0000 (17:36 +1300)]
Merge pull request #2243 from topecongiro/issue-2241

Use package name instead of target name for --package filter

6 years agoUse package name instead of target name for --package filter
Seiichi Uchida [Wed, 6 Dec 2017 03:41:04 +0000 (12:41 +0900)]
Use package name instead of target name for --package filter

6 years agoMerge pull request #2221 from topecongiro/rfc/blank-lines
Nick Cameron [Wed, 6 Dec 2017 02:52:19 +0000 (15:52 +1300)]
Merge pull request #2221 from topecongiro/rfc/blank-lines

Keep vertical spaces between items or statements within range

6 years agoAdd more tests
Seiichi Uchida [Tue, 5 Dec 2017 08:45:19 +0000 (17:45 +0900)]
Add more tests

6 years agoHandle cases when bound changed from the default
Seiichi Uchida [Tue, 5 Dec 2017 08:38:27 +0000 (17:38 +0900)]
Handle cases when bound changed from the default

6 years agoAdd a test for 'blank_lines_lower_bound = 1'
Seiichi Uchida [Tue, 5 Dec 2017 08:38:07 +0000 (17:38 +0900)]
Add a test for 'blank_lines_lower_bound = 1'

6 years agoUpdate tests
Seiichi Uchida [Tue, 5 Dec 2017 08:16:04 +0000 (17:16 +0900)]
Update tests

6 years agoCargo fmt
Seiichi Uchida [Tue, 5 Dec 2017 08:15:58 +0000 (17:15 +0900)]
Cargo fmt

6 years agoTake into account a trailing newline in buffer
Seiichi Uchida [Tue, 5 Dec 2017 08:15:42 +0000 (17:15 +0900)]
Take into account a trailing newline in buffer

6 years agoProcess blank lines if only they're within file lines range
Seiichi Uchida [Tue, 5 Dec 2017 08:14:30 +0000 (17:14 +0900)]
Process blank lines if only they're within file lines range

6 years agoKeep blank lines around comments with range
Seiichi Uchida [Tue, 5 Dec 2017 07:39:45 +0000 (16:39 +0900)]
Keep blank lines around comments with range

6 years agoFactor out process_comment()
Seiichi Uchida [Tue, 5 Dec 2017 07:25:33 +0000 (16:25 +0900)]
Factor out process_comment()

6 years agoChange the type of argument of push_vertical_spaces()
Seiichi Uchida [Tue, 5 Dec 2017 06:19:36 +0000 (15:19 +0900)]
Change the type of argument of push_vertical_spaces()

6 years agoAdd count_newlines() utility function
Seiichi Uchida [Tue, 5 Dec 2017 06:17:40 +0000 (15:17 +0900)]
Add count_newlines() utility function

6 years agoMerge pull request #2239 from topecongiro/issue-2157
Nick Cameron [Tue, 5 Dec 2017 03:56:52 +0000 (16:56 +1300)]
Merge pull request #2239 from topecongiro/issue-2157

Fix double indented chained closure

6 years agoMerge pull request #2238 from topecongiro/issue-1209
Nick Cameron [Tue, 5 Dec 2017 03:55:31 +0000 (16:55 +1300)]
Merge pull request #2238 from topecongiro/issue-1209

Format a macro in the type position

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 agoFix indent of chain with small parent
Seiichi Uchida [Tue, 5 Dec 2017 01:03:23 +0000 (10:03 +0900)]
Fix indent of chain with small parent

6 years agoAdd a test for #2157
Seiichi Uchida [Tue, 5 Dec 2017 01:02:49 +0000 (10:02 +0900)]
Add a test for #2157

6 years agoUpdate a test
Seiichi Uchida [Mon, 4 Dec 2017 23:44:26 +0000 (08:44 +0900)]
Update a test

6 years agoForamt macro on types
Seiichi Uchida [Mon, 4 Dec 2017 23:41:20 +0000 (08:41 +0900)]
Foramt macro on types

6 years agoAdd a test for #1209
Seiichi Uchida [Mon, 4 Dec 2017 23:41:10 +0000 (08:41 +0900)]
Add a test for #1209

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 agoCargo fmt and update tests
Seiichi Uchida [Sat, 2 Dec 2017 08:45:39 +0000 (17:45 +0900)]
Cargo fmt and update tests

6 years agoKeep vertical spaces between items or statements within range
Seiichi Uchida [Sat, 2 Dec 2017 08:43:50 +0000 (17:43 +0900)]
Keep vertical spaces between items or statements within range

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