Nick Cameron
|
e95541c7d2
|
Make the import of Config pub
|
2017-12-28 10:08:27 +13:00 |
|
Marcus Klaas
|
656edbf0f0
|
Use std time
|
2017-12-27 16:34:09 +13:00 |
|
Marcus Klaas
|
dc356ffef7
|
Add rudimentary timing of parsing and formatting phases
|
2017-12-27 16:33:21 +13:00 |
|
Nick Cameron
|
9feb4988f2
|
Merge pull request #2310 from topecongiro/issue-2309
Do not give up rewriting struct field when attribute is long
|
2017-12-27 14:12:45 +13:00 |
|
Nick Cameron
|
a6244c2f58
|
Merge pull request #2311 from topecongiro/format-code-block
Format code block in comment
|
2017-12-27 13:32:14 +13:00 |
|
Seiichi Uchida
|
4604fea0a0
|
Refactoring
1. Cargo clippy
2. Run 'cargo fmt' with import reordering options set to `true`.
3. Factor out `rewrite_lifetime_param()`.
|
2017-12-25 00:13:59 +09:00 |
|
Seiichi Uchida
|
27167cbbaa
|
Format code block in comment
Closes #554.
Closes #1695.
|
2017-12-24 23:56:51 +09:00 |
|
Seiichi Uchida
|
f523ec58ab
|
Do not give up rewriting struct field when attribute is long
|
2017-12-24 13:57:29 +09:00 |
|
Seiichi Uchida
|
939a6c5820
|
Get rid of GenericsArg wrapper type
`GenericsArg` is basically identical to `ast::GenericParam`.
Just use the latter.
|
2017-12-24 00:29:59 +09:00 |
|
Seiichi Uchida
|
1ef6bccea3
|
Cargo fmt
Run 'cargo fmt' with the following setting:
```
reorder_imports = true
reorder_imports_in_group = true
```
|
2017-12-24 00:28:58 +09:00 |
|
Seiichi Uchida
|
0ef2b99b74
|
Remove workspace membership check
|
2017-12-23 12:24:58 +09:00 |
|
Seiichi Uchida
|
02bb1c8c97
|
Rustup to rustc 1.24.0-nightly (5165ee9e2 2017-12-22)
|
2017-12-23 11:58:19 +09:00 |
|
Nick Cameron
|
5725f41974
|
Merge pull request #2298 from davidalber/fix-2269
Adding --version to cargo-fmt
|
2017-12-22 21:55:07 +13:00 |
|
topecongiro
|
984ac100a4
|
Fix indent width bug when recovering comments
Using last_line_width() ignores the width of tab character ('\t').
|
2017-12-22 12:05:36 +09:00 |
|
Nick Cameron
|
de5683cf11
|
fix tests
|
2017-12-22 15:30:45 +13:00 |
|
Bastian Köcher
|
fa67631b32
|
Fixes compilation with rust version 2017-12-21
|
2017-12-22 02:52:22 +01:00 |
|
Nick Cameron
|
723b938057
|
Merge pull request #2291 from topecongiro/issue-2289
Take the width of block's prefix into account only once
|
2017-12-22 12:58:02 +13:00 |
|
Nick Cameron
|
23dfa827a7
|
Merge pull request #2295 from topecongiro/issue-2280
Make 'cargo fmt' formats every workspace member
|
2017-12-22 12:56:53 +13:00 |
|
Nick Cameron
|
72413c55b0
|
fix libsyntax fallout
|
2017-12-22 11:30:54 +13:00 |
|
David Alber
|
09d0ca4892
|
Using common execute rustfmt function
|
2017-12-20 23:24:28 -08:00 |
|
David Alber
|
f17556966c
|
Reusing status-handling function
|
2017-12-20 22:36:36 -08:00 |
|
David Alber
|
655022c42b
|
Factoring out status code values
|
2017-12-20 21:53:33 -08:00 |
|
David Alber
|
6aaed5b08f
|
Adding --version option to cargo-fmt
|
2017-12-20 21:48:59 -08:00 |
|
topecongiro
|
1d8619d49a
|
Fix wrong indentation on type alias
Use rewrite_assign_rhs() when rewriting type alias.
|
2017-12-21 09:58:13 +09:00 |
|
Seiichi Uchida
|
85ef4638b6
|
Make 'cargo fmt' formats every workspace member
|
2017-12-20 22:47:51 +09:00 |
|
topecongiro
|
366ff40ae7
|
Take the width of block's prefix into account only once
|
2017-12-20 15:44:11 +09:00 |
|
Seiichi Uchida
|
ccc487ade7
|
Do not put comment's line start and closer on the same line
|
2017-12-17 15:25:24 +09:00 |
|
Seiichi Uchida
|
81eb88c4c0
|
Respect leading whitespace in original comment when wrapping comment
|
2017-12-17 15:24:49 +09:00 |
|
topecongiro
|
3a98b5a5be
|
Format trait aliases
|
2017-12-15 13:47:52 +09:00 |
|
topecongiro
|
d60c2ec5d3
|
Add an initial support for trait aliases
|
2017-12-15 10:35:07 +09:00 |
|
Oliver Schneider
|
fad903fd14
|
Move from String to PathBuf where applicable
|
2017-12-15 10:26:19 +09:00 |
|
Nick Cameron
|
4ee7911f4b
|
Merge pull request #2271 from topecongiro/refactorings
Refactorings from cargo clippy etc.
|
2017-12-15 08:53:48 +13:00 |
|
Seiichi Uchida
|
7229b26f14
|
Do not print to stderr when parsing the toml file succeeded
|
2017-12-12 14:10:31 +09:00 |
|
Seiichi Uchida
|
efb68ee21a
|
Refactor write_snippet_inner()
|
2017-12-12 13:48:24 +09:00 |
|
Seiichi Uchida
|
516f15aba1
|
Cargo clippy
|
2017-12-12 13:48:12 +09:00 |
|
topecongiro
|
17154c30cb
|
Warn when there are unknown config options
|
2017-12-12 00:54:55 +09:00 |
|
topecongiro
|
32804c1f09
|
Do not print usage when rustfmt failed
|
2017-12-12 00:54:37 +09:00 |
|
Nick Cameron
|
fc52a4d33f
|
Merge pull request #2173 from topecongiro/assignment-with-100-chars
Assignment whose lhs has 100 chars
|
2017-12-11 17:04:41 +13:00 |
|
Nick Cameron
|
644b60ad85
|
Merge pull request #2257 from topecongiro/error-on-line-overflow-strings
Add error_on_line_overflow_strings config option
|
2017-12-11 16:41:15 +13:00 |
|
Nick Cameron
|
3c08da3433
|
Merge pull request #2270 from topecongiro/issue-2260
Trim a trailing whitespace on empty line inside code block comment
|
2017-12-11 16:40:12 +13:00 |
|
Seiichi Uchida
|
3dd31e25bf
|
Use enumerate()
|
2017-12-11 11:50:11 +09:00 |
|
Seiichi Uchida
|
e45c0c4815
|
Rename error_on_unformatted_comments_or_strings to error_on_unformatted
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
d3ee7f3f06
|
Set error_on_unformatted_comments_or_strings to true when --error-on-unformatted
option is passed
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
93a75de18e
|
Print command line options in alphabetical order
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
1e982c66a0
|
Fix a typo
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
cbd3608c30
|
Organize command line options and start with upper case
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
d17168f4ba
|
Add error-on-unformatted command line option
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
aea19d5e33
|
Combine error_on_line_overflow_comments/strings
1. Rename to error_on_unformatted_comments_or_strings
2. Set the option to false by default.
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
4d9226ffee
|
Fix a typo
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
6c3de706ae
|
Make RichChar public
|
2017-12-11 11:48:17 +09:00 |
|