]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agonightly-0.1.3
Nick Cameron [Fri, 16 Jun 2017 04:50:53 +0000 (16:50 +1200)]
nightly-0.1.3

7 years agoConfig knows if an option was default or set
Nick Cameron [Fri, 16 Jun 2017 04:49:54 +0000 (16:49 +1200)]
Config knows if an option was default or set

7 years agoMerge pull request #1692 from topecongiro/chain/last-item
Nick Cameron [Fri, 16 Jun 2017 01:24:03 +0000 (13:24 +1200)]
Merge pull request #1692 from topecongiro/chain/last-item

Allow overflowing the last item of chain only if it is multi-lined

7 years agoMerge pull request #1688 from topecongiro/overflow-closure
Nick Cameron [Fri, 16 Jun 2017 01:05:57 +0000 (13:05 +1200)]
Merge pull request #1688 from topecongiro/overflow-closure

Wrap closure in block with a single control flow expr with multi line condition

7 years agoUpdate README for running the nightly version
Nick Cameron [Fri, 16 Jun 2017 00:00:43 +0000 (12:00 +1200)]
Update README for running the nightly version

7 years agoFormat source codes
topecongiro [Thu, 15 Jun 2017 23:49:49 +0000 (08:49 +0900)]
Format source codes

7 years agoAllow overflowing the last item of chain only if it is multi-lined
topecongiro [Thu, 15 Jun 2017 23:47:33 +0000 (08:47 +0900)]
Allow overflowing the last item of chain only if it is multi-lined

By multi-lined we mean if it has more than 3 lines.

7 years agoAdd and remove comments
topecongiro [Thu, 15 Jun 2017 23:28:12 +0000 (08:28 +0900)]
Add and remove comments

7 years agoFormat source codes and add a test
topecongiro [Thu, 15 Jun 2017 14:29:46 +0000 (23:29 +0900)]
Format source codes and add a test

7 years agoWrap closure with a single control flow expr with multi line condition
topecongiro [Thu, 15 Jun 2017 14:27:53 +0000 (23:27 +0900)]
Wrap closure with a single control flow expr with multi line condition

7 years agoRefactor rewrite for closure
topecongiro [Thu, 15 Jun 2017 14:27:33 +0000 (23:27 +0900)]
Refactor rewrite for closure

7 years agoRefactor rewrite for ConrtolFlow
topecongiro [Thu, 15 Jun 2017 14:26:32 +0000 (23:26 +0900)]
Refactor rewrite for ConrtolFlow

7 years agoMerge pull request #1680 from topecongiro/tuple-pattern
Nick Cameron [Thu, 15 Jun 2017 20:53:54 +0000 (08:53 +1200)]
Merge pull request #1680 from topecongiro/tuple-pattern

Use block indent for tuple pattern

7 years agoUpdate tests
topecongiro [Thu, 15 Jun 2017 07:26:46 +0000 (16:26 +0900)]
Update tests

Add more patterns and types

7 years agoFormat source codes
topecongiro [Thu, 15 Jun 2017 07:26:41 +0000 (16:26 +0900)]
Format source codes

7 years agoUse block indent for tuple pattern when fn_call_style is Block
topecongiro [Thu, 15 Jun 2017 07:25:40 +0000 (16:25 +0900)]
Use block indent for tuple pattern when fn_call_style is Block

7 years agoMerge pull request #1615 from Mitranim/patch-1
Nick Cameron [Thu, 15 Jun 2017 05:02:36 +0000 (17:02 +1200)]
Merge pull request #1615 from Mitranim/patch-1

suggested a better Sublime Text plugin

7 years agonightly v0.1.2
Nick Cameron [Thu, 15 Jun 2017 00:18:52 +0000 (12:18 +1200)]
nightly v0.1.2

7 years agoMerge pull request #1673 from topecongiro/get-tests-passing-again
Nick Cameron [Wed, 14 Jun 2017 22:39:29 +0000 (10:39 +1200)]
Merge pull request #1673 from topecongiro/get-tests-passing-again

Get tests passing again

7 years agoMerge pull request #1666 from topecongiro/tuple-type
Nick Cameron [Wed, 14 Jun 2017 22:01:00 +0000 (10:01 +1200)]
Merge pull request #1666 from topecongiro/tuple-type

Block indent tuple type when fn_call_style is Block

