]>
git.lizzy.rs Git - rust.git/log
Seiichi Uchida [Mon, 11 Jun 2018 02:38:26 +0000 (11:38 +0900)]
Merge pull request #2779 from thibaultdelor/stableApi
Improve end lines handling
Seiichi Uchida [Mon, 11 Jun 2018 02:33:44 +0000 (11:33 +0900)]
Merge pull request #2780 from thibaultdelor/StopTrackingWhitespacePos
Clean Up code where last whitspace tracking isn't used
Tibo Delor [Sun, 10 Jun 2018 04:19:09 +0000 (14:19 +1000)]
Stop delaying Trailing whitespace error reporting
Tibo Delor [Sun, 10 Jun 2018 04:07:33 +0000 (14:07 +1000)]
Clean Up code where last whitspace tracking isn't used
Tibo Delor [Sat, 9 Jun 2018 14:25:47 +0000 (00:25 +1000)]
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
Tibo Delor [Sat, 9 Jun 2018 14:25:06 +0000 (00:25 +1000)]
Parse Error return an Error instead of a successful empty response
Nick Cameron [Thu, 7 Jun 2018 20:50:35 +0000 (08:50 +1200)]
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
Nick Cameron [Thu, 7 Jun 2018 20:46:28 +0000 (08:46 +1200)]
Merge pull request #2774 from csmoe/repair_label
Fix break_label formatting
Seiichi Uchida [Thu, 7 Jun 2018 06:20:01 +0000 (15:20 +0900)]
Fix test failures
Seiichi Uchida [Thu, 7 Jun 2018 03:33:33 +0000 (12:33 +0900)]
Return None when the formatting of macro failed in format_snippet
Seiichi Uchida [Thu, 7 Jun 2018 03:32:58 +0000 (12:32 +0900)]
Add a field in Summary for notiyfing about formatting failure of macro
Seiichi Uchida [Thu, 7 Jun 2018 03:32:10 +0000 (12:32 +0900)]
Set the flag in RewriteContext when rewriting macro call failed
Seiichi Uchida [Thu, 7 Jun 2018 03:30:14 +0000 (12:30 +0900)]
Add tests for #2607 and #2770
csmoe [Thu, 7 Jun 2018 03:15:59 +0000 (11:15 +0800)]
repair break_label format
csmoe [Thu, 7 Jun 2018 03:15:42 +0000 (11:15 +0800)]
update test
csmoe [Wed, 6 Jun 2018 08:08:07 +0000 (16:08 +0800)]
update rustc_ap_*-v156 (#2772)
Nick Cameron [Wed, 6 Jun 2018 02:38:42 +0000 (14:38 +1200)]
Merge pull request #2771 from topecongiro/issue-2746
Fix poor formatting of impls
Nick Cameron [Wed, 6 Jun 2018 02:37:25 +0000 (14:37 +1200)]
Merge pull request #2769 from topecongiro/issue-2765
Put each nested import on its own line
Seiichi Uchida [Wed, 6 Jun 2018 01:56:07 +0000 (10:56 +0900)]
Fix up tests for empty impls
Seiichi Uchida [Wed, 6 Jun 2018 01:55:56 +0000 (10:55 +0900)]
Add a test for #2746
Seiichi Uchida [Wed, 6 Jun 2018 01:55:25 +0000 (10:55 +0900)]
Respect empty_item_single_line config option when formatting empty impls
Seiichi Uchida [Wed, 6 Jun 2018 01:54:40 +0000 (10:54 +0900)]
Put the where clause next to the closing bracket only when it is not indented
Seiichi Uchida [Wed, 6 Jun 2018 01:46:49 +0000 (10:46 +0900)]
Do not put where clause on a single with multi-lined type
Seiichi Uchida [Wed, 6 Jun 2018 01:46:18 +0000 (10:46 +0900)]
Remove unreachable lines
Seiichi Uchida [Tue, 5 Jun 2018 10:58:44 +0000 (19:58 +0900)]
Put each nested import on its own line
while putting non-nested imports on the same line as much as possible.
Seiichi Uchida [Tue, 5 Jun 2018 10:58:28 +0000 (19:58 +0900)]
Add a test for #2765
Seiichi Uchida [Tue, 5 Jun 2018 10:58:21 +0000 (19:58 +0900)]
Update tests
Nick Cameron [Tue, 5 Jun 2018 08:58:02 +0000 (20:58 +1200)]
Fix tests
Nick Cameron [Tue, 5 Jun 2018 08:28:32 +0000 (20:28 +1200)]
Merge pull request #2767 from topecongiro/issue-2759
Fix breaking code block with `#` in doc comments
Nick Cameron [Tue, 5 Jun 2018 08:09:29 +0000 (20:09 +1200)]
Merge pull request #2768 from king6cong/master
update rustfmt flags that should work without targets
king6cong [Tue, 5 Jun 2018 07:34:53 +0000 (15:34 +0800)]
update rustfmt flags that should work without targets
Seiichi Uchida [Tue, 5 Jun 2018 06:58:14 +0000 (15:58 +0900)]
Trim custom comment prefix even when we failed to format code block
Seiichi Uchida [Tue, 5 Jun 2018 06:57:49 +0000 (15:57 +0900)]
Handle code block with indented escapce character
Seiichi Uchida [Tue, 5 Jun 2018 06:57:03 +0000 (15:57 +0900)]
Trim custom comment prefixes from code block without closing backticks
Seiichi Uchida [Tue, 5 Jun 2018 06:56:51 +0000 (15:56 +0900)]
Add a test for #2759
Nick Cameron [Tue, 5 Jun 2018 06:04:22 +0000 (18:04 +1200)]
Merge pull request #2741 from csmoe/where_brace
Remove newline in empty impl
Nick Cameron [Tue, 5 Jun 2018 06:03:51 +0000 (18:03 +1200)]
Merge pull request #2766 from topecongiro/issue-2761
Allow using mixed layout with comments
Seiichi Uchida [Tue, 5 Jun 2018 04:41:13 +0000 (13:41 +0900)]
Allow using mixed layout with comments
Seiichi Uchida [Tue, 5 Jun 2018 04:06:08 +0000 (13:06 +0900)]
Add a test for #2761
csmoe [Mon, 4 Jun 2018 23:35:51 +0000 (07:35 +0800)]
format exceeded comments
csmoe [Mon, 4 Jun 2018 11:10:09 +0000 (19:10 +0800)]
recover suppressed comma
Nick Cameron [Mon, 4 Jun 2018 02:11:40 +0000 (14:11 +1200)]
Merge pull request #2751 from topecongiro/issue-2749
Fix treating the delimiter right after repeat as repeat as well
Nick Cameron [Mon, 4 Jun 2018 02:04:50 +0000 (14:04 +1200)]
Merge pull request #2747 from alexheretic/master
Add atom rls rustfmt usage guide
csmoe [Thu, 31 May 2018 10:34:06 +0000 (18:34 +0800)]
fix tests
csmoe [Thu, 31 May 2018 10:33:45 +0000 (18:33 +0800)]
snuggle where
csmoe [Thu, 31 May 2018 09:58:48 +0000 (17:58 +0800)]
suppress and compress
Alex Butler [Tue, 29 May 2018 08:04:56 +0000 (09:04 +0100)]
Add atom rls rustfmt usage guide
Seiichi Uchida [Tue, 29 May 2018 23:44:53 +0000 (08:44 +0900)]
Cargo update
Seiichi Uchida [Tue, 29 May 2018 23:20:34 +0000 (08:20 +0900)]
Do not insert spaces around braces with empty body or multiple lines
Seiichi Uchida [Tue, 29 May 2018 23:17:50 +0000 (08:17 +0900)]
Fix treating the delimiter right after repeat as repeat as well
Seiichi Uchida [Tue, 29 May 2018 23:09:56 +0000 (08:09 +0900)]
Add tests for #2749
Alex Butler [Tue, 29 May 2018 23:22:49 +0000 (00:22 +0100)]
Update rustc-ap-* -> 149 (#2748)
Seiichi Uchida [Tue, 29 May 2018 00:05:33 +0000 (09:05 +0900)]
Merge pull request #2745 from alexheretic/master
Update rustc-ap-* -> 148.0.0
Alex Butler [Mon, 28 May 2018 23:38:47 +0000 (00:38 +0100)]
Add mercy for devs that run `cargo test` without building
Alex Butler [Mon, 28 May 2018 22:41:08 +0000 (23:41 +0100)]
Update rustc-ap-* -> 148
Nick Cameron [Sun, 27 May 2018 23:47:21 +0000 (11:47 +1200)]
0.8.2
Nick Cameron [Sun, 27 May 2018 23:30:58 +0000 (11:30 +1200)]
Make Range public
0.8.1
Nick Cameron [Sun, 27 May 2018 23:23:14 +0000 (11:23 +1200)]
0.8.0
Nick Cameron [Sun, 27 May 2018 23:15:15 +0000 (11:15 +1200)]
FIXME for <-
Nick Cameron [Sun, 27 May 2018 23:08:38 +0000 (11:08 +1200)]
Upgrade again
Nick Cameron [Sun, 27 May 2018 22:57:13 +0000 (10:57 +1200)]
Upgrade rustc-ap-syntax
Nick Cameron [Sun, 27 May 2018 22:19:20 +0000 (10:19 +1200)]
Merge pull request #2742 from topecongiro/travis-remove-stdsimd-from-allow-failure
Remove stdsimd from allow-failure crates
Nick Cameron [Sun, 27 May 2018 22:13:09 +0000 (10:13 +1200)]
Merge pull request #2739 from thibaultdelor/fixWindowsTest
Fix test failing on windows due to crlf
topecongiro [Sun, 27 May 2018 22:12:32 +0000 (07:12 +0900)]
Remove stdsimd from allow-failure crates
Nick Cameron [Sun, 27 May 2018 22:12:23 +0000 (10:12 +1200)]
Merge pull request #2733 from topecongiro/issue-2727
Trim unnecessary whitespaces between a macro call and a semicolon
topecongiro [Sun, 27 May 2018 22:07:46 +0000 (07:07 +0900)]
Cargo update
Seiichi Uchida [Sun, 27 May 2018 21:53:11 +0000 (06:53 +0900)]
Merge pull request #2735 from Pazzaz/string-changes
Some changes to rewrite_string
topecongiro [Sun, 27 May 2018 21:44:52 +0000 (06:44 +0900)]
Add a comment to describe hack
Tibo [Sat, 26 May 2018 17:15:26 +0000 (03:15 +1000)]
Fix test failing on windows due to crlf
Pazzaz [Thu, 24 May 2018 18:08:29 +0000 (20:08 +0200)]
Seperate and optimize grapheme conditions
Pazzaz [Thu, 24 May 2018 17:50:34 +0000 (19:50 +0200)]
Avoid unnecessary comparisons with cur_end
Nick Cameron [Thu, 24 May 2018 02:07:57 +0000 (14:07 +1200)]
Merge pull request #2734 from andjo403/isatty
update isatty to remove 3 dependencies
Nick Cameron [Thu, 24 May 2018 01:31:08 +0000 (13:31 +1200)]
Merge pull request #2732 from topecongiro/issue-2691
Format code block with sharp prefix
Andreas Jonson [Wed, 23 May 2018 20:09:25 +0000 (22:09 +0200)]
update isatty to remove 3 dependencies
topecongiro [Wed, 23 May 2018 15:14:05 +0000 (00:14 +0900)]
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.
topecongiro [Wed, 23 May 2018 15:13:56 +0000 (00:13 +0900)]
Add a test for #2727
topecongiro [Wed, 23 May 2018 14:30:07 +0000 (23:30 +0900)]
Format code block with sharp prefix
by hiding lines with a leading `#` behind a custom comment.
topecongiro [Wed, 23 May 2018 14:29:28 +0000 (23:29 +0900)]
Handle code block in doc comment without rust prefix
topecongiro [Wed, 23 May 2018 14:29:18 +0000 (23:29 +0900)]
Add a test for #2691
Nick Cameron [Wed, 23 May 2018 08:10:49 +0000 (20:10 +1200)]
Merge pull request #2730 from topecongiro/issue-2704
Disallow combining a method call with prefix or suffix
Nick Cameron [Wed, 23 May 2018 01:11:12 +0000 (13:11 +1200)]
Fix integration tests
Nick Cameron [Tue, 22 May 2018 23:24:56 +0000 (11:24 +1200)]
Merge pull request #2731 from topecongiro/rustc-ap-syntax
Update rustc-ap-syntax
topecongiro [Tue, 22 May 2018 22:22:59 +0000 (07:22 +0900)]
Cargo fmt
topecongiro [Tue, 22 May 2018 22:22:42 +0000 (07:22 +0900)]
Disallow combining a method call with prefix or suffix
topecongiro [Tue, 22 May 2018 22:22:30 +0000 (07:22 +0900)]
Add tests for #2704.
topecongiro [Tue, 22 May 2018 21:04:14 +0000 (06:04 +0900)]
Fix breaking changes from introducing AnonConst
Seiichi Uchida [Sun, 20 May 2018 10:21:28 +0000 (19:21 +0900)]
Cargo update
Seiichi Uchida [Mon, 21 May 2018 22:16:05 +0000 (07:16 +0900)]
Merge pull request #2726 from csmoe/label_break
Format label break
csmoe [Mon, 21 May 2018 14:19:26 +0000 (22:19 +0800)]
fix label prefix
csmoe [Mon, 21 May 2018 04:18:06 +0000 (12:18 +0800)]
format label break
Nick Cameron [Mon, 21 May 2018 03:54:56 +0000 (15:54 +1200)]
documentation
Nick Cameron [Mon, 21 May 2018 03:32:27 +0000 (15:32 +1200)]
Replace `use_colored_tty` with iatty crate
Nick Cameron [Mon, 21 May 2018 03:09:17 +0000 (15:09 +1200)]
Remove `format_and_emit_report` from the API
Also changes the header/footer stuff
Nick Cameron [Mon, 21 May 2018 02:11:15 +0000 (14:11 +1200)]
Replace WriteMode with EmitMode and backup bool
Nick Cameron [Mon, 21 May 2018 00:01:31 +0000 (12:01 +1200)]
Use our own `FileName` struct rather than exporting libsyntax's
Nick Cameron [Sun, 20 May 2018 23:16:05 +0000 (11:16 +1200)]
Refactor CliOptions
Nick Cameron [Sun, 20 May 2018 21:04:23 +0000 (09:04 +1200)]
Merge pull request #2715 from nrc/integr
Fix and tweak integration tests
Nick Cameron [Sat, 19 May 2018 04:44:48 +0000 (16:44 +1200)]
Rationalise result and error types
Nick Cameron [Sat, 19 May 2018 04:11:30 +0000 (16:11 +1200)]
Rationalise error types
cc #2639
Nick Cameron [Sat, 19 May 2018 03:43:29 +0000 (15:43 +1200)]
Make `format_snippet` and `format_code_block` private
cc #2639