Gaëtan Cassiers
|
fc4483748c
|
Fix fn decl rewriting in case of generics
An opening paren in generics caused a false-positive detection of args
beginning. The result was the creation of comments with some code into
it.
|
2015-07-03 10:30:42 +02:00 |
|
Gaëtan Cassiers
|
163fbf62ee
|
Fix bugs in width computation
|
2015-07-03 02:55:43 +02:00 |
|
Marcus Klaas
|
2d4b4b856a
|
Format expressions with binary and unary operators
|
2015-07-02 22:44:55 +02:00 |
|
Marcus Klaas
|
482f200b0b
|
Update import list formatting
Include comments and sort items alphabetically.
|
2015-06-26 03:43:12 +02:00 |
|
Marcus Klaas
|
28f7bd4205
|
Fixup comment wrapping in lists
|
2015-06-24 21:14:08 +02:00 |
|
Marcus Klaas
|
9f3ab0b5fe
|
Format comments in struct literals
|
2015-06-24 01:11:29 +02:00 |
|
Marcus Klaas
|
0ef5db9496
|
Format tuple-like structs
|
2015-06-23 16:54:42 +02:00 |
|
Marcus Klaas
|
d7b49fd76c
|
Remove global mutable config to allow for concurrency
|
2015-06-23 13:26:04 +02:00 |
|
Nick Cameron
|
1488d5eadb
|
Merge pull request #90 from marcusklaas/empty-imports
Remove empty list imports
|
2015-06-22 17:32:55 -07:00 |
|
Gaëtan Cassiers
|
b7ead806f4
|
Use FromIterator implementation for Option
Combined with try_opt!, this avoid an explicit for loop or another macro.
|
2015-06-23 02:15:46 +02:00 |
|
Gaëtan Cassiers
|
ad658885d4
|
Comments for Rewrite
|
2015-06-23 02:15:46 +02:00 |
|
Gaëtan Cassiers
|
2161400c7d
|
Add a try_opt! macro for ease of work with Rewrite
|
2015-06-23 02:15:46 +02:00 |
|
Gaëtan Cassiers
|
c012d311c4
|
A basic impl of Rewrite for ast::Expr
|
2015-06-23 02:15:46 +02:00 |
|
Nick Cameron
|
c10bfecdc2
|
Merge pull request #114 from marcusklaas/rustup
Rustup
|
2015-06-22 15:36:20 -07:00 |
|
Gaëtan Cassiers
|
35c996054a
|
Use wrapping operations for bit-level functions
This handles a underflow panic on round_up_to_power_of_two(0).
|
2015-06-22 17:42:05 +02:00 |
|
Marcus Klaas
|
5924b83829
|
Rustup
|
2015-06-22 14:52:23 +02:00 |
|
Nick Cameron
|
b74cdb7b53
|
Merge pull request #109 from marcusklaas/fix-string-lit
Fix off-by-one errors in rewrite_string_lit
|
2015-06-16 09:59:24 +12:00 |
|
Marcus Klaas
|
74f050bb5a
|
Fix off-by-one bugs in rewrite_string_lit
Multi-line literals would typically have a character too many. Splitting of escape sequences also wasn't working correctly.
|
2015-06-15 21:37:04 +02:00 |
|
Marcus Klaas
|
b17c920e46
|
Deal with problematic characters in comments
|
2015-06-15 15:07:47 +02:00 |
|
Marcus Klaas
|
d335d04575
|
Implement checks for unnumbered TODOs and FIXMEs
|
2015-06-12 20:58:23 +02:00 |
|
Gaëtan Cassiers
|
4d6d0b81a7
|
Fix mod ordering + formatting
|
2015-06-08 20:23:24 +02:00 |
|
Gaëtan Cassiers
|
adedba45a8
|
Use impl_enum_decodable for SeparatorTactic
|
2015-06-08 19:40:22 +02:00 |
|
Marcus Klaas
|
13141e261b
|
Remove duplicate statement in make_comments_for_list
|
2015-06-04 15:05:50 +02:00 |
|
Marcus Klaas
|
227322ddba
|
Add macro for enum implementations of Decodable
|
2015-06-04 14:08:32 +02:00 |
|
Marcus Klaas
|
1ef7e23dd1
|
Move vertical mode override to write_list
|
2015-06-04 13:47:35 +02:00 |
|
Marcus Klaas
|
27d6558964
|
Remove empty list imports
|
2015-06-02 23:55:16 +02:00 |
|
Marcus Klaas
|
90bc40a111
|
Implement basic enum formatting
|
2015-06-02 15:52:07 +02:00 |
|
Nick Cameron
|
fb40a2796e
|
Merge pull request #85 from cassiersg/tuple
Implement reformat of tuple litterals
|
2015-05-31 20:11:10 +12:00 |
|
Gaëtan Cassiers
|
7a6b4db819
|
Handle tuples of length 1
|
2015-05-30 16:52:46 +02:00 |
|
Gaëtan Cassiers
|
38f421b764
|
fix : width available
|
2015-05-30 16:44:07 +02:00 |
|
Nick Cameron
|
90494132c2
|
Merge pull request #81 from tdudziak/issue_31
Optionally put the opening paren on the previous line for args (Issue #31)
|
2015-05-29 11:59:37 +12:00 |
|
Gaëtan Cassiers
|
092d6be368
|
Implement reformat of tuple litterals
|
2015-05-28 21:30:28 +02:00 |
|
Tomasz Dudziak
|
1bb3c9e555
|
Use config!(tab_spaces) instead of hardcoded 4 .
|
2015-05-26 09:31:16 +02:00 |
|
Tomasz Dudziak
|
21a0f1b787
|
Clarify indent calcs in compute_budget_for_args
|
2015-05-25 21:29:02 +02:00 |
|
Tomasz Dudziak
|
fdd7baeae9
|
Optionally put the opening paren on the previous line for args
|
2015-05-25 16:39:19 +02:00 |
|
Gaëtan Cassiers
|
113bdaa119
|
Fix #79
|
2015-05-25 13:22:10 +02:00 |
|
Nick Cameron
|
46818d405a
|
Struct literals
|
2015-05-25 19:14:20 +12:00 |
|
Nick Cameron
|
972f494e4e
|
Pref for comma on the last field
|
2015-05-25 17:14:39 +12:00 |
|
Nick Cameron
|
e7adf64155
|
Format structs
|
2015-05-25 17:07:55 +12:00 |
|
Gaëtan Cassiers
|
09bd4a74e4
|
Avoid dangling )
|
2015-05-24 23:46:02 +02:00 |
|
Gaëtan Cassiers
|
c1fc693c5e
|
syle correction
|
2015-05-24 23:35:40 +02:00 |
|
Gaëtan Cassiers
|
0baeca5829
|
Add rewrite for ExprParen
|
2015-05-24 19:57:13 +02:00 |
|
Nick Cameron
|
6a5ef17eb1
|
Add config.rs which I forgot for the last commit
Closes #73
|
2015-05-23 22:25:36 +12:00 |
|
Nick Cameron
|
1a09a6d00a
|
Use config file for constants
|
2015-05-23 17:53:53 +12:00 |
|
Nick Cameron
|
aa6f7e8d3c
|
Add default.toml and modify the build system for it
|
2015-05-23 15:28:41 +12:00 |
|
Alex HotShot Newman
|
2fbb445b67
|
Remove old box syntax
|
2015-05-20 11:20:15 -07:00 |
|
Marcus Klaas
|
4aa3518703
|
Format required methods on traits
|
2015-05-12 02:37:05 +02:00 |
|
Nick Cameron
|
6b1494885c
|
Merge pull request #48 from oli-obk/newlines
handle windows newlines
|
2015-05-12 10:33:42 +12:00 |
|
Nick Cameron
|
3b383a4c22
|
Merge branch 'single-import' of https://github.com/mattyhall/rustfmt into mattyhall-single-import
Rebased:
src/imports.rs
|
2015-05-12 10:03:25 +12:00 |
|
Nick Cameron
|
e2a5d94e3f
|
Merge pull request #68 from marcusklaas/import-breaks
Keep import lists on a single line when possible
|
2015-05-12 09:39:22 +12:00 |
|