Commit Graph

3845 Commits

Author SHA1 Message Date
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
csmoe
0468c134f4 snuggle where 2018-05-31 18:33:45 +08:00
csmoe
8536c288f2 suppress and compress 2018-05-31 17:58:48 +08:00
Alex Butler
6c14dba4e9
Add atom rls rustfmt usage guide 2018-05-30 09:31:20 +01:00
Seiichi Uchida
22602045ab Cargo update 2018-05-30 08:44:57 +09:00
Seiichi Uchida
2f65852946 Do not insert spaces around braces with empty body or multiple lines 2018-05-30 08:44:57 +09:00
Seiichi Uchida
966fe8d705 Fix treating the delimiter right after repeat as repeat as well 2018-05-30 08:44:57 +09:00
Seiichi Uchida
11835ce5ce Add tests for #2749 2018-05-30 08:44:57 +09:00
Alex Butler
f390626778 Update rustc-ap-* -> 149 (#2748) 2018-05-30 08:22:49 +09:00
Seiichi Uchida
3d85084a62
Merge pull request #2745 from alexheretic/master
Update rustc-ap-* -> 148.0.0
2018-05-29 09:05:33 +09:00
Alex Butler
cd925f0140
Add mercy for devs that run cargo test without building 2018-05-29 00:38:47 +01:00
Alex Butler
5473c3fd92 Update rustc-ap-* -> 148 2018-05-28 23:41:08 +01:00
Nick Cameron
173ae0d7b9 0.8.2 2018-05-28 11:47:21 +12:00
Nick Cameron
d930617cbe Make Range public
0.8.1
2018-05-28 11:30:58 +12:00
Nick Cameron
ee5fda8f25 0.8.0 2018-05-28 11:23:14 +12:00
Nick Cameron
8674ab9a42 FIXME for <- 2018-05-28 11:15:15 +12:00
Nick Cameron
50dfd064eb Upgrade again 2018-05-28 11:08:38 +12:00
Nick Cameron
2c275a2f68 Upgrade rustc-ap-syntax 2018-05-28 10:57:13 +12:00
Nick Cameron
869d23a853
Merge pull request #2742 from topecongiro/travis-remove-stdsimd-from-allow-failure
Remove stdsimd from allow-failure crates
2018-05-28 10:19:20 +12:00
Nick Cameron
0a2ec411ae
Merge pull request #2739 from thibaultdelor/fixWindowsTest
Fix test failing on windows due to crlf
2018-05-28 10:13:09 +12:00
topecongiro
c9aceb22b5 Remove stdsimd from allow-failure crates 2018-05-28 07:12:32 +09:00
Nick Cameron
1d5da1011f
Merge pull request #2733 from topecongiro/issue-2727
Trim unnecessary whitespaces between a macro call and a semicolon
2018-05-28 10:12:23 +12:00
topecongiro
926d47db4d Cargo update 2018-05-28 07:07:46 +09:00
Seiichi Uchida
ff3b1f30d5
Merge pull request #2735 from Pazzaz/string-changes
Some changes to rewrite_string
2018-05-28 06:53:11 +09:00
topecongiro
8fea1fcfe5 Add a comment to describe hack 2018-05-28 06:44:52 +09:00
Tibo
33a46581f7
Fix test failing on windows due to crlf 2018-05-27 03:20:02 +10:00
Pazzaz
f711078126 Seperate and optimize grapheme conditions 2018-05-24 21:32:01 +02:00
Pazzaz
a1d137116b Avoid unnecessary comparisons with cur_end 2018-05-24 21:32:01 +02:00
Nick Cameron
a92a1cb512
Merge pull request #2734 from andjo403/isatty
update isatty to remove 3 dependencies
2018-05-24 14:07:57 +12:00
Nick Cameron
8f743405b3
Merge pull request #2732 from topecongiro/issue-2691
Format code block with sharp prefix
2018-05-24 13:31:08 +12:00
Andreas Jonson
619bb0cd9a update isatty to remove 3 dependencies 2018-05-23 22:09:25 +02:00
topecongiro
eedd275cd9 Do not call format_missing_inner in a common case
We use `format_missing()` to extract a missing comment between a macro
(or alike) and a trailing semicolon. This commit just tries to avoid calling
`format_missing_inner` in the common case where there is no such comment.

This is a hack, ideally we should fix a possible bug in `format_missing_inner`
or refactor `visit_mac` and `rewrite_macro`, but this should suffice to fix the
issue.
2018-05-24 00:14:05 +09:00
topecongiro
6dd7d5ba1c Add a test for #2727 2018-05-24 00:13:56 +09:00
topecongiro
5d067f16e0 Format code block with sharp prefix
by hiding lines with a leading `#` behind a custom comment.
2018-05-23 23:30:07 +09:00
topecongiro
f1974e2209 Handle code block in doc comment without rust prefix 2018-05-23 23:29:28 +09:00
topecongiro
0977bca5ed Add a test for #2691 2018-05-23 23:29:18 +09:00
Nick Cameron
353816c596
Merge pull request #2730 from topecongiro/issue-2704
Disallow combining a method call with prefix or suffix
2018-05-23 20:10:49 +12:00
Nick Cameron
9f00199a56 Fix integration tests 2018-05-23 13:11:12 +12:00