]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoAdd --config command line option (#3767)
CreepySkeleton [Thu, 5 Sep 2019 02:15:19 +0000 (05:15 +0300)]
Add --config command line option (#3767)

4 years agoAnother fix for `merge_imports` (#3769)
Valentine Valyaeff [Wed, 4 Sep 2019 14:02:10 +0000 (17:02 +0300)]
Another fix for `merge_imports` (#3769)

4 years agodo not remove discriminant value if exists (#3771) (#3772)
Andrey [Wed, 4 Sep 2019 14:01:04 +0000 (17:01 +0300)]
do not remove discriminant value if exists (#3771) (#3772)

4 years agofix TrailingWhitespace when using line breaks in macros arguments (#3768)
rChaser53 [Wed, 4 Sep 2019 14:00:26 +0000 (23:00 +0900)]
fix TrailingWhitespace when using line breaks in macros arguments (#3768)

4 years agofix formatting mods inside cfg_if macro (#3763)
Caleb Cartwright [Mon, 2 Sep 2019 09:36:51 +0000 (04:36 -0500)]
fix formatting mods inside cfg_if macro (#3763)

4 years agoRelease v1.4.6
topecongiro [Wed, 28 Aug 2019 11:59:32 +0000 (20:59 +0900)]
Release v1.4.6

4 years agoUpdate CHANGELOG.md
topecongiro [Wed, 28 Aug 2019 11:58:43 +0000 (20:58 +0900)]
Update CHANGELOG.md

4 years agoForbid adding or removing a block from match arms inside macro calls (#3756)
Seiichi Uchida [Wed, 28 Aug 2019 11:50:41 +0000 (20:50 +0900)]
Forbid adding or removing a block from match arms inside macro calls (#3756)

4 years agofix the bug removing attrs (#3760)
rChaser53 [Wed, 28 Aug 2019 11:50:02 +0000 (20:50 +0900)]
fix the bug  removing attrs (#3760)

4 years agoMerge imports fix (#3753)
Valentine Valyaeff [Tue, 27 Aug 2019 02:23:55 +0000 (05:23 +0300)]
Merge imports fix (#3753)

4 years agofeat: add support for --message-format option (#3752)
Caleb Cartwright [Tue, 27 Aug 2019 00:27:32 +0000 (19:27 -0500)]
feat: add support for --message-format option (#3752)

4 years agoMark toml file as non-executable. (#3754)
Hristo Venev [Mon, 26 Aug 2019 00:18:04 +0000 (01:18 +0100)]
Mark toml file as non-executable. (#3754)

4 years agoFix line numbers in checkstyle output (#3694)
Caleb Cartwright [Mon, 19 Aug 2019 02:11:35 +0000 (21:11 -0500)]
Fix line numbers in checkstyle output (#3694)

4 years agoadd new flag to list names of misformatted files (#3747)
Caleb Cartwright [Mon, 19 Aug 2019 02:04:40 +0000 (21:04 -0500)]
add new flag to list names of misformatted files (#3747)

4 years agoTake the inner macro_use attr into acocunt while reordering (#3749)
Seiichi Uchida [Mon, 19 Aug 2019 01:56:32 +0000 (10:56 +0900)]
Take the inner macro_use attr into acocunt while reordering (#3749)

4 years agoUse correct indent when formatting complex fn type (#3731)
Seiichi Uchida [Fri, 16 Aug 2019 02:15:28 +0000 (11:15 +0900)]
Use correct indent when formatting complex fn type (#3731)

4 years agoadd json emit mode (#3735)
Caleb Cartwright [Fri, 16 Aug 2019 02:14:53 +0000 (21:14 -0500)]
add json emit mode (#3735)

4 years agotests: fix failing default config unit test (#3743)
Caleb Cartwright [Tue, 13 Aug 2019 23:02:30 +0000 (18:02 -0500)]
tests: fix failing default config unit test (#3743)

4 years agoRelease v1.4.5
topecongiro [Tue, 13 Aug 2019 14:26:54 +0000 (23:26 +0900)]
Release v1.4.5

4 years agoUpdate CHANGELOG
topecongiro [Tue, 13 Aug 2019 14:23:51 +0000 (23:23 +0900)]
Update CHANGELOG

4 years agoUse the correct BytePos for the opening brace position (#3742)
Seiichi Uchida [Tue, 13 Aug 2019 14:21:55 +0000 (23:21 +0900)]
Use the correct BytePos for the opening brace position (#3742)

4 years agofix: remove trailing space with empty dyn macro arg (#3737)
Caleb Cartwright [Sun, 11 Aug 2019 03:49:14 +0000 (22:49 -0500)]
fix: remove trailing space with empty dyn macro arg (#3737)

4 years agoRecommend running rustfmt last (#3733)
Florian Gilcher [Fri, 9 Aug 2019 08:42:50 +0000 (10:42 +0200)]
Recommend running rustfmt last (#3733)

As rustfmt checks fail, they might hide errors of more importance.
Running it last makes sure that the serious bugs have been found and is less frustrating.

4 years agoUpdate CHANGELOG.md
Seiichi Uchida [Tue, 6 Aug 2019 02:24:53 +0000 (11:24 +0900)]
Update CHANGELOG.md

4 years agoRelease 1.4.4
topecongiro [Tue, 6 Aug 2019 02:14:12 +0000 (11:14 +0900)]
Release 1.4.4

4 years agoUpdate CHANGELOG.md
topecongiro [Tue, 6 Aug 2019 02:14:00 +0000 (11:14 +0900)]
Update CHANGELOG.md

4 years agoFix broken tuple pattern (#3729)
Seiichi Uchida [Tue, 6 Aug 2019 02:09:45 +0000 (11:09 +0900)]
Fix broken tuple pattern (#3729)

4 years agosorted configuration docs (#3723)
Cliff Dyer [Tue, 6 Aug 2019 02:07:12 +0000 (22:07 -0400)]
sorted configuration docs (#3723)

4 years agofix: issue with --all when workspace member also exists in dep tree (#3726)
Caleb Cartwright [Mon, 5 Aug 2019 15:33:59 +0000 (10:33 -0500)]
fix: issue with --all when workspace member also exists in dep tree (#3726)

4 years agoRelease 1.4.3
topecongiro [Fri, 2 Aug 2019 15:01:59 +0000 (00:01 +0900)]
Release 1.4.3

4 years agoUpdate CHANGELOG.md
topecongiro [Fri, 2 Aug 2019 14:56:09 +0000 (23:56 +0900)]
Update CHANGELOG.md

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

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

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

5 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)

5 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)