Stéphane Campinas
a4d1469baf
removed comment with default: rustfmt-indent_style
2018-06-27 01:35:53 +02:00
Nick Cameron
1cca758d4d
Merge pull request #2807 from topecongiro/raw-identifiers
...
Handle raw identifiers
2018-06-26 08:24:34 +12:00
Seiichi Uchida
eb168f608a
Add more tests
2018-06-25 23:41:44 +09:00
Seiichi Uchida
3027c21371
Handle raw identifiers
2018-06-25 23:36:45 +09:00
Seiichi Uchida
3871988dfa
Add a test for raw identifiers
2018-06-25 23:36:37 +09:00
Nick Cameron
ca1c13a896
Merge pull request #2804 from Mike-Baker/mb-strip-vert-in-match-arms
...
Strip leading `|` in match arm patterns
2018-06-25 21:02:24 +12:00
Nick Cameron
0877517eb2
Merge pull request #2806 from topecongiro/rustc-ap-syntax
...
Update rustc-ap-* to 174.0.0
2018-06-25 20:59:31 +12:00
topecongiro
fa1978882b
Add a test for #2791
...
Closes #2791 .
2018-06-25 15:27:09 +09:00
topecongiro
e5e1e0cea8
Fix compile errors from breaking changes in libsyntax
...
cc https://github.com/rust-lang/rust/pull/48149 .
2018-06-25 15:24:00 +09:00
topecongiro
ceda3679cc
Cargo update
...
Update rustc-ap-* to 174.0.0.
2018-06-25 13:58:00 +09:00
Mike Baker
1d4b988414
Strip leading |
in match arm patterns
...
This addresses issue #2621
This commit turns out to be a partial revert of
ea3c01e337
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
2018-06-25 00:53:15 +01:00
Nick Cameron
87edd75ecf
TODO -> FIXME
...
Or just delete
Closes #25
2018-06-22 14:42:27 +12:00
Nick Cameron
5c1884eacf
Merge pull request #2799 from lo48576/fix/config-doc
...
Remove wrong "(default)" from `Configurations.md`
2018-06-21 15:21:23 +12:00
YOSHIOKA Takuma
9212ae7d02
Remove wrong "(default)"
...
`blank_lines_upper_bound` has default value `1`, not `2`.
2018-06-21 11:42:09 +09:00
Nick Cameron
1ead31ae9d
Merge pull request #2795 from jechase/issue-2794
...
Add test and fix for #2794
2018-06-20 10:35:16 +12:00
Nick Cameron
fb5513564e
Merge pull request #2785 from wada314/issue-2728
...
Fix #2728 .
2018-06-20 10:32:46 +12:00
Josh Chase
ee5ff2d9e8
Add flag to the ListFormatting struct for nested imports
2018-06-19 12:13:35 -04:00
Josh Chase
2077855e00
Remove NestedImport tactic
2018-06-19 12:13:26 -04:00
Josh Chase
ea540651b7
Switch to comments for rustfmt config
2018-06-19 09:30:50 -04:00
Shohei Wada
036244cdce
Fix #2728 .
2018-06-19 20:51:49 +09:00
Nick Cameron
488e6fda12
Remove some unnecessary pub
s
2018-06-19 14:36:50 +12:00
Nick Cameron
261238ea51
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
2018-06-19 13:28:27 +12:00
Nick Cameron
a1c5c46986
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
2018-06-19 10:40:21 +12:00
Nick Cameron
75d46b1e12
Merge pull request #2788 from gnzlbg/test_check_fmt
...
test cargo fmt --all -- --check returns success after formatting
2018-06-19 10:12:06 +12:00
Josh Chase
4565d41790
Add test for #2794
2018-06-18 12:51:19 -04:00
gnzlbg
cf1164ee7d
do not fix chalk
2018-06-18 10:43:07 +02:00
Nick Cameron
46601a3435
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
2018-06-18 20:17:07 +12:00
gnzlbg
dda964d0be
fix chalk build
2018-06-18 10:04:21 +02:00
gnzlbg
968bcad422
rust-semverver build properly
2018-06-18 09:50:20 +02:00
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