]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoAdd a test for raw identifiers
Seiichi Uchida [Mon, 25 Jun 2018 14:36:37 +0000 (23:36 +0900)]
Add a test for raw identifiers

6 years agoMerge pull request #2804 from Mike-Baker/mb-strip-vert-in-match-arms
Nick Cameron [Mon, 25 Jun 2018 09:02:24 +0000 (21:02 +1200)]
Merge pull request #2804 from Mike-Baker/mb-strip-vert-in-match-arms

Strip leading `|` in match arm patterns

6 years agoMerge pull request #2806 from topecongiro/rustc-ap-syntax
Nick Cameron [Mon, 25 Jun 2018 08:59:31 +0000 (20:59 +1200)]
Merge pull request #2806 from topecongiro/rustc-ap-syntax

Update rustc-ap-* to 174.0.0

6 years agoAdd a test for #2791
topecongiro [Mon, 25 Jun 2018 06:27:09 +0000 (15:27 +0900)]
Add a test for #2791

Closes #2791.

6 years agoFix compile errors from breaking changes in libsyntax
topecongiro [Mon, 25 Jun 2018 06:24:00 +0000 (15:24 +0900)]
Fix compile errors from breaking changes in libsyntax

cc https://github.com/rust-lang/rust/pull/48149.

6 years agoCargo update
topecongiro [Mon, 25 Jun 2018 04:58:00 +0000 (13:58 +0900)]
Cargo update

Update rustc-ap-* to 174.0.0.

6 years agoStrip leading `|` in match arm patterns
Mike Baker [Sat, 14 Apr 2018 09:21:54 +0000 (10:21 +0100)]
Strip leading `|` in match arm patterns

This addresses issue #2621

This commit turns out to be a partial revert of
ea3c01e3374143912f048b22fda106ee8d5a1cd8

The rationale is that a `|` character preceding a match pattern is not
semantically relevant and therefore should be considered a
style/formatting choice.

A discussion concluded that the best way to emit consistent formatting
here was to strip the leading `|`

This removes the match_with_beginning_vert test because it was asserting
the old behaviour which has been changed, it adds a new test
(issue_2621) which should be a more comprehensive check of the behavior
of `|` in match arms.

Discussion at https://github.com/rust-lang-nursery/fmt-rfcs/issues/119

6 years agoTODO -> FIXME
Nick Cameron [Fri, 22 Jun 2018 02:41:17 +0000 (14:41 +1200)]
TODO -> FIXME

Or just delete

Closes #25

6 years agoMerge pull request #2799 from lo48576/fix/config-doc
Nick Cameron [Thu, 21 Jun 2018 03:21:23 +0000 (15:21 +1200)]
Merge pull request #2799 from lo48576/fix/config-doc

Remove wrong "(default)" from `Configurations.md`

6 years agoRemove wrong "(default)"
YOSHIOKA Takuma [Thu, 21 Jun 2018 02:42:09 +0000 (11:42 +0900)]
Remove wrong "(default)"

`blank_lines_upper_bound` has default value `1`, not `2`.

6 years agoMerge pull request #2795 from jechase/issue-2794
Nick Cameron [Tue, 19 Jun 2018 22:35:16 +0000 (10:35 +1200)]
Merge pull request #2795 from jechase/issue-2794

Add test and fix for #2794

6 years agoMerge pull request #2785 from wada314/issue-2728
Nick Cameron [Tue, 19 Jun 2018 22:32:46 +0000 (10:32 +1200)]
Merge pull request #2785 from wada314/issue-2728

Fix #2728.

6 years agoAdd flag to the ListFormatting struct for nested imports
Josh Chase [Tue, 19 Jun 2018 15:28:58 +0000 (11:28 -0400)]
Add flag to the ListFormatting struct for nested imports

6 years agoRemove NestedImport tactic
Josh Chase [Tue, 19 Jun 2018 15:28:00 +0000 (11:28 -0400)]
Remove NestedImport tactic

6 years agoSwitch to comments for rustfmt config
Josh Chase [Tue, 19 Jun 2018 13:30:50 +0000 (09:30 -0400)]
Switch to comments for rustfmt config

6 years agoFix #2728.
Shohei Wada [Wed, 13 Jun 2018 12:54:06 +0000 (21:54 +0900)]
Fix #2728.

6 years agoRemove some unnecessary `pub`s
Nick Cameron [Tue, 19 Jun 2018 02:36:50 +0000 (14:36 +1200)]
Remove some unnecessary `pub`s

