topecongiro
a0206f53d2
Add a test for #2782
2018-07-01 10:40:47 +09:00
topecongiro
5a3640da69
Return the trimmed original snippet when formatting macro def failed
2018-07-01 09:59:53 +09:00
topecongiro
669a8bcf82
Add a test for #2721
2018-07-01 09:59:45 +09:00
Nick Cameron
888abbb0ec
Merge pull request #2820 from scampi/defaults
...
[wip] remove some defaults
2018-07-01 10:57:31 +12:00
Nick Cameron
a5b55e2a75
Merge pull request #2819 from topecongiro/duplicated-paren
...
Avoid inserting the closing paren after tuple struct containing parentheses and a where clause
2018-07-01 10:55:03 +12:00
Stéphane Campinas
0385c2e6bc
reverted some defaults for tests that are fixing a specific issue
2018-06-30 17:04:50 +02:00
Stéphane Campinas
f7a25a1177
warn on use of default value for an option
2018-06-30 17:03:18 +02:00
topecongiro
359c31d422
Cargo update
...
Update `rustc-ap-*` to 180.0.0.
2018-06-30 21:36:38 +09:00
topecongiro
57a6cae49f
Fix span bug when searching for the closing paren
2018-06-30 19:21:15 +09:00
topecongiro
008aa88d6e
Add tests for #2818
2018-06-30 19:20:47 +09:00
topecongiro
bc16d8864a
Fix compile error from breaking changes in libsyntax
2018-06-30 15:53:28 +09:00
topecongiro
eb1819d71e
Cargo update
2018-06-30 15:53:22 +09:00
Nick Cameron
8298f258f8
Merge pull request #2814 from topecongiro/rustc-ap-syntax
...
Cargo update
2018-06-28 21:52:55 +12:00
Seiichi Uchida
cc2afeca9e
Fix compile errors from breaking changes
2018-06-28 16:26:10 +09:00
Seiichi Uchida
dd3e1d751f
Cargo update
...
Update `rustc-ap-*` to 177.0.0.
2018-06-28 16:10:49 +09:00
Seiichi Uchida
2e8c975e17
Merge pull request #2809 from nrc/formatting
...
Some formatting fixes
2018-06-28 12:30:51 +09:00
Seiichi Uchida
d325323285
Merge pull request #2811 from bemeurer/master
...
Fixed typo Yess -> Yes
2018-06-28 12:19:03 +09:00
Bernardo Meurer
3681199020
Fixed typo Yess -> Yes
2018-06-27 18:27:20 -07:00
Stéphane Campinas
f8f9457e20
unecessary use of rustfmt-normalize_comments comment
2018-06-27 15:28:33 +02:00
Stéphane Campinas
a420ac2e3c
formatting
2018-06-27 15:28:32 +02:00
Stéphane Campinas
ad27384cc2
removed comment with default: rustfmt-remove_nested_parens
2018-06-27 15:28:32 +02:00
Stéphane Campinas
0a2aa6526e
removed comment with default: rustfmt-reorder_modules
2018-06-27 15:28:32 +02:00
Stéphane Campinas
95d71899f7
removed comment with default: rustfmt-imports_indent
2018-06-27 15:28:32 +02:00
Stéphane Campinas
872ed58ffc
removed comment with default: rustfmt-reorder_imports
2018-06-27 15:28:32 +02:00
Stéphane Campinas
0ee452bd2a
removed comment with default: rustfmt-format_strings
2018-06-27 01:36:02 +02:00
Stéphane Campinas
92aecc37fe
removed comment with default: rustfmt-control_brace_style
2018-06-27 01:36:02 +02:00
Stéphane Campinas
4c65bd1c46
removed comment with default: rustfmt-brace_style
2018-06-27 01:36:02 +02:00
Stéphane Campinas
fe0ac6742e
removed comment with default: rustfmt-max_width
2018-06-27 01:36:01 +02:00
Stéphane Campinas
87f72d4333
removed comment with default: rustfmt-error_on_line_overflow
2018-06-27 01:36:01 +02:00
Stéphane Campinas
5ad7325ada
removed comment with default: rustfmt-normalize_comments
2018-06-27 01:35:57 +02:00
Stéphane Campinas
a4d1469baf
removed comment with default: rustfmt-indent_style
2018-06-27 01:35:53 +02:00
Nick Cameron
3abebf95ce
Apply short function call heuristic to attributes
...
Closes #2620
2018-06-26 15:18:17 +12:00
Nick Cameron
42f03458dd
Refactor and fixup attribute formatting
...
Preserves trailing commas (except in derives where we follow function args).
Correctly uses `#` vs `#!` for derives.
Uses block indent for derives, fixes #2805 .
2018-06-26 15:18:17 +12:00
Nick Cameron
be4d37da4b
Indent a match guard if the pattern is multiline
...
Closes #2377
2018-06-26 15:18:17 +12: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
DevOrc
e133fc5106
add emit flag documentation
2018-06-19 14:36:10 -04:00