Commit Graph

2557 Commits

Author SHA1 Message Date
Seiichi Uchida
dd5ed53930 Remove calling rewrite() against String 2017-10-07 22:01:44 +09:00
Seiichi Uchida
dde0cdabe0 Remove String::rewrite() 2017-10-07 21:59:33 +09:00
Seiichi Uchida
2b6e50436c Run wrap_str() only when chain_indent is set to "Visual" 2017-10-07 21:55:04 +09:00
Seiichi Uchida
02ef2ee8de Fix a typo 2017-10-07 21:48:45 +09:00
Seiichi Uchida
35cd72d989 Use correct budget for the last child of chain 2017-10-07 21:48:05 +09:00
Nick Cameron
6c9ee313a2 Merge pull request #2038 from jugglerchris/add_test_skip_attr
Add a test that the skip attribute applies to other attributes.
2017-10-07 13:19:15 +08:00
Nick Cameron
eec833f1e5 Merge pull request #2028 from wada314/win-test-crlf
Fix the test framework is failing in CRLF env.
2017-10-07 13:12:16 +08:00
Chris Emerson
27e269ec5b Add a test that the skip attribute applies to other attributes. 2017-10-06 22:57:59 +01:00
Shohei Wada
fe1619b548 Fix the test framework is failing in CRLF env 2017-10-07 01:53:55 +09:00
Nick Cameron
802df67c2f Merge pull request #2035 from topecongiro/deprecate-try_opt!
Replace `try_opt!` macro with a `?` operator
2017-10-05 20:45:52 +08:00
Nick Cameron
99f14a87ae Merge pull request #2029 from wada314/fix-crlf
Fix broken tests under CRLF environment.
2017-10-05 20:07:29 +08:00
topecongiro
47cf912c2c Use push_str() instead of write!() 2017-10-05 21:05:28 +09:00
topecongiro
ce8e645537 Update Contributing.md 2017-10-05 20:50:50 +09:00
topecongiro
fe69dde96b Replace 'try_opt!' macro with a '?' operator 2017-10-05 20:50:19 +09:00
Nick Cameron
81f0e9c94e Merge pull request #2032 from topecongiro/trailing-whitespaces-in-macro-def
Remove trailing whitespaces in macro def
2017-10-05 19:34:12 +08:00
topecongiro
00f8610d9b Add a test 2017-10-05 19:44:45 +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
Nick Cameron
61043e64e0 Merge pull request #2019 from topecongiro/issue-2018
Break after '=' if a single line rhs exceeds max width
2017-10-05 17:30:45 +08:00
Nick Cameron
2abe119d88 Merge pull request #2017 from topecongiro/issue-1987
Format strings in attributes when `format_strings = true`
2017-10-05 17:27:17 +08:00
topecongiro
106625bc5c Remove trailing whitespaces in macro def 2017-10-05 16:17:59 +09:00
topecongiro
9e963b87fc Add InString field to FullCodeCharKind 2017-10-05 16:17:04 +09:00
Shohei Wada
25d2671c55 Fix broken tests under CRLF env. 2017-10-05 00:23:17 +09:00
Nick Cameron
c31c24de36 Merge pull request #2014 from topecongiro/fn-sig
Reduce number of arguments in rewrite_fn()
2017-10-04 20:18:02 +08:00
Nick Cameron
2aa2d4ebe3 Merge pull request #2011 from topecongiro/rewrite_call_inner
Change return type of rewrite_call_inner() to Option<String>
2017-10-04 20:14:10 +08:00
Seiichi Uchida
687acdf84e Merge pull request #2026 from SingingTree/remove-184-fixme
Uncomment fixme associated with #184 in loop.rs as this issue is fixed.
2017-10-04 18:55:07 +09:00
Bryce Van Dyk
3422ebadf3 Uncomment fixme associated with #184 in loop.rs as this issue is fixed. 2017-10-04 22:02:28 +13:00
Seiichi Uchida
1752929983 Update tests 2017-10-02 00:04:58 +09: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
Seiichi Uchida
c0997260ba Update tests 2017-10-01 21:21:20 +09:00
Seiichi Uchida
1771dfca08 Break after '=' if a single line rhs exceeds max width 2017-10-01 21:20:15 +09:00
topecongiro
bdcd36e677 Add a test for #1987 2017-10-01 20:30:32 +09:00
topecongiro
74402bbdef Move logic for doc comments to ast::Attribute::rewrite() 2017-10-01 20:24:53 +09:00
topecongiro
b74a0f960a Implement StringFormat::new() 2017-10-01 19:39:00 +09:00
topecongiro
48ff9df8a4 Add rewrite_literal() 2017-10-01 19:29:23 +09:00
Nick Cameron
6e41100725 Merge pull request #2005 from topecongiro/issue-2003
Put the opening brace of fn body on the next line if it exceeds max width
2017-09-29 21:27:37 +08:00
Nick Cameron
ce62f0a7ec Merge pull request #1997 from topecongiro/issue-1995
Fix a budget bug in Arg::rewrite()
2017-09-29 20:40:53 +08:00
topecongiro
921e0c22ab Factor out FnSig::to_str() 2017-09-29 15:09:13 +09:00
topecongiro
62e38860b9 Handle 'extern "Rust"' in format_abi() 2017-09-29 15:08:48 +09:00
topecongiro
9537437e52 Use is_empty_block() 2017-09-29 12:51:06 +09:00
topecongiro
d8fc9ec05e Remove has_braces from argument 2017-09-29 12:50:35 +09:00
topecongiro
2e6825cc8c Use FnSig in rewrite_fn() and rewrite_fn_base() 2017-09-29 12:49:39 +09:00
topecongiro
7d448c2b26 Implement FnSig type 2017-09-29 12:45:42 +09:00
topecongiro
c66560fee6 Add a test for #2003 2017-09-28 20:15:33 +09:00
topecongiro
ee2b3b1529 Put the opening brace of fn body on the next line if it exceeds max width 2017-09-28 20:12:04 +09:00
Seiichi Uchida
26fa7515e5 Merge pull request #2004 from topecongiro/0.2.8
nightly-0.2.8
2017-09-28 20:01:46 +09:00
topecongiro
45146e16ee nightly-0.2.8 2017-09-28 18:11:23 +09:00
topecongiro
bfac2755d4 Cargo update 2017-09-28 18:11:18 +09:00
Seiichi Uchida
e16c56bf13 Merge pull request #2000 from Badel2/dotdoteq
Support for `..=` syntax
2017-09-28 18:06:56 +09:00
topecongiro
436a083fce Change return type of rewrite_call_inner() to Option<String> 2017-09-28 16:33:30 +09:00