6 years agoChange `use_small_heuristics` to an enum and stabilise
Nick Cameron [Tue, 19 Jun 2018 01:26:36 +0000 (13:26 +1200)]
Change `use_small_heuristics` to an enum and stabilise

Since it is now an enum, we can be future compatible since we can add variants
for different heuristics.

Closes #1974

6 years agoMerge pull request #2793 from rust-lang-nursery/integr-test-fail
Nick Cameron [Mon, 18 Jun 2018 22:40:21 +0000 (10:40 +1200)]
Merge pull request #2793 from rust-lang-nursery/integr-test-fail

Don't fail integration tests if the subject is not passing its own tests

6 years agoMerge pull request #2788 from gnzlbg/test_check_fmt
Nick Cameron [Mon, 18 Jun 2018 22:12:06 +0000 (10:12 +1200)]
Merge pull request #2788 from gnzlbg/test_check_fmt

test cargo fmt --all -- --check returns success after formatting

6 years agoAdd test for #2794
Josh Chase [Mon, 18 Jun 2018 16:50:13 +0000 (12:50 -0400)]
Add test for #2794

6 years agodo not fix chalk
gnzlbg [Mon, 18 Jun 2018 08:43:07 +0000 (10:43 +0200)]
do not fix chalk

6 years agoDon't fail integration tests if the subject is not passing its own tests
Nick Cameron [Mon, 18 Jun 2018 08:17:07 +0000 (20:17 +1200)]
Don't fail integration tests if the subject is not passing its own tests

As suggested in https://github.com/rust-lang-nursery/rustfmt/pull/2715#issuecomment-390397152

6 years agofix chalk build
gnzlbg [Mon, 18 Jun 2018 08:04:21 +0000 (10:04 +0200)]
fix chalk build

6 years agorust-semverver build properly
gnzlbg [Mon, 18 Jun 2018 07:50:20 +0000 (09:50 +0200)]
rust-semverver build properly

6 years agoupdate issues; allow stdsimd to fail
gnzlbg [Mon, 18 Jun 2018 07:49:17 +0000 (09:49 +0200)]
update issues; allow stdsimd to fail

6 years agopreserve pipe error status (tee always succeeds); check fmt before running tests
gnzlbg [Fri, 15 Jun 2018 13:07:32 +0000 (15:07 +0200)]
preserve pipe error status (tee always succeeds); check fmt before running tests

6 years agotest cargo fmt --all -- --check returns success after formatting
gnzlbg [Fri, 15 Jun 2018 12:20:39 +0000 (14:20 +0200)]
test cargo fmt --all -- --check returns success after formatting

6 years agoMerge pull request #2784 from topecongiro/rustc-ap-syntax
Nick Cameron [Wed, 13 Jun 2018 16:01:54 +0000 (09:01 -0700)]
Merge pull request #2784 from topecongiro/rustc-ap-syntax

Cargo update

6 years agoAdd a test for #2630
Seiichi Uchida [Wed, 13 Jun 2018 11:39:47 +0000 (20:39 +0900)]
Add a test for #2630

Closes #2630.

6 years agoCargo update
Seiichi Uchida [Sat, 9 Jun 2018 06:07:36 +0000 (15:07 +0900)]
Cargo update

6 years agoMerge pull request #2779 from thibaultdelor/stableApi
Seiichi Uchida [Mon, 11 Jun 2018 02:38:26 +0000 (11:38 +0900)]
Merge pull request #2779 from thibaultdelor/stableApi

Improve end lines handling

6 years agoMerge pull request #2780 from thibaultdelor/StopTrackingWhitespacePos
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

6 years agoStop delaying Trailing whitespace error reporting
Tibo Delor [Sun, 10 Jun 2018 04:19:09 +0000 (14:19 +1000)]
Stop delaying Trailing whitespace error reporting

6 years agoClean Up code where last whitspace tracking isn't used
Tibo Delor [Sun, 10 Jun 2018 04:07:33 +0000 (14:07 +1000)]
Clean Up code where last whitspace tracking isn't used

6 years agoMove newline logic inside the formatting process.
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

6 years agoParse Error return an Error instead of a successful empty response
Tibo Delor [Sat, 9 Jun 2018 14:25:06 +0000 (00:25 +1000)]
Parse Error return an Error instead of a successful empty response

