Nick Cameron
|
0cb6f56647
|
Block formatting for arrays
Fixes #1331
|
2017-03-20 10:26:19 +13:00 |
|
Nick Cameron
|
0c93e7dacf
|
Merge branch 'master' of github.com:rust-lang-nursery/rustfmt
|
2017-03-13 11:43:12 +13:00 |
|
Nick Cameron
|
ed10bf9532
|
Trailing comma for functions with empty bodies
|
2017-03-13 11:42:41 +13:00 |
|
Nick Cameron
|
4df405a768
|
Line breaking around generics in tuple structs
|
2017-03-13 11:25:46 +13:00 |
|
C4K3
|
ab832fa4bb
|
config: Rename ideal_width -> comment_width (#1370)
Since the config option only affects comment widths, and the previous
name has led to some confusion (see #1321, #1152).
|
2017-03-13 09:07:33 +13:00 |
|
Nick Cameron
|
d5478f7d45
|
Reformatting source code
|
2017-03-10 16:06:05 +13:00 |
|
Nick Cameron
|
22be93780c
|
block generics in traits
|
2017-03-10 16:04:08 +13:00 |
|
Nick Cameron
|
a1d94e545c
|
Attempt to fixup impls with long generics
|
2017-03-10 15:58:35 +13:00 |
|
Nick Cameron
|
c8af03f475
|
Block formatting for tuple structs
Follows the fn_args_layout option
|
2017-03-10 15:31:45 +13:00 |
|
Nick Cameron
|
7b901130cb
|
Insert a newline before block-formatted generics
Fixes #1359
|
2017-03-10 14:29:45 +13:00 |
|
Nick Cameron
|
4b60d94a99
|
Check we can put the where clause on one line when we think we can
Fixes #1362
|
2017-03-10 09:45:26 +13:00 |
|
Nick Cameron
|
70085fca84
|
Try harder to format function sigs
Fixes #1363
|
2017-03-10 09:26:14 +13:00 |
|
Nick Cameron
|
e3aad6ee83
|
Be smarter about finding the span for .. in patterns
Fixes #1319
|
2017-03-09 15:49:58 +13:00 |
|
Nick Cameron
|
d107ca12b8
|
Use trailing commas if block formatting fn args
Fixes #1330
|
2017-03-09 14:47:29 +13:00 |
|
Nick Cameron
|
6025492245
|
Implement where_style Rfc
|
2017-03-09 14:21:20 +13:00 |
|
Nick Cameron
|
b820d50ec0
|
Add style RFC conformant rustfmt toml
Add a new `where` clause option, as yet unused.
|
2017-03-09 13:16:14 +13:00 |
|
Nick Cameron
|
e7489356c6
|
Format glob imports
Fixes #1356
|
2017-03-08 10:12:42 +13:00 |
|
Nick Cameron
|
e5638e0cb5
|
More space for qself paths
Fixes #1349
|
2017-03-07 14:53:10 +13:00 |
|
Nick Cameron
|
981b031c9f
|
Treat new blocks like existing ones in closures
Fixes #1355
|
2017-03-07 14:30:01 +13:00 |
|
Nick Cameron
|
33b83ae7df
|
Formatting fallout
Also fixes a minor bug when we break a line after `if` and used to leave a trailing space
|
2017-03-07 09:50:41 +13:00 |
|
Nick Cameron
|
c7a33062e2
|
Add a heuristic for maximum number of elements in a single-line chain
And turn the source hints option to false by default. This should make formatting more deterministic.
|
2017-03-07 09:34:28 +13:00 |
|
Andy Librian
|
63114f3cac
|
added unit tests for Indent and Shape (#1353)
|
2017-03-06 07:50:04 +13:00 |
|
Nick Cameron
|
c9ac348759
|
Fix failing test
|
2017-03-02 15:03:32 +13:00 |
|
Nick Cameron
|
f2eac0513f
|
Fix trailing comma tests
|
2017-03-02 14:27:33 +13:00 |
|
Nick Cameron
|
248f2aba56
|
Merge branch 'master' of github.com:rust-lang-nursery/rustfmt
|
2017-03-02 14:27:02 +13:00 |
|
Marcus Ball
|
b8da53ad78
|
Fix wrap_match_arms resulting in a missing comma (#1307)
* Fix match arms missing comma with "wrap_match_arms = false"
* remove assert; use body_suffix for comma
* basic test case for issue 1127
|
2017-03-01 09:46:10 +13:00 |
|
Nick Cameron
|
eff665c5c4
|
Merge pull request #1334 from gypsydave5/fix_1255
Fix #1255 - incorrect removal of `default` on associated types
|
2017-02-27 11:57:58 +13:00 |
|
David Wickes
|
371ffa4710
|
Small reformat
|
2017-02-26 22:28:53 +00:00 |
|
David Wickes
|
094c8898e1
|
Fix for #1255
Default annotation incorrectly removed on associated types
Fixed by adding a specific function to perform formatting on `ImplItems`.
|
2017-02-26 22:28:21 +00:00 |
|
Igor Gnatenko
|
106e011511
|
bump syntex_* to 0.58
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
|
2017-02-26 15:41:32 +01:00 |
|
Igor Gnatenko
|
3323056893
|
bump regex to 0.2
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
|
2017-02-26 15:09:31 +01:00 |
|
Nick Cameron
|
6a58d91239
|
Coalesce trailing comma options
|
2017-02-24 10:31:23 +13:00 |
|
Nick Cameron
|
7ad352239a
|
Fix width bug for long patterns in match arms
Fixes failing test
|
2017-02-24 07:52:46 +13:00 |
|
Nick Cameron
|
a84f42d13c
|
Merge pull request #1326 from durka/assoc-type-density
honor type_punctuation_density for assoc. types
|
2017-02-23 15:00:47 +13:00 |
|
Nick Cameron
|
db10a0b9b2
|
Merge pull request #1325 from C4K3/master
Add error_on_line_overflow option
|
2017-02-23 14:46:24 +13:00 |
|
Nick Cameron
|
a7612cc773
|
more fallout
|
2017-02-23 13:15:48 +13:00 |
|
Nick Cameron
|
d9d2423764
|
Tweak chain rules
|
2017-02-23 13:15:48 +13:00 |
|
Nick Cameron
|
9eb78a3333
|
Fallout
|
2017-02-23 13:15:48 +13:00 |
|
Nick Cameron
|
ba1202f6b3
|
test fallout
|
2017-02-23 13:15:48 +13:00 |
|
Nick Cameron
|
3bbdb0355e
|
remove some chain options
|
2017-02-23 13:15:48 +13:00 |
|
Nick Cameron
|
023b578c13
|
Remove indent from context and only use Shape
|
2017-02-23 13:14:59 +13:00 |
|
Alex Burka
|
181cde9afb
|
honor type_punctuation_density for assoc. types
|
2017-02-22 15:11:16 -05:00 |
|
Nick Cameron
|
b35906dbce
|
WIP
|
2017-02-21 16:35:05 +13:00 |
|
Sebastian Blunt
|
f6ccbd71c3
|
Add error_on_line_overflow option
Makes it configurable whether to error if unable to get all lines within
the max_width.
|
2017-02-19 19:56:37 +01:00 |
|
Casey Rodarmor
|
4f939ddf0c
|
Don't print config file by default (#1313)
Supress `Using rusftmt config file...` messages unless the --verbose
flag is given.
|
2017-02-13 12:50:10 +13:00 |
|
sinkuu
|
fad74c8ac9
|
Support field-init-shorthand (#1308)
|
2017-02-13 07:16:11 +13:00 |
|
Craig M. Brandenburg
|
f2c867d067
|
New disable_all_formatting config option (#1297)
* New `disable_all_formatting` config option
* Resolve code review comments
|
2017-02-07 17:11:47 +13:00 |
|
Trevor Spiteri
|
6810c762df
|
Handle multiline condition in let if else (fixes #1239)
|
2017-01-31 23:35:57 +01:00 |
|
Nick Cameron
|
428339fdc3
|
Refactor indent and width into Shape struct
|
2017-01-31 08:35:23 +13:00 |
|
Nick Cameron
|
6054f28bd2
|
Some debugging stuff
|
2017-01-27 09:14:26 +13:00 |
|