Nick Cameron
7a76e5b1b4
Add test for #2802
2018-07-12 21:37:28 +12:00
Nick Cameron
486f8fd8e7
Fixup formatting of tests and source
2018-07-12 21:37:28 +12:00
Nick Cameron
a4cdb68925
Improve formatting of series of binop expressions
...
This commit changes the handling of binops (and potentially other pairs), where
the expressions are logically a list, e.g., `a + b + c`. It makes the single
line vs multi-line approaches explicit and introduces a lowering step.
This improves formatting in a number of places, mostly improving consistency of
formatting with very short sub-expressions, but also some weird indentation.
Closes #2802
2018-07-12 21:37:28 +12:00
Nick Cameron
b68fd9e6bf
Move pair handling to its own module
2018-07-12 21:37:28 +12:00
Nick Cameron
b6ea973d19
Factor out PairParts::infix
2018-07-12 21:37:28 +12:00
Nick Cameron
fba6b68bf2
Merge pull request #2836 from topecongiro/async-closure
...
Format async closure
2018-07-10 08:34:04 +12:00
Seiichi Uchida
60ce411b53
Format async closure
2018-07-09 23:20:53 +09:00
Seiichi Uchida
ae2c6a6692
Add a configuration guide for edition
2018-07-09 23:20:38 +09:00
Seiichi Uchida
25f83b14c7
Add a test for async closures
2018-07-09 23:20:30 +09:00
Seiichi Uchida
276a768eb2
Cargo update
...
Add `rustc-ap-syntax_pos` to dependencies.
2018-07-09 23:09:14 +09:00
Seiichi Uchida
4bfd47caac
Merge pull request #2828 from Dentosal/patch-1
...
Add missing equals sign to example configuration
2018-07-07 08:32:42 +09:00
Hannes Karppila
3562e643cf
Add missing equals sign to example configuration
2018-07-07 00:38:32 +03:00
Nick Cameron
97c8c0d6c1
Merge pull request #2827 from ehuss/help-doc
...
Fix help for --help=file-lines
2018-07-06 20:56:29 +12:00
Eric Huss
800e488de8
Fix help for --help=file-lines
...
Due to the way getopts works, it requires the equals sign.
2018-07-05 22:50:23 -07:00
Florian Walch
363363d066
test: Assert CRLF line endings on Windows
2018-07-02 23:43:59 +02:00
Florian Walch
9d8f3812cc
Change default newline style to "Native"
...
Fixes #2626 .
2018-07-02 23:16:17 +02:00
Nick Cameron
5e5992517d
Update rustc-ap-syntax
2018-07-02 09:34:55 +12:00
Nick Cameron
f578e4f0c1
Update rustc-ap-syntax to 181
2018-07-02 08:45:09 +12:00
Nick Cameron
d5cb93216b
Merge pull request #2822 from topecongiro/issue-2782
...
Avoid panicking on deeply nested expressions
2018-07-01 14:38:30 +12:00
Nick Cameron
41398047bc
Merge pull request #2821 from topecongiro/issue-2721
...
Return the trimmed original snippet when formatting macro def failed
2018-07-01 14:37:30 +12:00
topecongiro
ebb1626264
Flatten multiple empty blocks at once
2018-07-01 10:51:36 +09:00
topecongiro
54af8b578e
Factor out block_can_be_flattened
2018-07-01 10:49:05 +09:00
topecongiro
e7c6c29562
Avoid panicking on deeply nested expressions
2018-07-01 10:46:32 +09:00
topecongiro
a0206f53d2
Add a test for #2782
2018-07-01 10:40:47 +09:00
topecongiro
5a3640da69
Return the trimmed original snippet when formatting macro def failed
2018-07-01 09:59:53 +09:00
topecongiro
669a8bcf82
Add a test for #2721
2018-07-01 09:59:45 +09:00
Nick Cameron
888abbb0ec
Merge pull request #2820 from scampi/defaults
...
[wip] remove some defaults
2018-07-01 10:57:31 +12:00
Nick Cameron
a5b55e2a75
Merge pull request #2819 from topecongiro/duplicated-paren
...
Avoid inserting the closing paren after tuple struct containing parentheses and a where clause
2018-07-01 10:55:03 +12:00
Stéphane Campinas
0385c2e6bc
reverted some defaults for tests that are fixing a specific issue
2018-06-30 17:04:50 +02:00
Stéphane Campinas
f7a25a1177
warn on use of default value for an option
2018-06-30 17:03:18 +02:00
topecongiro
359c31d422
Cargo update
...
Update `rustc-ap-*` to 180.0.0.
2018-06-30 21:36:38 +09:00
topecongiro
57a6cae49f
Fix span bug when searching for the closing paren
2018-06-30 19:21:15 +09:00
topecongiro
008aa88d6e
Add tests for #2818
2018-06-30 19:20:47 +09:00
topecongiro
bc16d8864a
Fix compile error from breaking changes in libsyntax
2018-06-30 15:53:28 +09:00
topecongiro
eb1819d71e
Cargo update
2018-06-30 15:53:22 +09:00
Nick Cameron
8298f258f8
Merge pull request #2814 from topecongiro/rustc-ap-syntax
...
Cargo update
2018-06-28 21:52:55 +12:00
Seiichi Uchida
cc2afeca9e
Fix compile errors from breaking changes
2018-06-28 16:26:10 +09:00
Seiichi Uchida
dd3e1d751f
Cargo update
...
Update `rustc-ap-*` to 177.0.0.
2018-06-28 16:10:49 +09:00
Seiichi Uchida
2e8c975e17
Merge pull request #2809 from nrc/formatting
...
Some formatting fixes
2018-06-28 12:30:51 +09:00
Seiichi Uchida
d325323285
Merge pull request #2811 from bemeurer/master
...
Fixed typo Yess -> Yes
2018-06-28 12:19:03 +09:00
Bernardo Meurer
3681199020
Fixed typo Yess -> Yes
2018-06-27 18:27:20 -07:00
Stéphane Campinas
f8f9457e20
unecessary use of rustfmt-normalize_comments comment
2018-06-27 15:28:33 +02:00
Stéphane Campinas
a420ac2e3c
formatting
2018-06-27 15:28:32 +02:00
Stéphane Campinas
ad27384cc2
removed comment with default: rustfmt-remove_nested_parens
2018-06-27 15:28:32 +02:00
Stéphane Campinas
0a2aa6526e
removed comment with default: rustfmt-reorder_modules
2018-06-27 15:28:32 +02:00
Stéphane Campinas
95d71899f7
removed comment with default: rustfmt-imports_indent
2018-06-27 15:28:32 +02:00
Stéphane Campinas
872ed58ffc
removed comment with default: rustfmt-reorder_imports
2018-06-27 15:28:32 +02:00
Stéphane Campinas
0ee452bd2a
removed comment with default: rustfmt-format_strings
2018-06-27 01:36:02 +02:00
Stéphane Campinas
92aecc37fe
removed comment with default: rustfmt-control_brace_style
2018-06-27 01:36:02 +02:00
Stéphane Campinas
4c65bd1c46
removed comment with default: rustfmt-brace_style
2018-06-27 01:36:02 +02:00