]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoFix most recenty nightly breakage due to removed await! support (#3722)
Igor Matuszewski [Fri, 2 Aug 2019 14:54:39 +0000 (16:54 +0200)]
Fix most recenty nightly breakage due to removed await! support (#3722)

4 years agofix underscore in slice patterns are removed (#3719)
rChaser53 [Wed, 31 Jul 2019 14:55:58 +0000 (23:55 +0900)]
fix underscore in slice patterns are removed (#3719)

4 years agoRelease v1.4.2
topecongiro [Wed, 31 Jul 2019 02:10:49 +0000 (11:10 +0900)]
Release v1.4.2

4 years agoUpdate CHANGELOG for 1.4.2
topecongiro [Wed, 31 Jul 2019 02:06:16 +0000 (11:06 +0900)]
Update CHANGELOG for 1.4.2

4 years agoBump rustfmt-config_proc_macro to min v0.1.2 (#3715)
Igor Matuszewski [Wed, 31 Jul 2019 02:05:08 +0000 (04:05 +0200)]
Bump rustfmt-config_proc_macro to min v0.1.2 (#3715)

4 years agoRelease v1.4.1
topecongiro [Tue, 30 Jul 2019 05:39:07 +0000 (14:39 +0900)]
Release v1.4.1

4 years agoUpdate CHANGELOG for 1.4.1
topecongiro [Tue, 30 Jul 2019 05:38:54 +0000 (14:38 +0900)]
Update CHANGELOG for 1.4.1

4 years agofix to build with rustc 1.38.0-nightly (4560cb830 2019-07-28) (#3712)
rChaser53 [Tue, 30 Jul 2019 05:32:38 +0000 (14:32 +0900)]
fix to build with rustc 1.38.0-nightly (4560cb830 2019-07-28) (#3712)

4 years agoRelease 1.4.0
topecongiro [Sun, 28 Jul 2019 20:56:39 +0000 (05:56 +0900)]
Release 1.4.0

4 years agoUpdate CHANGELOG
topecongiro [Sun, 28 Jul 2019 20:56:29 +0000 (05:56 +0900)]
Update CHANGELOG

4 years agoadd test for handling double semicolon (#3706)
rChaser53 [Sun, 28 Jul 2019 20:56:34 +0000 (05:56 +0900)]
add test for handling double semicolon (#3706)

4 years agoUpdate rustc-ap-* crates to 541.0.0 (#3707)
Seiichi Uchida [Sun, 28 Jul 2019 20:52:45 +0000 (05:52 +0900)]
Update rustc-ap-* crates to 541.0.0 (#3707)

4 years agoUpdate CHANGELOG.md
Seiichi Uchida [Tue, 23 Jul 2019 09:33:18 +0000 (18:33 +0900)]
Update CHANGELOG.md

4 years agoSimplify code around visit_fn (#3698)
Seiichi Uchida [Sun, 21 Jul 2019 04:26:41 +0000 (13:26 +0900)]
Simplify code around visit_fn (#3698)

4 years agoImplement closing-block procedure without relying on missed_span module (#3691)
Seiichi Uchida [Wed, 17 Jul 2019 14:07:12 +0000 (23:07 +0900)]
Implement closing-block procedure without relying on missed_span module (#3691)

4 years ago#3665: Implemented (#3689)
Michele d'Amico [Wed, 17 Jul 2019 00:40:33 +0000 (02:40 +0200)]
#3665: Implemented (#3689)

4 years agoAdd #[ignore] to test that runs external process (#3690)
Seiichi Uchida [Tue, 16 Jul 2019 10:36:23 +0000 (19:36 +0900)]
Add #[ignore] to test that runs external process (#3690)

4 years agoUpdate CHANGELOG.md
Seiichi Uchida [Mon, 15 Jul 2019 15:14:19 +0000 (00:14 +0900)]
Update CHANGELOG.md

4 years agoRelease 1.3.3
topecongiro [Mon, 15 Jul 2019 13:47:10 +0000 (22:47 +0900)]
Release 1.3.3

4 years agoUpdate CHANGELOG.md
topecongiro [Mon, 15 Jul 2019 13:44:44 +0000 (22:44 +0900)]
Update CHANGELOG.md

4 years agoFix bugs related to file-lines (#3684)
Seiichi Uchida [Mon, 15 Jul 2019 13:41:56 +0000 (22:41 +0900)]
Fix bugs related to file-lines (#3684)

4 years agofix print-config minimal option (#3687)
Stéphane Campinas [Mon, 15 Jul 2019 11:58:54 +0000 (13:58 +0200)]
fix print-config minimal option (#3687)

4 years agoMerge pull request #3683 from calebcartwright/accept-manifest-path
Stéphane Campinas [Sun, 14 Jul 2019 21:46:59 +0000 (23:46 +0200)]
Merge pull request #3683 from calebcartwright/accept-manifest-path

Add --manifest-path support to cargo fmt

4 years agorefactor: simplify manifest_path option checks
calebcartwright [Sun, 14 Jul 2019 14:56:07 +0000 (09:56 -0500)]
refactor: simplify manifest_path option checks

4 years agoMerge remote-tracking branch 'upstream/master' into accept-manifest-path
calebcartwright [Sun, 14 Jul 2019 14:30:11 +0000 (09:30 -0500)]
Merge remote-tracking branch 'upstream/master' into accept-manifest-path

4 years agofix 'extra comma inserted due to comment' (#3677)
rChaser53 [Sun, 14 Jul 2019 13:16:47 +0000 (22:16 +0900)]
fix 'extra comma inserted due to comment' (#3677)

4 years agoFix using --help, --verbose, etc. (#3620)
Eric Huss [Sun, 14 Jul 2019 01:25:53 +0000 (18:25 -0700)]
Fix using --help, --verbose, etc. (#3620)

4 years agoExtract configuration snippet tests into own module (#3667)
Ruben Schmidmeister [Sun, 14 Jul 2019 01:22:18 +0000 (03:22 +0200)]
Extract configuration snippet tests into own module (#3667)

* Extract configuration snippet tests into own module

* Move helper function outside of test function

4 years agofeat: add --manifest-path support to cargo fmt
calebcartwright [Sat, 13 Jul 2019 01:59:29 +0000 (20:59 -0500)]
feat: add --manifest-path support to cargo fmt

4 years agoRelease 1.3.2
topecongiro [Sat, 6 Jul 2019 05:22:30 +0000 (14:22 +0900)]
Release 1.3.2

4 years agoUpdate CHANGELOG.md
topecongiro [Sat, 6 Jul 2019 05:22:19 +0000 (14:22 +0900)]
Update CHANGELOG.md

4 years agoDo not consider macro-origin await as chain item (#3671)
Seiichi Uchida [Sat, 6 Jul 2019 05:17:53 +0000 (14:17 +0900)]
Do not consider macro-origin await as chain item (#3671)

4 years agofix: handling of --all when dep name and dir name differ (#3664)
Caleb Cartwright [Sat, 6 Jul 2019 05:17:35 +0000 (00:17 -0500)]
fix: handling of --all when dep name and dir name differ (#3664)

5 years agoRelease 1.3.1
topecongiro [Sun, 30 Jun 2019 04:12:13 +0000 (13:12 +0900)]
Release 1.3.1

5 years agoUpdate rustfmt-config_proc_macro to 0.1.2
topecongiro [Sun, 30 Jun 2019 04:10:16 +0000 (13:10 +0900)]
Update rustfmt-config_proc_macro to 0.1.2

5 years agoUpdate rustfmt-config_proc_macro to 0.1.1
topecongiro [Sun, 30 Jun 2019 04:04:08 +0000 (13:04 +0900)]
Update rustfmt-config_proc_macro to 0.1.1

5 years agofix extraction of missing comments when rewriting an empty where clause (#3663)
Stéphane Campinas [Sun, 30 Jun 2019 03:19:24 +0000 (05:19 +0200)]
fix extraction of missing comments when rewriting an empty where clause (#3663)

5 years agoMerge pull request #3661 from calebcartwright/associated-type-bounds
Stéphane Campinas [Sat, 29 Jun 2019 19:10:48 +0000 (21:10 +0200)]
Merge pull request #3661 from calebcartwright/associated-type-bounds

fix handling on associated type bounds

5 years agotests: add tests for assoscaited_type_bounds fix
calebcartwright [Sat, 29 Jun 2019 15:11:20 +0000 (10:11 -0500)]
tests: add tests for assoscaited_type_bounds fix

5 years agoAdd support for windows-style paths in ignore patterns (#3633)
Caleb Cartwright [Sat, 29 Jun 2019 06:51:27 +0000 (01:51 -0500)]
Add support for windows-style paths in ignore patterns (#3633)

5 years agofix: handling of associated type bounds
calebcartwright [Fri, 28 Jun 2019 21:15:42 +0000 (16:15 -0500)]
fix: handling of associated type bounds

5 years agoDon't panic on license check errors (#3655)
Nikhil Benesch [Wed, 26 Jun 2019 01:51:11 +0000 (21:51 -0400)]
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"`.

5 years agofix: run in sub dirs/workspace member dirs (#3652)
Caleb Cartwright [Tue, 25 Jun 2019 14:15:33 +0000 (09:15 -0500)]
fix: run in sub dirs/workspace member dirs (#3652)

5 years agofix internal error for long closure types (#3653)
rChaser53 [Tue, 25 Jun 2019 14:14:19 +0000 (23:14 +0900)]
fix internal error for long closure types (#3653)

5 years agoAdd newline after help text (#3650)
Nootan Ghimire [Tue, 25 Jun 2019 02:44:14 +0000 (12:44 +1000)]
Add newline after help text (#3650)

5 years agoremove unreachable!() (#3646)
rChaser53 [Sun, 23 Jun 2019 07:24:41 +0000 (16:24 +0900)]
remove unreachable!() (#3646)

5 years agoavoid not to truncate necessary chars (#3640)
rChaser53 [Sun, 23 Jun 2019 05:32:14 +0000 (14:32 +0900)]
avoid not to truncate necessary chars (#3640)

5 years agoFormat the last expression-statement as expression (#3631)
Seiichi Uchida [Sun, 16 Jun 2019 23:53:39 +0000 (08:53 +0900)]
Format the last expression-statement as expression (#3631)

5 years agohandle unicode chars in closures (#3632)
Stéphane Campinas [Sun, 16 Jun 2019 23:53:17 +0000 (01:53 +0200)]
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文字化ã")
+        }
     });
 }
```

5 years agotests: ensure min number of system/idempotent tests ran (#3629)
Caleb Cartwright [Sun, 16 Jun 2019 14:47:22 +0000 (09:47 -0500)]
tests: ensure min number of system/idempotent tests ran (#3629)

5 years agotests: add normalize_doc_attributes config tests (#3630)
Caleb Cartwright [Sun, 16 Jun 2019 14:46:25 +0000 (09:46 -0500)]
tests: add normalize_doc_attributes config tests (#3630)

5 years agoMerge pull request #3628 from topecongiro/issue-3627
Stéphane Campinas [Fri, 14 Jun 2019 12:07:07 +0000 (14:07 +0200)]
Merge pull request #3628 from topecongiro/issue-3627

Fix is_subpath

5 years agoFix is_subpath
Seiichi Uchida [Fri, 14 Jun 2019 05:08:19 +0000 (14:08 +0900)]
Fix is_subpath

5 years agoUse trait to abstract emit modes (#3616)
Ruben Schmidmeister [Wed, 12 Jun 2019 21:59:20 +0000 (23:59 +0200)]
Use trait to abstract emit modes (#3616)

5 years agoImprove handling of unicode characters (#3618)
Stéphane Campinas [Wed, 12 Jun 2019 11:28:29 +0000 (13:28 +0200)]
Improve handling of unicode characters (#3618)

5 years agoimplement Display for enums with attribute config_type (#3621)
Stéphane Campinas [Wed, 12 Jun 2019 11:20:42 +0000 (13:20 +0200)]
implement Display for enums with attribute config_type (#3621)

5 years agoAdd CHANGELOG entry for the 1.3.0 release (#3612)
Stéphane Campinas [Mon, 10 Jun 2019 14:49:36 +0000 (16:49 +0200)]
Add CHANGELOG entry for the 1.3.0 release (#3612)

5 years agoRename config_proc_macro to rustfmt-config_proc_macro
topecongiro [Sun, 9 Jun 2019 13:29:36 +0000 (22:29 +0900)]
Rename config_proc_macro to rustfmt-config_proc_macro

5 years agoRelease 1.3.0 (#3611)
Seiichi Uchida [Sun, 9 Jun 2019 12:28:57 +0000 (21:28 +0900)]
Release 1.3.0 (#3611)

5 years agoFormat modules defined in cfg_attr (#3604)
Seiichi Uchida [Sun, 9 Jun 2019 00:20:39 +0000 (09:20 +0900)]
Format modules defined in cfg_attr (#3604)

5 years agoFormat modules defined inside cfg_if macro calls (#3600)
Seiichi Uchida [Sat, 8 Jun 2019 09:47:18 +0000 (18:47 +0900)]
Format modules defined inside cfg_if macro calls (#3600)

5 years agoMerge pull request #3607 from topecongiro/issue-3493
Stéphane Campinas [Sat, 8 Jun 2019 07:50:12 +0000 (09:50 +0200)]
Merge pull request #3607 from topecongiro/issue-3493

Ignore sub-modules when skip-children is used

5 years agoAdd a test for #3493
topecongiro [Sat, 8 Jun 2019 05:52:49 +0000 (14:52 +0900)]
Add a test for #3493

5 years agoremoved bitrig support (#3608)
Marcel Hellwig [Fri, 7 Jun 2019 07:56:30 +0000 (09:56 +0200)]
removed bitrig support (#3608)

bitrig support has been removed (by me) in https://github.com/rust-lang/rust/pull/60775

5 years agoIgnore sub-modules when skip-children is used
topecongiro [Fri, 7 Jun 2019 05:55:41 +0000 (14:55 +0900)]
Ignore sub-modules when skip-children is used

5 years agofix the bug add unwanted code to impl (#3601) (#3602)
rChaser53 [Thu, 6 Jun 2019 04:06:40 +0000 (13:06 +0900)]
fix the bug add unwanted code to impl (#3601) (#3602)

5 years agoinline the attribute with its item even with the macro_use attribute or when reorder_...
Stéphane Campinas [Tue, 4 Jun 2019 15:14:12 +0000 (17:14 +0200)]
inline the attribute with its item even with the macro_use attribute or when reorder_imports is disabled (#3598)

5 years agoCargo update (#3559)
Seiichi Uchida [Mon, 3 Jun 2019 14:57:02 +0000 (23:57 +0900)]
Cargo update (#3559)

Update `rustc-ap-*` crates to 486.0.0.

5 years agostabilise fn_args_density (#3581)
Stéphane Campinas [Mon, 3 Jun 2019 13:26:48 +0000 (15:26 +0200)]
stabilise fn_args_density (#3581)

5 years agoMerge pull request #3596 from rchaser53/issue-3595
Seiichi Uchida [Thu, 30 May 2019 14:07:09 +0000 (23:07 +0900)]
Merge pull request #3596 from rchaser53/issue-3595

add tests for issue-3595

5 years agoadd tests for issue-3595
rchaser53 [Thu, 30 May 2019 12:03:29 +0000 (21:03 +0900)]
add tests for issue-3595

5 years agoMerge pull request #3586 from topecongiro/issue-3584
Stéphane Campinas [Thu, 30 May 2019 07:39:15 +0000 (09:39 +0200)]
Merge pull request #3586 from topecongiro/issue-3584

Format trait aliases with where clauses

5 years agofix Erasing inner attributes in struct (#3593)
rChaser53 [Wed, 29 May 2019 22:31:48 +0000 (07:31 +0900)]
fix Erasing inner attributes in struct (#3593)

5 years agoMerge pull request #3589 from topecongiro/issue-3583
Stéphane Campinas [Mon, 27 May 2019 22:49:28 +0000 (00:49 +0200)]
Merge pull request #3589 from topecongiro/issue-3583

Catch panics from the parser while rewriting macro calls

5 years agoSet macro_rewrite_failure to true on catching panic
topecongiro [Mon, 27 May 2019 15:14:36 +0000 (00:14 +0900)]
Set macro_rewrite_failure to true on catching panic

5 years agoCatch panics from the parser while rewriting macro calls
topecongiro [Mon, 27 May 2019 15:03:50 +0000 (00:03 +0900)]
Catch panics from the parser while rewriting macro calls

5 years agoAdd a test for #3583
topecongiro [Mon, 27 May 2019 15:03:42 +0000 (00:03 +0900)]
Add a test for #3583

5 years agoFormat trait aliases with where clauses
topecongiro [Sun, 26 May 2019 12:15:55 +0000 (21:15 +0900)]
Format trait aliases with where clauses

5 years agoRefactor rewrite_where_clause
topecongiro [Sun, 26 May 2019 12:15:38 +0000 (21:15 +0900)]
Refactor rewrite_where_clause

5 years agoAdd tests for trait aliases with where clauses
topecongiro [Sun, 26 May 2019 12:14:28 +0000 (21:14 +0900)]
Add tests for trait aliases with where clauses

5 years agoMerge pull request #3582 from sphynx/master
Seiichi Uchida [Sun, 26 May 2019 07:58:13 +0000 (16:58 +0900)]
Merge pull request #3582 from sphynx/master

Use structopt for rustfmt-format-diff arguments parsing

5 years agoUse structopt for rustfmt-format-diff arguments parsing
Ivan Veselov [Wed, 22 May 2019 19:51:36 +0000 (20:51 +0100)]
Use structopt for rustfmt-format-diff arguments parsing

5 years agoUpdate the documentation of ignore (#3580)
Seiichi Uchida [Thu, 23 May 2019 00:43:43 +0000 (09:43 +0900)]
Update the documentation of ignore (#3580)

5 years agoDocument some additional points about maintaining rustfmt (#3579)
Stéphane Campinas [Wed, 22 May 2019 13:48:40 +0000 (15:48 +0200)]
Document some additional points about maintaining rustfmt (#3579)

5 years agoImplement Serialize on IgnoreList (#3565)
Seiichi Uchida [Wed, 22 May 2019 07:41:57 +0000 (16:41 +0900)]
Implement Serialize on IgnoreList (#3565)

* Implement Serialize on IgnoreList

* Add a test for #3536

5 years agoAllow overflowing rhs of unit variant (#3566)
Seiichi Uchida [Wed, 22 May 2019 01:51:19 +0000 (10:51 +0900)]
Allow overflowing rhs of unit variant (#3566)

5 years agoMerge pull request #3577 from topecongiro/issue-3575
Seiichi Uchida [Wed, 22 May 2019 01:49:12 +0000 (10:49 +0900)]
Merge pull request #3577 from topecongiro/issue-3575

Insert an empty line when normalizing `#[doc = ""]`

5 years agoMerge pull request #3576 from rchaser53/issue-3567
Seiichi Uchida [Tue, 21 May 2019 22:00:07 +0000 (07:00 +0900)]
Merge pull request #3576 from rchaser53/issue-3567

add the handling for vec! with paren inside macro

5 years agoMerge pull request #3569 from sphynx/master
Seiichi Uchida [Tue, 21 May 2019 21:58:39 +0000 (06:58 +0900)]
Merge pull request #3569 from sphynx/master

Use structopt for command line arguments parsing in cargo-fmt

5 years agoDrop only the first occurrence of `fmt` while preparing CLI arguments
Ivan Veselov [Tue, 21 May 2019 15:33:51 +0000 (16:33 +0100)]
Drop only the first occurrence of `fmt` while preparing CLI arguments

5 years agoDrop extra `fmt` command line argument provided by cargo
Ivan Veselov [Mon, 20 May 2019 12:17:32 +0000 (13:17 +0100)]
Drop extra `fmt` command line argument provided by cargo

5 years agoUse structopt for command line arguments parsing in cargo-fmt
Ivan Veselov [Mon, 20 May 2019 09:23:03 +0000 (10:23 +0100)]
Use structopt for command line arguments parsing in cargo-fmt

5 years agoInsert an empty line when normalizing `#[doc = ""]`
topecongiro [Tue, 21 May 2019 15:10:46 +0000 (00:10 +0900)]
Insert an empty line when normalizing `#[doc = ""]`

5 years agoAdd a test for #3575
topecongiro [Tue, 21 May 2019 15:10:35 +0000 (00:10 +0900)]
Add a test for #3575

5 years agoadd the handling for vec! with paren inside macro
rchaser53 [Tue, 21 May 2019 15:06:15 +0000 (00:06 +0900)]
add the handling for vec! with paren inside macro

5 years agonot to avoid self (#3570)
rChaser53 [Tue, 21 May 2019 02:43:28 +0000 (11:43 +0900)]
not to avoid self (#3570)

5 years agoMerge pull request #3573 from scampi/issue-3525
Seiichi Uchida [Tue, 21 May 2019 02:42:55 +0000 (11:42 +0900)]
Merge pull request #3573 from scampi/issue-3525

Update changelogs

5 years agochangelog for 1.2.2
Stéphane Campinas [Mon, 20 May 2019 21:46:00 +0000 (23:46 +0200)]
changelog for 1.2.2

5 years agochangelog for 1.2.1
Stéphane Campinas [Mon, 20 May 2019 21:39:40 +0000 (23:39 +0200)]
changelog for 1.2.1

5 years agochangelog for 1.2.0
Stéphane Campinas [Mon, 20 May 2019 21:30:15 +0000 (23:30 +0200)]
changelog for 1.2.0