7 years agoRun travis and appveyor only against nightly
topecongiro [Wed, 14 Jun 2017 12:07:49 +0000 (21:07 +0900)]
Run travis and appveyor only against nightly

7 years agoFormat source codes
topecongiro [Wed, 14 Jun 2017 11:39:07 +0000 (20:39 +0900)]
Format source codes

7 years agoAdd offset wherever necessary
topecongiro [Wed, 14 Jun 2017 11:37:54 +0000 (20:37 +0900)]
Add offset wherever necessary

7 years agoPut match arm guard on the next line if it contains new line
topecongiro [Wed, 14 Jun 2017 11:36:28 +0000 (20:36 +0900)]
Put match arm guard on the next line if it contains new line

7 years agoDirect format vec! instead of using rewrite_pair
topecongiro [Wed, 14 Jun 2017 11:33:54 +0000 (20:33 +0900)]
Direct format vec! instead of using rewrite_pair

7 years agov0.1.1
Nick Cameron [Wed, 14 Jun 2017 04:38:14 +0000 (16:38 +1200)]
v0.1.1

7 years agoMerge pull request #1671 from robinst/add-cargo-fmt-binary
Nick Cameron [Wed, 14 Jun 2017 04:36:52 +0000 (16:36 +1200)]
Merge pull request #1671 from robinst/add-cargo-fmt-binary

Add back cargo-fmt binary