6 years agoMerge pull request #2775 from topecongiro/macro-def-with-complex-macro
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

6 years agoMerge pull request #2774 from csmoe/repair_label
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

6 years agoFix test failures
Seiichi Uchida [Thu, 7 Jun 2018 06:20:01 +0000 (15:20 +0900)]
Fix test failures

6 years agoReturn None when the formatting of macro failed in format_snippet
Seiichi Uchida [Thu, 7 Jun 2018 03:33:33 +0000 (12:33 +0900)]
Return None when the formatting of macro failed in format_snippet

6 years agoAdd a field in Summary for notiyfing about formatting failure of macro
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

6 years agoSet the flag in RewriteContext when rewriting macro call failed
Seiichi Uchida [Thu, 7 Jun 2018 03:32:10 +0000 (12:32 +0900)]
Set the flag in RewriteContext when rewriting macro call failed

6 years agoAdd tests for #2607 and #2770
Seiichi Uchida [Thu, 7 Jun 2018 03:30:14 +0000 (12:30 +0900)]
Add tests for #2607 and #2770

6 years agorepair break_label format
csmoe [Thu, 7 Jun 2018 03:15:59 +0000 (11:15 +0800)]
repair break_label format

6 years agoupdate test
csmoe [Thu, 7 Jun 2018 03:15:42 +0000 (11:15 +0800)]
update test

