Seiichi Uchida
cc2afeca9e
Fix compile errors from breaking changes
2018-06-28 16:26:10 +09:00
topecongiro
e5e1e0cea8
Fix compile errors from breaking changes in libsyntax
...
cc https://github.com/rust-lang/rust/pull/48149 .
2018-06-25 15:24:00 +09:00
Josh Chase
ee5ff2d9e8
Add flag to the ListFormatting struct for nested imports
2018-06-19 12:13:35 -04:00
csmoe
c791a54ff4
repair break_label format
2018-06-07 11:21:52 +08:00
Alex Butler
f390626778
Update rustc-ap-* -> 149 ( #2748 )
2018-05-30 08:22:49 +09:00
Alex Butler
5473c3fd92
Update rustc-ap-* -> 148
2018-05-28 23:41:08 +01:00
Nick Cameron
8674ab9a42
FIXME for <-
2018-05-28 11:15:15 +12:00
Nick Cameron
353816c596
Merge pull request #2730 from topecongiro/issue-2704
...
Disallow combining a method call with prefix or suffix
2018-05-23 20:10:49 +12:00
topecongiro
fbcc886338
Disallow combining a method call with prefix or suffix
2018-05-23 07:22:42 +09:00
topecongiro
a6b32d944c
Fix breaking changes from introducing AnonConst
2018-05-23 06:04:32 +09:00
csmoe
64768cf932
fix label prefix
2018-05-21 22:37:55 +08:00
csmoe
150765d755
format label break
2018-05-21 13:30:07 +08:00
topecongiro
912e4bdc90
Fix breaking changes from rustc-ap-syntax
...
cc https://github.com/rust-lang/rust/pull/50045 .
2018-05-19 08:43:00 +09:00
Nick Cameron
d726492e65
Remove spaces_within_parens_and_brackets
...
cc #1974
2018-05-18 16:35:09 +12:00
Shotaro Yamada
d1e2b80fb9
Use saturating_sub
2018-05-15 20:41:43 +09:00
topecongiro
bd25c7d0f7
Cargo fmt
2018-05-08 06:25:48 +09:00
topecongiro
1f738ea208
Cargo fmt
2018-05-06 15:22:29 +09:00
topecongiro
f8439ce8fe
Put operands on its own line when each fits in a single line
2018-05-06 15:22:17 +09:00
csmoe
7c246344f8
remove nested parens option
2018-05-05 23:13:49 +08:00
Nick Cameron
e554d8617d
Merge branch 'master' into imports_indent
2018-04-30 11:50:53 +12:00
csmoe
f7415bcea2
update self format
2018-04-29 20:53:31 +08:00
topecongiro
43890cff6b
Preserve trailing comma inside array
...
Closes #2652 .
2018-04-28 15:09:54 +09:00
Seiichi Uchida
ac8ae00625
Cargo update and clippy ( #2643 )
2018-04-25 07:21:23 +09:00
Shotaro Yamada
61d29eb70c
Add spaces between consecutive ..
..=
2018-04-16 17:33:22 +09:00
Nick Cameron
1415a4dc23
Fix tests
2018-04-14 10:20:08 +12:00
Nick Cameron
01c1f99e39
Fallout from removing TupField
2018-04-14 10:15:39 +12:00
Nick Cameron
7822d0c921
Fix test
2018-04-09 09:54:07 +12:00
csmoe
84d3659767
update rustc syntax 91.0.0
2018-04-08 22:22:11 +08:00
Seiichi Uchida
edcc7b69eb
Cargo update ( #2602 )
...
Update `rustc-ap-syntax` to 89.0.0 and fix up breaking changes.
2018-04-06 23:09:45 +09:00
Seiichi Uchida
48424ea765
Update tests and cargo fmt
2018-03-26 07:38:39 +09:00
Seiichi Uchida
98c6f7b731
Format array using overflow module
...
This commit applies heuristics used for function calls to array
and vice versa.
2018-03-26 07:36:44 +09:00
Seiichi Uchida
903de92dae
Avoid cloning RewriteContext
2018-03-25 20:20:50 +09:00
Alan Du
d402cd20a8
Close #2551
2018-03-22 00:57:22 -04:00
Nick Cameron
0bc0241d2a
Merge pull request #2548 from topecongiro/match-mod
...
Do not collapse block around expr with condition on match arm
2018-03-22 15:40:36 +13:00
Seiichi Uchida
88589f2ad8
Add matches module
...
`matches` module contains `rewrite_match` and related stuffs.
2018-03-21 22:21:08 +09:00
Nick Cameron
50c95a074a
cargo fmt
2018-03-20 09:27:31 +13:00
Nick Cameron
c416246494
Merge pull request #2509 from topecongiro/issue-2493
...
Overflow the last rhs of a binary expression
2018-03-16 07:30:30 +13:00
Matthew McAllister
c5168405b0
Format attributes on block expressions
2018-03-14 01:16:19 +09:00
Seiichi Uchida
8f7a90fbef
Add rewrite_assign_rhs_with
...
It is like `rewrite_assign_rhs` but lets us force to put the rhs on the next
line if it uses multiple lines.
This lets us avoid duplicating logic for choosing whether to put stuff on the
same line or the next line.
2018-03-12 07:48:31 +09:00
Nick Cameron
af5d3cc87b
Merge pull request #2524 from topecongiro/issue-2523
...
Do not unindent code block in comments with unformattable macro
2018-03-12 11:21:09 +13:00
topecongiro
2188b464b0
Format macro call with item arguments
2018-03-09 17:17:55 +09:00
Seiichi Uchida
6ba7c34433
Use Option<SeparatorTactic> over bool to control trailing comma
2018-03-09 14:07:43 +09:00
Seiichi Uchida
2a99d9704f
Use overflow::rewrite_with_angle_brackets to rewrite generics
2018-03-09 14:07:43 +09:00
Seiichi Uchida
ae629abc41
Add overflow module
...
This commit adds `overflow` module. This module provides two APIs.
`rewrite_with_parens` is basically the same as `rewrite_call_inner`.
`rewrite_with_angle_brackets` is used for rewriting generics and types.
2018-03-09 14:07:43 +09:00
Seiichi Uchida
d45aa55bd6
Remove nested parens
...
And make sure that we do not remove comments within parens.
2018-03-08 20:25:18 +09:00
Seiichi Uchida
a6b574bfa7
Cargo update and cargo clippy
2018-03-08 18:10:23 +09:00
moe
a2f861730e
fix adds a trailing comma to struct-like macro ( #2490 )
...
* fix adds a trailing comma to struct-like macro
2018-03-08 18:05:39 +09:00
Seiichi Uchida
822dd41ad9
Put lhs and rhs of binop on the same line if lhs is short
2018-03-08 17:21:30 +09:00
Seiichi Uchida
9889678f56
Replace Option<Vec<&'a ast::pat>> with Vec<&'a ast::Pat>
2018-03-08 12:56:28 +09:00
Seiichi Uchida
3f0b630845
Support parentheses in patterns
2018-03-06 20:07:09 +09:00