Zach Lute
|
ca19c9a35a
|
Fix build with rust nightly by updating try block syntax. (#2965)
|
2018-08-26 13:02:24 +09:00 |
|
cad97
|
fc1909d311
|
Reformat
|
2018-08-23 17:14:19 -04:00 |
|
cad97
|
04d804c365
|
Rename CodeMap/FileMap to SourceMap/SourceFile
#2946
|
2018-08-23 17:10:46 -04:00 |
|
Seiichi Uchida
|
024c03e81b
|
Use builder pattern for ListFormatting
|
2018-08-03 22:13:20 +09:00 |
|
Nick Cameron
|
df4fb8a05b
|
Reformatting after rebase
|
2018-07-24 15:49:35 +12:00 |
|
Nick Cameron
|
481e85cc58
|
formatting
|
2018-07-24 15:46:39 +12:00 |
|
Seiichi Uchida
|
d40ed146a5
|
Fix breaking changes
cc https://github.com/rust-lang/rust/pull/51829.
|
2018-07-20 16:18:45 +09:00 |
|
Nick Cameron
|
486f8fd8e7
|
Fixup formatting of tests and source
|
2018-07-12 21:37:28 +12:00 |
|
Seiichi Uchida
|
60ce411b53
|
Format async closure
|
2018-07-09 23:20:53 +09:00 |
|
Seiichi Uchida
|
cc2afeca9e
|
Fix compile errors from breaking changes
|
2018-06-28 16:26:10 +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 |
|
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 |
|
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 |
|
Seiichi Uchida
|
48424ea765
|
Update tests and cargo fmt
|
2018-03-26 07:38:39 +09:00 |
|
Seiichi Uchida
|
903de92dae
|
Avoid cloning RewriteContext
|
2018-03-25 20:20:50 +09:00 |
|
Nick Cameron
|
50c95a074a
|
cargo fmt
|
2018-03-20 09:27:31 +13:00 |
|
Matthew McAllister
|
c5168405b0
|
Format attributes on block expressions
|
2018-03-14 01:16:19 +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 |
|
Nick Cameron
|
b7f01769f9
|
Merge branch 'master' into init-shorthand
|
2018-02-01 15:20:01 +13:00 |
|
csmoe
|
28bb16a5a0
|
add a support for immovable generators
|
2018-01-30 22:14:33 +08:00 |
|
Seiichi Uchida
|
7d63490d85
|
Update to the latest libsyntax changes
|
2018-01-29 21:44:26 +09:00 |
|
Seiichi Uchida
|
154bf8e1af
|
Cargo fmt
|
2018-01-22 13:05:18 +09:00 |
|
Seiichi Uchida
|
02bb1c8c97
|
Rustup to rustc 1.24.0-nightly (5165ee9e2 2017-12-22)
|
2017-12-23 11:58:19 +09:00 |
|
Nick Cameron
|
0c9b2b402e
|
Merge pull request #2267 from topecongiro/issue-2264
Remove block() and block_only() wherever possible
|
2017-12-11 09:02:16 +13:00 |
|
Seiichi Uchida
|
a7060f9fdf
|
Remove excessive block() and block_only()
Since we now use the same indent style for every expressions, these safe guards
can be removed.
|
2017-12-10 23:39:09 +09:00 |
|
Seiichi Uchida
|
42726906f7
|
Allow struct to be multi-lined in closure's body without block
|
2017-12-10 21:52:23 +09:00 |
|
Seiichi Uchida
|
bd6bef8cfa
|
Move macro check to is_block_closure_forced()
|
2017-12-10 21:49:59 +09:00 |
|
Seiichi Uchida
|
812fc4ca56
|
Remove and_one_line()
|
2017-12-10 21:30:12 +09:00 |
|
Seiichi Uchida
|
5871967312
|
Verify whether adding block is safe in rewrite_closure_with_block()
Also ensure that the expression is nested to avoid false-positive.
|
2017-12-10 21:27:28 +09:00 |
|
Seiichi Uchida
|
454c85e359
|
Cargo fmt
|
2017-12-05 17:15:58 +09:00 |
|
Seiichi Uchida
|
f99b775de7
|
Rename is_dummy to has_braces
|
2017-11-30 06:40:29 +09:00 |
|
Seiichi Uchida
|
b5e4c99ca7
|
Use an explicit flag to decide on whether to add brace compensation
|
2017-11-30 06:12:32 +09:00 |
|
Nick Cameron
|
8f4d85a9d7
|
Merge multiline_closure_forces_block and multiline_match_arm_forces_block into force_multiline_block
|
2017-11-27 17:03:54 +13:00 |
|
topecongiro
|
6710f0dc9a
|
Do not squash unsafe block
|
2017-11-20 16:40:58 +09:00 |
|
topecongiro
|
35466adbfe
|
Generalize ListItems to allow a separator other than comma
|
2017-11-16 17:43:36 +09:00 |
|
topecongiro
|
34c2499029
|
Cargo fmt
|
2017-11-16 17:43:06 +09:00 |
|
Nick Cameron
|
4da9a147e1
|
Collapse multiple blocks in closures
Fixes #1524
|
2017-11-13 16:45:54 +13:00 |
|
Nick Cameron
|
bc6e493ce0
|
More closures refactoring
|
2017-11-13 16:29:43 +13:00 |
|
Nick Cameron
|
e6800bf27d
|
remove closure_block_indent_threshold option
|
2017-11-13 15:40:54 +13:00 |
|
Nick Cameron
|
e6253c4d31
|
Extract a closures module
|
2017-11-13 15:27:16 +13:00 |
|