gnzlbg
3b65e15989
update issues; allow stdsimd to fail
2018-06-18 09:49:17 +02:00
gnzlbg
88a2c48ce3
preserve pipe error status (tee always succeeds); check fmt before running tests
2018-06-15 15:07:32 +02:00
gnzlbg
aacebc854a
test cargo fmt --all -- --check returns success after formatting
2018-06-15 14:20:39 +02:00
Nick Cameron
fc057c2979
Merge pull request #2784 from topecongiro/rustc-ap-syntax
...
Cargo update
2018-06-13 09:01:54 -07:00
Seiichi Uchida
23ca2b670e
Add a test for #2630
...
Closes #2630 .
2018-06-13 20:39:47 +09:00
Seiichi Uchida
68a6e696f2
Cargo update
2018-06-13 20:36:55 +09:00
Seiichi Uchida
0ec1533054
Merge pull request #2779 from thibaultdelor/stableApi
...
Improve end lines handling
2018-06-11 11:38:26 +09:00
Seiichi Uchida
46d145b54e
Merge pull request #2780 from thibaultdelor/StopTrackingWhitespacePos
...
Clean Up code where last whitspace tracking isn't used
2018-06-11 11:33:44 +09:00
Tibo Delor
2e90c4314c
Stop delaying Trailing whitespace error reporting
2018-06-10 14:19:09 +10:00
Tibo Delor
42efae5944
Clean Up code where last whitspace tracking isn't used
2018-06-10 14:07:33 +10:00
Tibo Delor
6b00b8b302
Move newline logic inside the formatting process.
...
Why?:
- Conceptually it sounds right
- Absolutely all write modes where doing it anyway
- It was done several times in some in case
- It greatly simplify the code
2018-06-10 00:25:47 +10:00
Tibo Delor
8c32a9d909
Parse Error return an Error instead of a successful empty response
2018-06-10 00:25:06 +10:00
Nick Cameron
34067a1c4c
Merge pull request #2775 from topecongiro/macro-def-with-complex-macro
...
Change format_snippet to return None when it has failed to format macro call
2018-06-08 08:50:35 +12:00
Nick Cameron
8956b91a93
Merge pull request #2774 from csmoe/repair_label
...
Fix break_label formatting
2018-06-08 08:46:28 +12:00
Seiichi Uchida
19054347ca
Fix test failures
2018-06-07 15:20:01 +09:00
Seiichi Uchida
c95fa8cbe2
Return None when the formatting of macro failed in format_snippet
2018-06-07 12:33:33 +09:00
Seiichi Uchida
d1477ca1de
Add a field in Summary for notiyfing about formatting failure of macro
2018-06-07 12:32:58 +09:00
Seiichi Uchida
94e68b1eb6
Set the flag in RewriteContext when rewriting macro call failed
2018-06-07 12:32:10 +09:00
Seiichi Uchida
5e59e686c1
Add tests for #2607 and #2770
2018-06-07 12:30:14 +09:00
csmoe
c791a54ff4
repair break_label format
2018-06-07 11:21:52 +08:00
csmoe
5cd76a3de5
update test
2018-06-07 11:15:42 +08:00
csmoe
08da30d72c
update rustc_ap_*-v156 ( #2772 )
2018-06-06 17:08:07 +09:00
Nick Cameron
da30d235a4
Merge pull request #2771 from topecongiro/issue-2746
...
Fix poor formatting of impls
2018-06-06 14:38:42 +12:00
Nick Cameron
576e9af0ae
Merge pull request #2769 from topecongiro/issue-2765
...
Put each nested import on its own line
2018-06-06 14:37:25 +12:00
Seiichi Uchida
d96d853b5c
Fix up tests for empty impls
2018-06-06 10:56:07 +09:00
Seiichi Uchida
356a0c4b58
Add a test for #2746
2018-06-06 10:55:56 +09:00
Seiichi Uchida
a4db62368b
Respect empty_item_single_line config option when formatting empty impls
2018-06-06 10:55:25 +09:00
Seiichi Uchida
d51b99f5d7
Put the where clause next to the closing bracket only when it is not indented
2018-06-06 10:54:40 +09:00
Seiichi Uchida
2e4376d29c
Do not put where clause on a single with multi-lined type
2018-06-06 10:46:49 +09:00
Seiichi Uchida
8d01496c9e
Remove unreachable lines
2018-06-06 10:46:18 +09:00
Seiichi Uchida
42ab258757
Put each nested import on its own line
...
while putting non-nested imports on the same line as much as possible.
2018-06-05 19:58:44 +09:00
Seiichi Uchida
35fee77d39
Add a test for #2765
2018-06-05 19:58:28 +09:00
Seiichi Uchida
0204dcbd98
Update tests
2018-06-05 19:58:21 +09:00
Nick Cameron
f545dfe95e
Fix tests
2018-06-05 20:58:02 +12:00
Nick Cameron
95b4978baa
Merge pull request #2767 from topecongiro/issue-2759
...
Fix breaking code block with `#` in doc comments
2018-06-05 20:28:32 +12:00
Nick Cameron
9e208cb13a
Merge pull request #2768 from king6cong/master
...
update rustfmt flags that should work without targets
2018-06-05 20:09:29 +12:00
king6cong
56a3d039ce
update rustfmt flags that should work without targets
2018-06-05 15:43:48 +08:00
Seiichi Uchida
604764abe1
Trim custom comment prefix even when we failed to format code block
2018-06-05 15:58:14 +09:00
Seiichi Uchida
1b4778d0bc
Handle code block with indented escapce character
2018-06-05 15:57:49 +09:00
Seiichi Uchida
a70213b009
Trim custom comment prefixes from code block without closing backticks
2018-06-05 15:57:03 +09:00
Seiichi Uchida
e4125ff96a
Add a test for #2759
2018-06-05 15:56:51 +09:00
Nick Cameron
d9149fb52e
Merge pull request #2741 from csmoe/where_brace
...
Remove newline in empty impl
2018-06-05 18:04:22 +12:00
Nick Cameron
9f535de503
Merge pull request #2766 from topecongiro/issue-2761
...
Allow using mixed layout with comments
2018-06-05 18:03:51 +12:00
Seiichi Uchida
b4987d848b
Allow using mixed layout with comments
2018-06-05 13:43:01 +09:00
Seiichi Uchida
b9631d1209
Add a test for #2761
2018-06-05 13:42:58 +09:00
csmoe
faa41168a9
format exceeded comments
2018-06-05 07:35:51 +08:00
csmoe
8874c95a00
recover suppressed comma
2018-06-04 19:10:09 +08:00
Nick Cameron
4e09e5479c
Merge pull request #2751 from topecongiro/issue-2749
...
Fix treating the delimiter right after repeat as repeat as well
2018-06-04 14:11:40 +12:00
Nick Cameron
1903879d88
Merge pull request #2747 from alexheretic/master
...
Add atom rls rustfmt usage guide
2018-06-04 14:04:50 +12:00
csmoe
d46852b3f7
fix tests
2018-05-31 18:34:06 +08:00