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 |
|