Commit Graph

4573 Commits

Author SHA1 Message Date
Stéphane Campinas
84c2356590 handle unicode chars in closures (#3632)
The `NotUnicode` branch was unecessarily put on a new line, although it
was within max width:

```diff
 fn baz() {
     let our_error_b = result_b_from_func.or_else(|e| match e {
         NotPresent => Err(e).chain_err(|| "env var wasn't provided"),
-        NotUnicode(_) => Err(e).chain_err(|| "env var was very very very bork文字化ã"),
+        NotUnicode(_) => {
+            Err(e).chain_err(|| "env var was very very very bork文字化ã")
+        }
     });
 }
```
2019-06-17 08:53:17 +09:00
Caleb Cartwright
944fc57e10 tests: ensure min number of system/idempotent tests ran (#3629) 2019-06-16 23:47:22 +09:00
Caleb Cartwright
aa0c9dd212 tests: add normalize_doc_attributes config tests (#3630) 2019-06-16 23:46:25 +09:00
Stéphane Campinas
4b102fde2c
Merge pull request #3628 from topecongiro/issue-3627
Fix is_subpath
2019-06-14 14:07:07 +02: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
Stéphane Campinas
71fa7946a1 Add CHANGELOG entry for the 1.3.0 release (#3612) 2019-06-10 23:49:36 +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
788a4cbe4f
Add a test for #3493 2019-06-08 14:52:49 +09:00
Marcel Hellwig
eea8af0183 removed bitrig support (#3608)
bitrig support has been removed (by me) in https://github.com/rust-lang/rust/pull/60775
2019-06-07 16:56:30 +09: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
Seiichi Uchida
19220942d3
Merge pull request #3596 from rchaser53/issue-3595
add tests for issue-3595
2019-05-30 23:07:09 +09:00
rchaser53
0c30bd3b47 add tests for issue-3595 2019-05-30 21:03:29 +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
1c1b4f76bd Add a test for #3583 2019-05-28 00:03:42 +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
topecongiro
264417e10d Add tests for trait aliases with where clauses 2019-05-26 21:14:59 +09:00
Seiichi Uchida
1b027464e2
Merge pull request #3582 from sphynx/master
Use structopt for rustfmt-format-diff arguments parsing
2019-05-26 16:58:13 +09:00
Ivan Veselov
8443262781 Use structopt for rustfmt-format-diff arguments parsing 2019-05-23 22:59:26 +01:00
Seiichi Uchida
e0664662b4
Update the documentation of ignore (#3580) 2019-05-23 09:43:43 +09:00
Stéphane Campinas
0c05a21b3a Document some additional points about maintaining rustfmt (#3579) 2019-05-22 22:48:40 +09: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
Seiichi Uchida
2787138936
Merge pull request #3569 from sphynx/master
Use structopt for command line arguments parsing in cargo-fmt
2019-05-22 06:58:39 +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
topecongiro
2445f0ea76 Add a test for #3575 2019-05-22 00:10:35 +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
Seiichi Uchida
530086046f
Merge pull request #3573 from scampi/issue-3525
Update changelogs
2019-05-21 11:42:55 +09:00
Stéphane Campinas
5bcaac6b38
changelog for 1.2.2 2019-05-20 23:46:00 +02:00