2862 Commits

Author SHA1 Message Date
Caleb Cartwright
944fc57e10 tests: ensure min number of system/idempotent tests ran (#3629) 2019-06-16 23:47:22 +09:00
Seiichi Uchida
a4eab17d7c
Fix is_subpath 2019-06-14 19:16:17 +09:00
Ruben Schmidmeister
dbac28b4b4 Use trait to abstract emit modes (#3616) 2019-06-13 06:59:20 +09:00
Stéphane Campinas
1cea171cef Improve handling of unicode characters (#3618) 2019-06-12 20:28:29 +09:00
Stéphane Campinas
04add0cd38 implement Display for enums with attribute config_type (#3621) 2019-06-12 20:20:42 +09:00
topecongiro
d33450247b
Rename config_proc_macro to rustfmt-config_proc_macro 2019-06-09 22:29:36 +09:00
Seiichi Uchida
0e3cf08ff1
Release 1.3.0 (#3611) 2019-06-09 21:28:57 +09:00
Seiichi Uchida
47a11cd516
Format modules defined in cfg_attr (#3604) 2019-06-09 09:20:39 +09:00
Seiichi Uchida
e71bffb008
Format modules defined inside cfg_if macro calls (#3600) 2019-06-08 18:47:18 +09:00
Stéphane Campinas
87565c42ce
Merge pull request #3607 from topecongiro/issue-3493
Ignore sub-modules when skip-children is used
2019-06-08 09:50:12 +02:00
topecongiro
dae63e98ce
Ignore sub-modules when skip-children is used 2019-06-07 14:55:41 +09:00
rChaser53
5607178d0a fix the bug add unwanted code to impl (#3601) (#3602) 2019-06-06 13:06:40 +09:00
Stéphane Campinas
e0459eb3fe inline the attribute with its item even with the macro_use attribute or when reorder_imports is disabled (#3598) 2019-06-05 00:14:12 +09:00
Seiichi Uchida
2244f326e6
Cargo update (#3559)
Update `rustc-ap-*` crates to 486.0.0.
2019-06-03 23:57:02 +09:00
Stéphane Campinas
e6b60a40d5 stabilise fn_args_density (#3581) 2019-06-03 22:26:48 +09:00
Stéphane Campinas
6d19a8c71d
Merge pull request #3586 from topecongiro/issue-3584
Format trait aliases with where clauses
2019-05-30 09:39:15 +02:00
rChaser53
fbd9f335f9 fix Erasing inner attributes in struct (#3593) 2019-05-30 07:31:48 +09:00
Stéphane Campinas
1c210eb3c6
Merge pull request #3589 from topecongiro/issue-3583
Catch panics from the parser while rewriting macro calls
2019-05-28 00:49:28 +02:00
topecongiro
36dd49ae5f Set macro_rewrite_failure to true on catching panic 2019-05-28 00:15:14 +09:00
topecongiro
f7cd789ebc Catch panics from the parser while rewriting macro calls 2019-05-28 00:03:50 +09:00
topecongiro
c1373b267b Format trait aliases with where clauses 2019-05-26 21:15:55 +09:00
topecongiro
95c2ad37e1 Refactor rewrite_where_clause 2019-05-26 21:15:38 +09:00
Ivan Veselov
8443262781 Use structopt for rustfmt-format-diff arguments parsing 2019-05-23 22:59:26 +01:00
Seiichi Uchida
a7d4ec92cb Implement Serialize on IgnoreList (#3565)
* Implement Serialize on IgnoreList

* Add a test for #3536
2019-05-22 09:41:57 +02:00
Seiichi Uchida
b5449ba785
Allow overflowing rhs of unit variant (#3566) 2019-05-22 10:51:19 +09:00
Seiichi Uchida
72ca0e5f2c
Merge pull request #3577 from topecongiro/issue-3575
Insert an empty line when normalizing `#[doc = ""]`
2019-05-22 10:49:12 +09:00
Seiichi Uchida
86dad6e3dd
Merge pull request #3576 from rchaser53/issue-3567
add the handling for vec! with paren inside macro
2019-05-22 07:00:07 +09:00
Ivan Veselov
a7afdeb9b8 Drop only the first occurrence of fmt while preparing CLI arguments 2019-05-21 16:36:53 +01:00
Ivan Veselov
32fbe75a4c Drop extra fmt command line argument provided by cargo 2019-05-21 16:36:53 +01:00
Ivan Veselov
ed073a9b7c Use structopt for command line arguments parsing in cargo-fmt 2019-05-21 16:36:53 +01:00
topecongiro
bdb72237a2 Insert an empty line when normalizing #[doc = ""] 2019-05-22 00:10:46 +09:00
rchaser53
bee1a32f26 add the handling for vec! with paren inside macro 2019-05-22 00:07:56 +09:00
rChaser53
0ef2144c82 not to avoid self (#3570) 2019-05-21 11:43:27 +09:00
Ruben Schmidmeister
1ba35fc9b5
Document DocCommentFormatter 2019-05-18 11:50:09 +02:00
Ruben Schmidmeister
11a68d313a
Pass string instead of Symbol to DocCommentFormatter 2019-05-18 11:47:54 +02:00
Ruben Schmidmeister
8d4cb6e783
Use peek() instead of checking indexes 2019-05-18 11:42:49 +02:00
Ruben Schmidmeister
9b98dd774e
Merge branch 'master' into normalize-multiline-doc-attributes 2019-05-18 11:27:35 +02:00
Ruben Schmidmeister
8b57668c33
Move macro to separate module 2019-05-17 16:13:46 +02:00
Ruben Schmidmeister
4745cec7f3
Re-use nightly channel macro 2019-05-17 16:07:49 +02:00
Ruben Schmidmeister
fd22c27c47
Allow tests to be run on nightly only 2019-05-17 15:58:01 +02:00
rchaser53
53142b486d use the span between the self_ty and left brace 2019-05-16 21:27:34 +09:00
rchaser53
bdf105245b fix Const generics are handled incorrectly 2019-05-16 13:22:25 +09:00
Seiichi Uchida
531b2d9136
Merge pull request #3535 from xiongmao86/issue3417
Try to solve issue 3417.
2019-05-16 11:12:56 +09:00
Ruben Schmidmeister
424193041f
Remove unnecessary comma 2019-05-15 18:29:04 +02:00
Ruben Schmidmeister
c84785d93c
Use raw strings 2019-05-15 18:17:48 +02:00
Ruben Schmidmeister
c724528bf9
Avoid unnecessary allocation 2019-05-15 17:39:43 +02:00
Ruben Schmidmeister
6a406a822d
Return iterator instead of collecting early 2019-05-14 20:38:28 +02:00
Ruben Schmidmeister
b875fe9485
Name field more verbosely
This makes the comment above it obsolete
2019-05-14 20:23:55 +02:00
Ruben Schmidmeister
3eb8e4d33c
Ignore unstable key when overriding config 2019-05-13 09:40:16 +02:00
Ruben Schmidmeister
4ac0d35ebb
Only run test on nightly 2019-05-12 23:03:48 +02:00