Seiichi Uchida
3027c21371
Handle raw identifiers
2018-06-25 23:36:45 +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
Nick Cameron
87edd75ecf
TODO -> FIXME
...
Or just delete
Closes #25
2018-06-22 14:42:27 +12:00
Josh Chase
ee5ff2d9e8
Add flag to the ListFormatting struct for nested imports
2018-06-19 12:13:35 -04:00
topecongiro
a6b32d944c
Fix breaking changes from introducing AnonConst
2018-05-23 06:04:32 +09:00
Nick Cameron
d726492e65
Remove spaces_within_parens_and_brackets
...
cc #1974
2018-05-18 16:35:09 +12:00
Pazzaz
1c1763c7ae
Remove unnecessary use of Box in format_function_type
2018-05-12 10:53:06 +02: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
csmoe
f7415bcea2
update self format
2018-04-29 20:53:31 +08:00
Seiichi Uchida
ac8ae00625
Cargo update and clippy ( #2643 )
2018-04-25 07:21:23 +09:00
csmoe
84d3659767
update rustc syntax 91.0.0
2018-04-08 22:22:11 +08:00
memoryleak47
d48cbedfe4
typo ( #2598 )
...
* typo
* more typos
2018-04-05 12:47:09 +09:00
Shotaro Yamada
89200f40ff
Remove unnecessary [..]
s
2018-04-01 22:29:26 +09:00
Seiichi Uchida
182b46e0ed
Simplify join_bounds()
2018-03-12 07:57:03 +09:00
Seiichi Uchida
f56039c7e5
Use rewrite_assign_rhs for rewriting bounds
2018-03-12 07:54:12 +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
kngwyu
8ea79aa025
add offset_left(4) for 'dyn '
2018-03-05 22:45:40 +09:00
kngwyu
078fbb0819
support dyn keyword(2506)
2018-03-05 16:57:22 +09:00
Nick Cameron
39301ae5f2
Go back to a non-workspace structure
...
Kinda reverts https://github.com/rust-lang-nursery/rustfmt/pull/2419
2018-03-02 14:58:23 +13:00
topecongiro
4af2aa3a9e
Create rustfmt_core crate
2018-02-07 22:48:05 +09:00
Seiichi Uchida
154bf8e1af
Cargo fmt
2018-01-22 13:05:18 +09:00
Seiichi Uchida
4604fea0a0
Refactoring
...
1. Cargo clippy
2. Run 'cargo fmt' with import reordering options set to `true`.
3. Factor out `rewrite_lifetime_param()`.
2017-12-25 00:13:59 +09:00
Seiichi Uchida
1ef6bccea3
Cargo fmt
...
Run 'cargo fmt' with the following setting:
```
reorder_imports = true
reorder_imports_in_group = true
```
2017-12-24 00:28:58 +09:00
Nick Cameron
de5683cf11
fix tests
2017-12-22 15:30:45 +13:00
Bastian Köcher
fa67631b32
Fixes compilation with rust version 2017-12-21
2017-12-22 02:52:22 +01:00
Seiichi Uchida
b2b14d0f7f
Foramt macro on types
2017-12-05 08:42:13 +09:00
topecongiro
16184d3e16
Cargo fmt and update a test
2017-12-03 11:34:18 +09:00
Nick Cameron
c18ba569df
Merge pull request #1889 from topecongiro/match-arm
...
Do not put if on the same line as match arm
2017-12-01 11:56:01 +13:00
topecongiro
22c9025027
Format source codes
2017-11-30 18:00:49 +09:00
Oliver Schneider
9667cc2484
Address clippy lints
2017-11-30 09:24:10 +01:00
Nick Cameron
f987946078
Merge pull request #2161 from topecongiro/issue-1807
...
Implement RFC style for match pattern
2017-11-20 14:51:53 +13:00
topecongiro
448991a6f3
Handle multi-lined fn signature
2017-11-18 15:46:01 +09:00
topecongiro
35466adbfe
Generalize ListItems to allow a separator other than comma
2017-11-16 17:43:36 +09:00
topecongiro
bc543cce0b
Combine spaces_within_parens and spaces_within_brackets
2017-11-14 23:42:31 +09:00
topecongiro
babc479783
Use space_before_colon and space_after_colon
2017-11-14 23:25:36 +09:00
topecongiro
04f09c9d85
Replace '*_indent' with 'indent_style' in src
2017-11-13 17:33:32 +09:00
topecongiro
3e8f4b7907
Fix PairParts related issues
2017-11-06 21:48:05 +09:00
topecongiro
c73871c516
Introduce PairParts to reduce the number of args of rewrite_pair()
2017-11-06 13:52:25 +09:00
topecongiro
6c5ac5a9b3
Remove needless borrows
2017-11-06 13:52:25 +09:00
topecongiro
d5d8740993
Rename 'fn_call_style' to 'fn_call_indent'
2017-11-04 22:46:40 +09:00
topecongiro
55c2000d94
Rename 'fn_args_layout' to 'fn_args_indent'
2017-11-04 22:45:47 +09:00
topecongiro
b17de6228f
Cargo fmt
2017-11-02 21:45:00 +09:00
Seiichi Uchida
b0d6d03a25
Use correct budget
2017-10-30 23:38:05 +09:00
Nick Cameron
fc15e9f838
Merge pull request #2042 from topecongiro/refactoring
...
Refactorings
2017-10-13 22:00:10 +08:00
Seiichi Uchida
0950502151
Merge pull request #2051 from petrochenkov/dyn
...
Fix breakage from `dyn Trait`
2017-10-13 19:18:05 +09:00
Vadim Petrochenkov
16a478368c
Fix breakage from dyn Trait
2017-10-10 21:20:57 +03:00
Seiichi Uchida
eb8566f3ee
Run cargo fmt
...
rustfmt removes trailing comma from a function call. This could be a bug.
2017-10-07 22:45:33 +09:00
Seiichi Uchida
dd5ed53930
Remove calling rewrite() against String
2017-10-07 22:01:44 +09:00