Commit graph

1841 commits

Author SHA1 Message Date
topecongiro
f60a810730 Preserve comments inside attributes 2017-06-17 05:44:54 +09:00
topecongiro
4a5871eccc Use correct indentaion for vec! with semicolon 2017-06-16 13:57:37 +09:00
Nick Cameron
05559fc8a4 nightly-0.1.3 2017-06-16 16:50:53 +12:00
Nick Cameron
85ecaf99df Config knows if an option was default or set 2017-06-16 16:49:54 +12:00
Nick Cameron
c5538d2a58 Merge pull request #1692 from topecongiro/chain/last-item
Allow overflowing the last item of chain only if it is multi-lined
2017-06-16 13:24:03 +12:00
Nick Cameron
3c36cfbeea Merge pull request #1688 from topecongiro/overflow-closure
Wrap closure in block with a single control flow expr with multi line condition
2017-06-16 13:05:57 +12:00
Nick Cameron
562d218ce9 Update README for running the nightly version 2017-06-16 12:00:43 +12:00
topecongiro
208ff15954 Format source codes 2017-06-16 08:49:49 +09:00
topecongiro
d3d31a9f75 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.
2017-06-16 08:47:33 +09:00
topecongiro
e7240f5e24 Add and remove comments 2017-06-16 08:28:12 +09:00
topecongiro
0d5768964b Format source codes and add a test 2017-06-16 07:36:31 +09:00
topecongiro
2f17c31fa4 Wrap closure with a single control flow expr with multi line condition 2017-06-16 07:36:31 +09:00
topecongiro
e22fd0ce59 Refactor rewrite for closure 2017-06-16 07:30:47 +09:00
topecongiro
02f9251007 Refactor rewrite for ConrtolFlow 2017-06-16 07:30:46 +09:00
Nick Cameron
02c1996e3e Merge pull request #1680 from topecongiro/tuple-pattern
Use block indent for tuple pattern
2017-06-16 08:53:54 +12:00
topecongiro
de10113c74 Update tests
Add more patterns and types
2017-06-15 16:55:31 +09:00
topecongiro
8a6e9f689b Format source codes 2017-06-15 16:26:41 +09:00
topecongiro
a5138b1676 Use block indent for tuple pattern when fn_call_style is Block 2017-06-15 16:25:40 +09:00
Nick Cameron
bd1eff55bb Merge pull request #1615 from Mitranim/patch-1
suggested a better Sublime Text plugin
2017-06-15 17:02:36 +12:00
Nick Cameron
2d17fd5f67 nightly v0.1.2 2017-06-15 12:18:52 +12:00
Nick Cameron
a1fdc32d99 Merge pull request #1673 from topecongiro/get-tests-passing-again
Get tests passing again
2017-06-15 10:39:29 +12:00
Nick Cameron
2dde4547fc Merge pull request #1666 from topecongiro/tuple-type
Block indent tuple type when fn_call_style is Block
2017-06-15 10:01:00 +12:00
topecongiro
866c2885f7 Run travis and appveyor only against nightly 2017-06-14 21:07:49 +09:00
topecongiro
b8f11a4e3c Format source codes 2017-06-14 20:39:07 +09:00
topecongiro
c06d487712 Add offset wherever necessary 2017-06-14 20:37:54 +09:00
topecongiro
496e958467 Put match arm guard on the next line if it contains new line 2017-06-14 20:36:28 +09:00
topecongiro
8955eb86e6 Direct format vec! instead of using rewrite_pair 2017-06-14 20:33:54 +09:00
Nick Cameron
b34ac92f86 v0.1.1 2017-06-14 16:38:14 +12:00
Nick Cameron
b8b6897e36 Merge pull request #1671 from robinst/add-cargo-fmt-binary
Add back cargo-fmt binary
2017-06-14 16:36:52 +12:00
Robin Stocker
a13db07b03 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.
2017-06-14 14:16:51 +10:00
Nick Cameron
5f1bab26c4 Move to Libsyntax 2017-06-14 14:01:56 +12:00
topecongiro
dacb1ba050 Update tests 2017-06-14 09:30:04 +09:00
topecongiro
18806321e6 Use block indent style against tuple type 2017-06-14 09:29:39 +09:00
Nick Cameron
8a33521f19 Merge pull request #1669 from topecongiro/issue-1668
Use correct spans when rewrting attributes
2017-06-14 08:32:21 +12:00
topecongiro
6047179ab0 Update tests 2017-06-14 00:09:17 +09:00
topecongiro
e2d51aeb41 Use correct span for MetaItem 2017-06-14 00:09:05 +09:00
topecongiro
384d985df9 Do not rely on format_missing for rewriting attributes 2017-06-14 00:08:31 +09:00
topecongiro
c4d84b44ba Avoid overflow 2017-06-14 00:06:48 +09:00
Nick Cameron
142bec1311 Fix overflow
cc #1665
2017-06-13 15:09:48 +12:00
Nick Cameron
bb215e2b89 Correct README.md 2017-06-13 14:51:54 +12:00
Nick Cameron
18ccd0190e Rebasing 2017-06-13 14:49:47 +12:00
Nick Cameron
6f30d9e7c9 Reformat tests 2017-06-13 14:42:54 +12:00
Nick Cameron
1f512948a0 Reformat source code using new defaults 2017-06-13 14:41:49 +12:00
Nick Cameron
32e882789b Change defaults to RFC style 2017-06-13 14:37:04 +12:00
Nick Cameron
f85079d62a 0.8.6 2017-06-13 14:33:17 +12:00
Nick Cameron
14227ddc40 Merge pull request #1664 from topecongiro/where-rfc-style
Fix excessive indentation in trait where clause when using Rfc style
2017-06-13 14:28:57 +12:00
Nick Cameron
6c9e77cdb3 Merge pull request #1663 from topecongiro/issue-1660
Use with_emitter instead of with_tty_emitter
2017-06-13 14:28:19 +12:00
Nick Cameron
bf49719117 Merge branch 'master' of github.com:rust-lang-nursery/rustfmt 2017-06-13 14:24:53 +12:00
topecongiro
f084a8af96 Fix excessive indentation in trait where clause when using Rfc style 2017-06-13 10:18:55 +09:00
topecongiro
6e3394e635 Use with_emitter instead of with_tty_emitter 2017-06-13 09:18:14 +09:00