Stéphane Campinas
1f06a8b361
fix extraction of missing comments when rewriting an empty where clause ( #3663 )
2019-06-30 12:19:24 +09:00
Stéphane Campinas
b6f7f24915
Merge pull request #3661 from calebcartwright/associated-type-bounds
...
fix handling on associated type bounds
2019-06-29 21:10:48 +02:00
calebcartwright
d9e42aea74
tests: add tests for assoscaited_type_bounds fix
2019-06-29 10:11:20 -05:00
Caleb Cartwright
1ee51a4125
Add support for windows-style paths in ignore patterns ( #3633 )
2019-06-29 15:51:27 +09:00
calebcartwright
731f7d5200
fix: handling of associated type bounds
2019-06-28 16:15:42 -05:00
Nikhil Benesch
e0e2f0db53
Don't panic on license check errors ( #3655 )
...
Without this case, an ErrorKind::LicenseCheck results in a panic:
thread 'main' panicked at 'internal error: entered unreachable code', src/tools/rustfmt/src/formatting.rs:320:18
N.B.: errors of this type are only raised when the configuration file
contains `license_tempate_path = "TEMPLATE_FILE"`.
2019-06-26 10:51:11 +09:00
Caleb Cartwright
c955b5908e
fix: run in sub dirs/workspace member dirs ( #3652 )
2019-06-25 23:15:33 +09:00
rChaser53
9986b9d011
fix internal error for long closure types ( #3653 )
2019-06-25 23:14:19 +09:00
Nootan Ghimire
561653326d
Add newline after help text ( #3650 )
2019-06-25 11:44:14 +09:00
rChaser53
26d370e9e5
remove unreachable!() ( #3646 )
2019-06-23 16:24:40 +09:00
rChaser53
5b0ce0ed12
avoid not to truncate necessary chars ( #3640 )
2019-06-23 14:32:14 +09:00
Seiichi Uchida
1d19a08ed4
Format the last expression-statement as expression ( #3631 )
2019-06-17 08:53:39 +09:00
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