6 years agoupdate rustc_ap_*-v156 (#2772)
csmoe [Wed, 6 Jun 2018 08:08:07 +0000 (16:08 +0800)]
update rustc_ap_*-v156 (#2772)

6 years agoMerge pull request #2771 from topecongiro/issue-2746
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

6 years agoMerge pull request #2769 from topecongiro/issue-2765
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

6 years agoFix up tests for empty impls
Seiichi Uchida [Wed, 6 Jun 2018 01:56:07 +0000 (10:56 +0900)]
Fix up tests for empty impls

6 years agoAdd a test for #2746
Seiichi Uchida [Wed, 6 Jun 2018 01:55:56 +0000 (10:55 +0900)]
Add a test for #2746

6 years agoRespect empty_item_single_line config option when formatting empty impls
Seiichi Uchida [Wed, 6 Jun 2018 01:55:25 +0000 (10:55 +0900)]
Respect empty_item_single_line config option when formatting empty impls

6 years agoPut the where clause next to the closing bracket only when it is not indented
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

6 years agoDo not put where clause on a single with multi-lined type
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

6 years agoRemove unreachable lines
Seiichi Uchida [Wed, 6 Jun 2018 01:46:18 +0000 (10:46 +0900)]
Remove unreachable lines

6 years agoPut each nested import on its own line
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.

6 years agoAdd a test for #2765
Seiichi Uchida [Tue, 5 Jun 2018 10:58:28 +0000 (19:58 +0900)]
Add a test for #2765

6 years agoUpdate tests
Seiichi Uchida [Tue, 5 Jun 2018 10:58:21 +0000 (19:58 +0900)]
Update tests

6 years agoFix tests
Nick Cameron [Tue, 5 Jun 2018 08:58:02 +0000 (20:58 +1200)]
Fix tests

6 years agoMerge pull request #2767 from topecongiro/issue-2759
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

6 years agoMerge pull request #2768 from king6cong/master
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

6 years agoupdate 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

6 years agoTrim custom comment prefix even when we failed to format code block
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

6 years agoHandle code block with indented escapce character
Seiichi Uchida [Tue, 5 Jun 2018 06:57:49 +0000 (15:57 +0900)]
Handle code block with indented escapce character

6 years agoTrim custom comment prefixes from code block without closing backticks
Seiichi Uchida [Tue, 5 Jun 2018 06:57:03 +0000 (15:57 +0900)]
Trim custom comment prefixes from code block without closing backticks

6 years agoAdd a test for #2759
Seiichi Uchida [Tue, 5 Jun 2018 06:56:51 +0000 (15:56 +0900)]
Add a test for #2759

6 years agoMerge pull request #2741 from csmoe/where_brace
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

6 years agoMerge pull request #2766 from topecongiro/issue-2761
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

6 years agoAllow using mixed layout with comments
Seiichi Uchida [Tue, 5 Jun 2018 04:41:13 +0000 (13:41 +0900)]
Allow using mixed layout with comments

6 years agoAdd a test for #2761
Seiichi Uchida [Tue, 5 Jun 2018 04:06:08 +0000 (13:06 +0900)]
Add a test for #2761

6 years agoformat exceeded comments
csmoe [Mon, 4 Jun 2018 23:35:51 +0000 (07:35 +0800)]
format exceeded comments

6 years agorecover suppressed comma
csmoe [Mon, 4 Jun 2018 11:10:09 +0000 (19:10 +0800)]
recover suppressed comma

6 years agoMerge pull request #2751 from topecongiro/issue-2749
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

6 years agoMerge pull request #2747 from alexheretic/master
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

6 years agofix tests
csmoe [Thu, 31 May 2018 10:34:06 +0000 (18:34 +0800)]
fix tests

6 years agosnuggle where
csmoe [Thu, 31 May 2018 10:33:45 +0000 (18:33 +0800)]
snuggle where

6 years agosuppress and compress
csmoe [Thu, 31 May 2018 09:58:48 +0000 (17:58 +0800)]
suppress and compress

6 years agoAdd atom rls rustfmt usage guide
Alex Butler [Tue, 29 May 2018 08:04:56 +0000 (09:04 +0100)]
Add atom rls rustfmt usage guide

6 years agoCargo update
Seiichi Uchida [Tue, 29 May 2018 23:44:53 +0000 (08:44 +0900)]
Cargo update

6 years agoDo not insert spaces around braces with empty body or multiple lines
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

6 years agoFix treating the delimiter right after repeat as repeat as well
Seiichi Uchida [Tue, 29 May 2018 23:17:50 +0000 (08:17 +0900)]
Fix treating the delimiter right after repeat as repeat as well

6 years agoAdd tests for #2749
Seiichi Uchida [Tue, 29 May 2018 23:09:56 +0000 (08:09 +0900)]
Add tests for #2749

6 years agoUpdate rustc-ap-* -> 149 (#2748)
Alex Butler [Tue, 29 May 2018 23:22:49 +0000 (00:22 +0100)]
Update rustc-ap-* -> 149 (#2748)

6 years agoMerge pull request #2745 from alexheretic/master
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

6 years agoAdd mercy for devs that run `cargo test` without building
Alex Butler [Mon, 28 May 2018 23:38:47 +0000 (00:38 +0100)]
Add mercy for devs that run `cargo test` without building

6 years agoUpdate rustc-ap-* -> 148
Alex Butler [Mon, 28 May 2018 22:41:08 +0000 (23:41 +0100)]
Update rustc-ap-* -> 148

6 years ago0.8.2
Nick Cameron [Sun, 27 May 2018 23:47:21 +0000 (11:47 +1200)]
0.8.2

6 years agoMake Range public
Nick Cameron [Sun, 27 May 2018 23:30:58 +0000 (11:30 +1200)]
Make Range public

0.8.1

6 years ago0.8.0
Nick Cameron [Sun, 27 May 2018 23:23:14 +0000 (11:23 +1200)]
0.8.0

6 years agoFIXME for <-
Nick Cameron [Sun, 27 May 2018 23:15:15 +0000 (11:15 +1200)]
FIXME for <-

6 years agoUpgrade again
Nick Cameron [Sun, 27 May 2018 23:08:38 +0000 (11:08 +1200)]
Upgrade again

6 years agoUpgrade rustc-ap-syntax
Nick Cameron [Sun, 27 May 2018 22:57:13 +0000 (10:57 +1200)]
Upgrade rustc-ap-syntax

6 years agoMerge pull request #2742 from topecongiro/travis-remove-stdsimd-from-allow-failure
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

6 years agoMerge pull request #2739 from thibaultdelor/fixWindowsTest
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

6 years agoRemove stdsimd from allow-failure crates
topecongiro [Sun, 27 May 2018 22:12:32 +0000 (07:12 +0900)]
Remove stdsimd from allow-failure crates

6 years agoMerge pull request #2733 from topecongiro/issue-2727
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

6 years agoCargo update
topecongiro [Sun, 27 May 2018 22:07:46 +0000 (07:07 +0900)]
Cargo update

6 years agoMerge pull request #2735 from Pazzaz/string-changes
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

6 years agoAdd a comment to describe hack
topecongiro [Sun, 27 May 2018 21:44:52 +0000 (06:44 +0900)]
Add a comment to describe hack

6 years agoFix test failing on windows due to crlf
Tibo [Sat, 26 May 2018 17:15:26 +0000 (03:15 +1000)]
Fix test failing on windows due to crlf