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
topecongiro
fe69dde96b
Replace 'try_opt!' macro with a '?' operator
2017-10-05 20:50:19 +09:00
Nick Cameron
69ab2b5f5e
Merge pull request #2023 from topecongiro/issue-2020
...
Use a correct budget for where predicate
2017-10-05 18:09:49 +08:00
Seiichi Uchida
eebad40932
Use a correct budget for where predicate
2017-10-02 00:04:48 +09:00
Seiichi Uchida
1b84623aac
Use offset_left()
2017-10-02 00:00:12 +09:00
topecongiro
62e38860b9
Handle 'extern "Rust"' in format_abi()
2017-09-29 15:08:48 +09:00
topecongiro
b751030640
Remove unnecessary wrap_str()
2017-09-19 11:40:20 +09:00
Seiichi Uchida
32fa51a6a9
Move Spanned to spanned.rs from lib.rs
2017-09-19 10:04:35 +09:00
Seiichi Uchida
df7d2be562
Move Indent and Shape to shape.rs from lib.rs
2017-09-19 10:04:35 +09:00
Nick Cameron
d906ea23c7
Merge pull request #1968 from topecongiro/issue-1967
...
Reorder use items inside blocks
2017-09-18 12:59:25 +12:00
Seiichi Uchida
8e5c76094d
Implement ptr_vec_to_ref_vec()
2017-09-15 22:27:20 +09:00
topecongiro
f51261e93e
Cargo fmt
2017-09-15 12:10:58 +09:00