Commit Graph

2117 Commits

Author SHA1 Message Date
topecongiro
ed2687f33b Cargo update 2017-09-15 17:05:27 +09:00
topecongiro
bc56e7b710 Add visual guide for binop_separator 2017-09-15 15:10:34 +09:00
topecongiro
d55b3492c0 Rename binop_sep to binop_separator 2017-09-15 15:05:41 +09:00
topecongiro
2d21c0c30b Split after the colon of type ascription 2017-09-15 15:04:30 +09:00
topecongiro
ff30782725 Update tests 2017-09-15 12:20:58 +09:00
topecongiro
f51261e93e Cargo fmt 2017-09-15 12:10:58 +09:00
topecongiro
45e48ec424 Add a new config option to control the placement of a binary operator 2017-09-15 12:10:30 +09:00
Nick Cameron
7e309a4ad8 nightly-0.2.6 2017-09-14 16:06:36 +12:00
Nick Cameron
a1fd68da46 Merge pull request #1948 from topecongiro/issue-1137
Use write_list() to format imports
2017-09-07 17:35:14 +12:00
topecongiro
903d815228 Clean up 2017-09-06 19:30:51 +09:00
topecongiro
4dbda06629 Use push_rewrite() to remove duplicates 2017-09-06 19:24:23 +09:00
topecongiro
4bd0373757 No cloning 2017-09-06 19:24:14 +09:00
topecongiro
0d748cf4c8 Update tests 2017-09-06 18:48:09 +09:00
topecongiro
662ee46e67 Use write_list() to format imports 2017-09-06 18:47:50 +09:00
topecongiro
af404b998c Factor out rewrite_extern_crate() 2017-09-06 18:44:33 +09:00
Nick Cameron
3b6a5fa881 Merge pull request #1947 from topecongiro/issue-1275
Use the last line's width for indent width in rewriting missed span to fix unindented comments
2017-09-06 10:21:46 +12:00
Seiichi Uchida
97d9e6b373 Use the last line's width for indent width in rewriting missed span
to fix unindented comments
2017-09-05 16:54:02 +09:00
Seiichi Uchida
2fb5affb5f Remove duplicates inside visit_stmt() 2017-09-05 16:50:55 +09:00
Nick Cameron
435ab867c3 Merge pull request #1945 from topecongiro/issue-1095
Exclude prefix colon from span when rewriting comment
2017-09-05 11:00:31 +12:00
Nick Cameron
84e7ef0ab7 Merge pull request #1944 from topecongiro/issue-1943
Take attributes_on_same_line_as_field into account
2017-09-05 10:53:36 +12:00
Nick Cameron
dc9810e242 Merge pull request #1942 from topecongiro/fixes
Some Fixes
2017-09-05 10:52:41 +12:00
Nick Cameron
f07dec329e Merge pull request #1940 from topecongiro/issue-1934
Avoid rewriting big block twice
2017-09-05 10:50:33 +12:00
Seiichi Uchida
c720a3a38e Remove colon from faulty span 2017-09-05 01:04:31 +09:00
Seiichi Uchida
e6e696f7b0 Avoid cloning String 2017-09-05 01:04:08 +09:00
topecongiro
467b7b5a6c Take attributes_on_same_line_as_field into account 2017-09-04 16:15:32 +09:00
topecongiro
47062c8f0a Format long derive 2017-09-03 08:14:00 +09:00
topecongiro
f8bdcd62e8 Do not allow single-lined closure with block body 2017-09-03 08:10:12 +09:00
topecongiro
737186b890 Use rewrite() instead of format_expr 2017-09-03 08:09:37 +09:00
Seiichi Uchida
68da44eb97 Avoid rewriting big block twice 2017-09-01 22:52:54 +09:00
Nick Cameron
3f3d92506a Merge pull request #1938 from topecongiro/changelog
Add CHANGELOG.md
2017-09-01 08:37:00 +12:00
Nick Cameron
59d1e84259 Merge pull request #1937 from topecongiro/enhance-macro-rewrite
Enhance macro rewrite
2017-08-31 17:43:52 +12:00
Nick Cameron
d08405eed6 Merge pull request #1931 from topecongiro/cargo-clippy
Apply refactoring from cargo clippy
2017-08-31 17:18:45 +12:00
Nick Cameron
c5a5db2b2b Merge pull request #1930 from topecongiro/poor/item_brace_style
Add struct_remove_empty_body config option
2017-08-31 17:15:42 +12:00
topecongiro
fb4dcbfe5c Add CHANGELOG.md 2017-08-31 14:06:10 +09:00
topecongiro
848d4559e1 Enhance macro rewrite 2017-08-31 13:52:13 +09:00
Seiichi Uchida
9d49bd22f0 Add explicit lifetime 2017-08-31 13:24:32 +09:00
Seiichi Uchida
4b79055a15 Apply refactoring from cargo clippy 2017-08-31 12:49:12 +09:00
topecongiro
4ad81d0bd9 Refactoring: use context.budget() 2017-08-31 12:44:40 +09:00
topecongiro
16894b9cd2 Put the closing brace of empty enum on the same line with the opening brace 2017-08-31 12:44:40 +09:00
Nick Cameron
8122f0b083 nightly-0.2.5
And cargo update
2017-08-31 14:32:54 +12:00
Nick Cameron
39a91ba292 Fixup warnings and test formatting 2017-08-31 14:20:47 +12:00
Vadim Petrochenkov
6e5c6f5ba3 Use getters to access Span fields 2017-08-31 14:14:13 +12:00
Nick Cameron
4eca284c9f Merge pull request #1933 from topecongiro/attributes-on-stmt
Format and preserve attributes on `ast::Stmt`
2017-08-31 09:30:44 +12:00
topecongiro
5280583369 Format 2017-08-30 19:27:50 +09:00
topecongiro
979d131c5d Format and preserve attributes on ast::Stmt 2017-08-30 19:27:36 +09:00
topecongiro
e31a48b4d9 Refactoring: remove duplicates 2017-08-30 19:26:45 +09:00
Nick Cameron
e780532239 nightly-0.2.4 2017-08-30 13:56:08 +12:00
Alex Crichton
1577cefad5 Add support for Yield 2017-08-30 13:54:25 +12:00
Nick Cameron
897b224b54 nightly-0.2.3 2017-08-30 12:26:27 +12:00
Nick Cameron
64cfb9663b Merge pull request #1929 from topecongiro/remove-unused-extern-crate
Remove unused extern crate
2017-08-29 11:33:26 +12:00