7 years agoAdd back cargo-fmt binary (#1670)
Robin Stocker [Wed, 14 Jun 2017 04:16:51 +0000 (14:16 +1000)]
Add back cargo-fmt binary (#1670)

When there are no `[[bin]]` sections, all the binaries in `src/bin` are
automatically picked up. When a section is added, that is no longer the
case, so all the binaries need to be specified explicitly.

7 years agoMove to Libsyntax
Nick Cameron [Wed, 14 Jun 2017 01:57:31 +0000 (13:57 +1200)]
Move to Libsyntax

7 years agoUpdate tests
topecongiro [Wed, 14 Jun 2017 00:30:04 +0000 (09:30 +0900)]
Update tests

7 years agoUse block indent style against tuple type
topecongiro [Wed, 14 Jun 2017 00:29:39 +0000 (09:29 +0900)]
Use block indent style against tuple type

7 years agoMerge pull request #1669 from topecongiro/issue-1668
Nick Cameron [Tue, 13 Jun 2017 20:32:21 +0000 (08:32 +1200)]
Merge pull request #1669 from topecongiro/issue-1668

Use correct spans when rewrting attributes

7 years agoUpdate tests
topecongiro [Tue, 13 Jun 2017 15:09:17 +0000 (00:09 +0900)]
Update tests

7 years agoUse correct span for MetaItem
topecongiro [Tue, 13 Jun 2017 15:09:05 +0000 (00:09 +0900)]
Use correct span for MetaItem

7 years agoDo not rely on format_missing for rewriting attributes
topecongiro [Tue, 13 Jun 2017 15:08:31 +0000 (00:08 +0900)]
Do not rely on format_missing for rewriting attributes

7 years agoAvoid overflow
topecongiro [Tue, 13 Jun 2017 15:06:48 +0000 (00:06 +0900)]
Avoid overflow

7 years agoFix overflow
Nick Cameron [Tue, 13 Jun 2017 03:09:48 +0000 (15:09 +1200)]
Fix overflow

cc #1665

7 years agoCorrect README.md
Nick Cameron [Tue, 13 Jun 2017 02:51:54 +0000 (14:51 +1200)]
Correct README.md

7 years agoRebasing
Nick Cameron [Tue, 13 Jun 2017 02:49:47 +0000 (14:49 +1200)]
Rebasing

7 years agoReformat tests
Nick Cameron [Mon, 12 Jun 2017 04:01:41 +0000 (16:01 +1200)]
Reformat tests

7 years agoReformat source code using new defaults
Nick Cameron [Mon, 12 Jun 2017 03:58:58 +0000 (15:58 +1200)]
Reformat source code using new defaults

7 years agoChange defaults to RFC style
Nick Cameron [Mon, 12 Jun 2017 03:50:43 +0000 (15:50 +1200)]
Change defaults to RFC style

7 years ago0.8.6
Nick Cameron [Tue, 13 Jun 2017 02:33:17 +0000 (14:33 +1200)]
0.8.6

7 years agoMerge pull request #1664 from topecongiro/where-rfc-style
Nick Cameron [Tue, 13 Jun 2017 02:28:57 +0000 (14:28 +1200)]
Merge pull request #1664 from topecongiro/where-rfc-style

Fix excessive indentation in trait where clause when using Rfc style

7 years agoMerge pull request #1663 from topecongiro/issue-1660
Nick Cameron [Tue, 13 Jun 2017 02:28:19 +0000 (14:28 +1200)]
Merge pull request #1663 from topecongiro/issue-1660

Use with_emitter instead of with_tty_emitter

7 years agoMerge branch 'master' of github.com:rust-lang-nursery/rustfmt
Nick Cameron [Tue, 13 Jun 2017 02:24:53 +0000 (14:24 +1200)]
Merge branch 'master' of github.com:rust-lang-nursery/rustfmt

7 years agoFix excessive indentation in trait where clause when using Rfc style
topecongiro [Tue, 13 Jun 2017 01:18:55 +0000 (10:18 +0900)]
Fix excessive indentation in trait where clause when using Rfc style

7 years agoUse with_emitter instead of with_tty_emitter
topecongiro [Tue, 13 Jun 2017 00:18:14 +0000 (09:18 +0900)]
Use with_emitter instead of with_tty_emitter

7 years agoMerge pull request #1657 from topecongiro/issue-1656
Nick Cameron [Mon, 12 Jun 2017 23:58:16 +0000 (11:58 +1200)]
Merge pull request #1657 from topecongiro/issue-1656

Put match arm's guard on new line if it exceeds max width

7 years agoMerge pull request #1655 from topecongiro/issue-1652
Nick Cameron [Mon, 12 Jun 2017 23:57:30 +0000 (11:57 +1200)]
Merge pull request #1655 from topecongiro/issue-1652

Use correct indent for return type when it goes multi line

7 years agoMerge pull request #1647 from topecongiro/refactor-impl-format
Nick Cameron [Mon, 12 Jun 2017 23:55:33 +0000 (11:55 +1200)]
Merge pull request #1647 from topecongiro/refactor-impl-format

Refactor impl format

7 years agoMerge pull request #1654 from topecongiro/over-long-lines
Nick Cameron [Mon, 12 Jun 2017 21:41:59 +0000 (09:41 +1200)]
Merge pull request #1654 from topecongiro/over-long-lines

Use block indent for args of macro if single line args exceeds max width

7 years agoForce multi line if the first attempt of rewriting args failed
topecongiro [Mon, 12 Jun 2017 09:34:38 +0000 (18:34 +0900)]
Force multi line if the first attempt of rewriting args failed

7 years agoPut guard on newline if it exceeds max width
topecongiro [Mon, 12 Jun 2017 08:25:38 +0000 (17:25 +0900)]
Put guard on newline if it exceeds max width

7 years agoUse rewrite instead of visitor for attributes
topecongiro [Mon, 12 Jun 2017 08:25:07 +0000 (17:25 +0900)]
Use rewrite instead of visitor for attributes

7 years agoUse correct indent for return type when it goes multi line
topecongiro [Mon, 12 Jun 2017 07:23:10 +0000 (16:23 +0900)]
Use correct indent for return type when it goes multi line

7 years agoUse block indent for args if single line args exceeds max width
topecongiro [Mon, 12 Jun 2017 06:58:27 +0000 (15:58 +0900)]
Use block indent for args if single line args exceeds max width

7 years agov0.8.5 + cargo update
Nick Cameron [Mon, 12 Jun 2017 03:44:56 +0000 (15:44 +1200)]
v0.8.5 + cargo update

7 years agoUpdate rewrite_trait_ref to return Option<String>
topecongiro [Sun, 11 Jun 2017 23:53:19 +0000 (08:53 +0900)]
Update rewrite_trait_ref to return Option<String>

7 years agoMerge pull request #1649 from topecongiro/issue-1648
Nick Cameron [Sun, 11 Jun 2017 22:39:28 +0000 (10:39 +1200)]
Merge pull request #1649 from topecongiro/issue-1648

Add offset to struct literal fields when `struct_lit_style` is `"Visual"`

7 years agoMerge pull request #1646 from topecongiro/issue-1606
Nick Cameron [Sun, 11 Jun 2017 22:37:50 +0000 (10:37 +1200)]
Merge pull request #1646 from topecongiro/issue-1606

Reset the error count of parser from the previous file

7 years agoMerge pull request #1644 from topecongiro/issue-1643
Nick Cameron [Sun, 11 Jun 2017 22:35:39 +0000 (10:35 +1200)]
Merge pull request #1644 from topecongiro/issue-1643

Force brace on new line if the signature ends with comment

7 years agoUpdate tests
topecongiro [Sun, 11 Jun 2017 14:27:02 +0000 (23:27 +0900)]
Update tests

7 years agoUse multi line when type bounds does not fit in a single line
topecongiro [Sun, 11 Jun 2017 14:26:49 +0000 (23:26 +0900)]
Use multi line when type bounds does not fit in a single line

7 years agoRefactor format_impl
topecongiro [Sun, 11 Jun 2017 05:32:44 +0000 (14:32 +0900)]
Refactor format_impl

7 years agoFix Configurations.md
Seiichi Uchida [Sat, 10 Jun 2017 13:23:09 +0000 (22:23 +0900)]
Fix Configurations.md

7 years agoAdd visual offset when using struct_lit_style is Visual
Seiichi Uchida [Sat, 10 Jun 2017 13:20:11 +0000 (22:20 +0900)]
Add visual offset when using struct_lit_style is Visual

7 years agoAdd format_trait_ref_then_update_result
topecongiro [Sat, 10 Jun 2017 11:37:34 +0000 (20:37 +0900)]
Add format_trait_ref_then_update_result

7 years agoUse multiline in generics rather than fail
topecongiro [Sat, 10 Jun 2017 10:45:23 +0000 (19:45 +0900)]
Use multiline in generics rather than fail

7 years agoShare codes when rewriting generics
topecongiro [Sat, 10 Jun 2017 09:24:23 +0000 (18:24 +0900)]
Share codes when rewriting generics

7 years agoReset the error count of parser from the previous file
topecongiro [Sat, 10 Jun 2017 05:16:12 +0000 (14:16 +0900)]
Reset the error count of parser from the previous file

7 years agoForce brace on new line if the signature ends with comment
topecongiro [Fri, 9 Jun 2017 07:15:31 +0000 (16:15 +0900)]
Force brace on new line if the signature ends with comment

7 years agoMerge pull request #1640 from topecongiro/issue-1632
Nick Cameron [Tue, 6 Jun 2017 22:05:36 +0000 (10:05 +1200)]
Merge pull request #1640 from topecongiro/issue-1632

Do not overwrite files when there are no diffs in Overwrite mode

7 years agoMerge pull request #1639 from topecongiro/rfc-update
Nick Cameron [Tue, 6 Jun 2017 20:08:59 +0000 (08:08 +1200)]
Merge pull request #1639 from topecongiro/rfc-update

Add 'fn_args_paren_newline = false' to rfc-rustfmt.toml

7 years agoDo not overwrite files when there are no diffs in Overwrite mode
topecongiro [Tue, 6 Jun 2017 06:33:46 +0000 (15:33 +0900)]
Do not overwrite files when there are no diffs in Overwrite mode

7 years agoMerge pull request #1638 from est31/master
Nick Cameron [Tue, 6 Jun 2017 05:44:09 +0000 (17:44 +1200)]
Merge pull request #1638 from est31/master

Update syntex to 0.59

7 years agoFix the pub-restricted tests
est31 [Tue, 6 Jun 2017 05:00:21 +0000 (07:00 +0200)]
Fix the pub-restricted tests

7 years agoUpdate a test
Nick Cameron [Thu, 1 Jun 2017 05:34:21 +0000 (17:34 +1200)]
Update a test

7 years agoRebasing
Nick Cameron [Wed, 17 May 2017 06:57:18 +0000 (18:57 +1200)]
Rebasing

7 years agoImplement catch
topecongiro [Fri, 12 May 2017 22:28:48 +0000 (07:28 +0900)]
Implement catch

7 years agoLeave GlobalAsm and MacroDef without formatting
topecongiro [Fri, 12 May 2017 22:28:26 +0000 (07:28 +0900)]
Leave GlobalAsm and MacroDef without formatting

7 years agoFormat pub(restricted) properly
topecongiro [Fri, 12 May 2017 13:25:26 +0000 (22:25 +0900)]
Format pub(restricted) properly

7 years agoUpdate syntex_syntax
est31 [Tue, 6 Jun 2017 04:54:22 +0000 (06:54 +0200)]
Update syntex_syntax

Bases on commit to switch to libsyntax by @nrc

7 years agoMerge pull request #1634 from topecongiro/impl-rewrite-attribute
Nick Cameron [Tue, 6 Jun 2017 05:11:10 +0000 (17:11 +1200)]
Merge pull request #1634 from topecongiro/impl-rewrite-attribute

Implement Rewrite trait for syntax::ast::Attribute

7 years agoAdd 'fn_args_paren_newline = false' to rfc-rustfmt.toml
topecongiro [Tue, 6 Jun 2017 05:03:50 +0000 (14:03 +0900)]
Add 'fn_args_paren_newline = false' to rfc-rustfmt.toml

7 years agoImplement Rewrite trait for syntax::ast::Attribute
topecongiro [Mon, 5 Jun 2017 14:21:39 +0000 (23:21 +0900)]
Implement Rewrite trait for syntax::ast::Attribute

7 years agoMerge pull request #1637 from est31/master
Nick Cameron [Tue, 6 Jun 2017 04:20:16 +0000 (16:20 +1200)]
Merge pull request #1637 from est31/master

Add config options for spaces around the colon in struct literal fields

7 years agoMerge pull request #1633 from topecongiro/rfc/control-style
Nick Cameron [Tue, 6 Jun 2017 02:54:28 +0000 (14:54 +1200)]
Merge pull request #1633 from topecongiro/rfc/control-style

Do not add offset to match pattern when using Rfc style

7 years agoMerge pull request #1631 from topecongiro/fix-appveyor
Nick Cameron [Tue, 6 Jun 2017 02:53:31 +0000 (14:53 +1200)]
Merge pull request #1631 from topecongiro/fix-appveyor

Update appveyor.yml

7 years agoMerge pull request #1621 from topecongiro/combining
Nick Cameron [Tue, 6 Jun 2017 02:52:48 +0000 (14:52 +1200)]
Merge pull request #1621 from topecongiro/combining

Combine more expressions

7 years agoAdd config options for spaces around the colon in struct literal fields
est31 [Tue, 6 Jun 2017 01:11:17 +0000 (03:11 +0200)]
Add config options for spaces around the colon in struct literal fields

In Rust, colons are used for three purposes:

* Type annotations, including type ascription
* Trait bounds
* Struct literal fields

This commit adds options for the last missing of the three purposes,
struct literal fields.

7 years agoDo not add offset to match pattern when using Rfc style
topecongiro [Mon, 5 Jun 2017 08:57:43 +0000 (17:57 +0900)]
Do not add offset to match pattern when using Rfc style

7 years agoUpdate appveyor.yml
Seiichi Uchida [Mon, 5 Jun 2017 07:19:01 +0000 (16:19 +0900)]
Update appveyor.yml

7 years agoFormat source codes
topecongiro [Mon, 5 Jun 2017 06:32:21 +0000 (15:32 +0900)]
Format source codes

7 years agoSet combine_control_expr to false by default and true in rfc-rustfmt
topecongiro [Mon, 5 Jun 2017 06:31:44 +0000 (15:31 +0900)]
Set combine_control_expr to false by default and true in rfc-rustfmt

7 years agoAllow chain item to extend if the parent ends with closing parens and alike
topecongiro [Mon, 5 Jun 2017 06:31:05 +0000 (15:31 +0900)]
Allow chain item to extend if the parent ends with closing parens and alike

7 years agoMerge pull request #1630 from topecongiro/issue-1115
Nick Cameron [Sun, 4 Jun 2017 23:41:52 +0000 (11:41 +1200)]
Merge pull request #1630 from topecongiro/issue-1115

Allow comments after attributes on enum fields

7 years agoMerge pull request #1629 from topecongiro/issue-982
Nick Cameron [Sun, 4 Jun 2017 23:37:21 +0000 (11:37 +1200)]
Merge pull request #1629 from topecongiro/issue-982

Use recover_comment_removed in rewrite_static

7 years agoAllow comments after attributes on enum fields
topecongiro [Sun, 4 Jun 2017 14:27:21 +0000 (23:27 +0900)]
Allow comments after attributes on enum fields

7 years agoFormat source codes
topecongiro [Sun, 4 Jun 2017 06:25:07 +0000 (15:25 +0900)]
Format source codes