K.J. Valencik
1fb172f989
LineOverflow: Count tabs as tab_spaces when measuring line length for overflow
2018-01-19 12:18:25 -05:00
Seiichi Uchida
e0e3e22248
0.3.6
2018-01-18 18:56:46 +09:00
Nick Cameron
30ba763c77
Merge pull request #2371 from topecongiro/issue-2370
...
Do not panic when special macros have less args than expected
2018-01-18 15:19:41 +13:00
Seiichi Uchida
298f29a57d
Do not panic when special macros have less args than expected
2018-01-18 00:50:16 +09:00
Seiichi Uchida
c87bd9e92e
Merge pull request #2367 from Stinners/range_binopts
...
Fixing binop_separator="Back" for ranges (Issue #2364 )
2018-01-16 17:52:09 +09:00
Seiichi Uchida
88cac558d9
Merge pull request #2366 from davidalber/restore-characters
...
Restoring accidentally-removed characters
2018-01-16 17:51:37 +09:00
David Alber
790611cd82
Restoring characters accidentally removed in bbe4b380
2018-01-15 20:57:28 -08:00
Chris Stinson
4c4e079613
Fixing binop_separator="Back" for ranges
...
Hardcoded Separator::Place=Front in call to rewrite_pair for range
caused binop_separator="Back" to be hendled incorrectly
Fixed rewrite_pair call and the example in Configuration.md showing
the faulty behaviour
2018-01-16 17:50:20 +13:00
Nick Cameron
13a0bb9158
Merge pull request #2361 from davidalber/fix-binop-separator-back-snippet
...
Getting `binop_separator="Back"` snippet in Configurations.md to pass
2018-01-16 13:01:02 +13:00
David Alber
bbe4b380c3
Getting binop_separator="Back"
to pass
2018-01-15 10:47:35 -08:00
Seiichi Uchida
fa782303a6
0.3.5
2018-01-15 21:34:41 +09:00
Seiichi Uchida
6af94c3188
Merge pull request #2363 from davidalber/reword-config-note
...
Rewording configuration note
2018-01-15 20:46:22 +09:00
David Alber
49f418b838
Rewording configuration note
2018-01-15 01:41:11 -08:00
Nick Cameron
74a957e80f
Merge pull request #2357 from topecongiro/issue-2342
...
Put attributes and struct fields on different line by default
2018-01-12 17:32:55 +13:00
Nick Cameron
a7d1d1da0e
Merge pull request #2355 from topecongiro/hide-parse-error-format-snippet
...
Hide parse error in format_snippet()
2018-01-12 17:31:43 +13:00
Nick Cameron
b356fc06f7
Merge pull request #2352 from topecongiro/issue-2337
...
Break after colon if static item does not fit in a single line
2018-01-12 17:31:12 +13:00
Nick Cameron
09e44b22f2
Merge pull request #2351 from topecongiro/issue-2256
...
Use correct BytePos when recovering comments on removed import
2018-01-12 17:30:27 +13:00
Nick Cameron
be0000380b
Merge pull request #2350 from topecongiro/issue-2324
...
Issue 2324
2018-01-12 17:27:45 +13:00
Seiichi Uchida
41b14b640a
Merge pull request #2353 from davidalber/merge-print-diff
...
Consolidating the logic for printing output
2018-01-12 08:26:42 +09:00
Seiichi Uchida
1abbd74a7f
Merge pull request #2358 from PSeitz/master
...
case insensitive FIXME and TODO
2018-01-12 08:26:14 +09:00
David Alber
9f5f9d2250
Consolidating the logic for printing output
2018-01-11 08:02:57 -08:00
Pascal Seitz
2e82ad8c36
case insensitive FIXME and TODO
2018-01-11 11:04:28 +01:00
Seiichi Uchida
fbbaab8051
Update changelog
2018-01-11 17:24:35 +09:00
Seiichi Uchida
2420d346c5
Put attributes and struct fields on different line
2018-01-11 16:57:12 +09:00
Seiichi Uchida
6e05ca87b0
Add a test for #2343 and update tests
2018-01-11 16:53:13 +09:00
Seiichi Uchida
279acda4c4
Remove same_line_attributes config option
2018-01-11 16:52:28 +09:00
Seiichi Uchida
cf4ab38f67
Hide parse error in format_snippet()
2018-01-11 15:19:23 +09:00
Nick Cameron
3e29fe3330
Use published versions of libsyntax and librustc_errors
...
Rather than the versions shipping with the compiler. These are still unstable,
so nightly is still required, but we can control when we update so breakage should
happen less often.
2018-01-11 18:21:35 +13:00
Nick Cameron
1ced6d1037
Minor refactoring in macros.rs
2018-01-11 17:40:05 +13:00
Seiichi Uchida
eaab51db2e
Break after colon if static item does not fit in a single line
2018-01-10 23:23:42 +09:00
Seiichi Uchida
949708f617
Use correct BytePos when recovering comments on removed import
2018-01-10 21:30:41 +09:00
Seiichi Uchida
1e7ff38c2d
Add a test for #2256
2018-01-10 21:30:13 +09:00
Seiichi Uchida
727f7b08f2
Fix error message printing wrong file names
...
The error messsages from `self_test` does not display correct file names
(it just prints `src/lib.rs` for every file). This commit fixes it.
2018-01-10 17:17:18 +09:00
Seiichi Uchida
cb0b366b38
Cargo fmt
2018-01-10 17:17:06 +09:00
Seiichi Uchida
590857db37
Reformat a nested function call with a single newline using larger budget
2018-01-10 17:15:02 +09:00
Seiichi Uchida
60256b7f3d
Add a test for #2324
2018-01-10 17:14:50 +09:00
Seiichi Uchida
631bf68037
Merge pull request #2349 from davidalber/configurations-failure-message
...
Modifying failure messages to be consistent with mismatch message
2018-01-10 16:08:44 +09:00
Seiichi Uchida
2744190512
Merge pull request #2348 from davidalber/remove-unused
...
Removing unused name
2018-01-10 16:08:16 +09:00
David Alber
d981fb89c0
Removing unused name
2018-01-09 19:56:46 -08:00
David Alber
873abf01b5
Modifying failure messages to be consistent with mismatch message
2018-01-09 08:36:24 -08:00
Nick Cameron
d60a6958f8
Merge pull request #2292 from davidalber/configurations-checking
...
Configurations checking
2018-01-09 18:39:15 +13:00
David Alber
85ccb98469
Adding test to verify code block idempotency in Configurations.md
2018-01-04 00:01:18 -08:00
Nick Cameron
91a332483b
Merge pull request #2316 from topecongiro/issue-2315
...
Remove trailing comma from extern items snippet before comparing
2018-01-04 17:49:47 +13:00
Nick Cameron
fad9076ec7
Merge pull request #2336 from vishalsodani/master
...
Fix #2300
2018-01-04 17:31:02 +13:00
Vishal Sodani
3345b00952
Fix #2300
2018-01-04 09:50:45 +05:30
Nick Cameron
e343aa24b3
Merge pull request #2332 from topecongiro/impl-and-trait
...
Fix up formatting bugs in impl and trait
2018-01-04 16:51:56 +13:00
topecongiro
405360a3fd
Refactoring: use methods from libsyntax attr module
2018-01-04 12:49:37 +09:00
topecongiro
75cb236711
Compare extern crate items with its name instead of span
...
When we use span, bugs easily sneak in.
2018-01-04 12:49:37 +09:00
topecongiro
19d6a3c786
Put the opening brace of impl on the next line
...
We put the opening brace on the next line if the following conditions hold:
1. the result before '{' ends with comments or contains newline
2. the last line of the result before '{' is not extendable (i.e. consists of
'>' and whitespaces).
2018-01-04 12:46:55 +09:00
topecongiro
c355f3854c
Use correct budget when rewriting generics of trait
2018-01-04 12:46:05 +09:00