]> git.lizzy.rs Git - rust.git/log
rust.git
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)

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

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

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

5 years agochangelog for 1.0.3
Stéphane Campinas [Mon, 20 May 2019 20:50:15 +0000 (22:50 +0200)]
changelog for 1.0.3

5 years agochangelog for 1.0.2
Stéphane Campinas [Mon, 20 May 2019 20:48:29 +0000 (22:48 +0200)]
changelog for 1.0.2

5 years agochangelog for 1.0.1
Stéphane Campinas [Mon, 20 May 2019 20:15:58 +0000 (22:15 +0200)]
changelog for 1.0.1

5 years agochangelog for 1.0.0
Stéphane Campinas [Mon, 20 May 2019 20:06:44 +0000 (22:06 +0200)]
changelog for 1.0.0

5 years agochangelog for 0.99.9
Stéphane Campinas [Mon, 20 May 2019 19:10:34 +0000 (21:10 +0200)]
changelog for 0.99.9

5 years agochangelog for 0.99.8
Stéphane Campinas [Mon, 20 May 2019 19:07:56 +0000 (21:07 +0200)]
changelog for 0.99.8

5 years agochangelog for 0.99.7
Stéphane Campinas [Mon, 20 May 2019 18:58:16 +0000 (20:58 +0200)]
changelog for 0.99.7

5 years agochangelog for 0.99.6
Stéphane Campinas [Mon, 20 May 2019 18:41:16 +0000 (20:41 +0200)]
changelog for 0.99.6

5 years agochangelog for 0.99.5
Stéphane Campinas [Mon, 20 May 2019 08:19:57 +0000 (10:19 +0200)]
changelog for 0.99.5

5 years agochangelog for 0.99.4
Stéphane Campinas [Mon, 20 May 2019 07:48:44 +0000 (09:48 +0200)]
changelog for 0.99.4

5 years agoMerge pull request #3548 from bash/normalize-multiline-doc-attributes
Seiichi Uchida [Mon, 20 May 2019 07:46:52 +0000 (16:46 +0900)]
Merge pull request #3548 from bash/normalize-multiline-doc-attributes

Fix normalisation of multiline doc attributes

5 years agochangelog for 0.99.3
Stéphane Campinas [Mon, 20 May 2019 07:41:02 +0000 (09:41 +0200)]
changelog for 0.99.3

5 years agochangelog for 0.99.2
Stéphane Campinas [Sun, 19 May 2019 21:02:30 +0000 (23:02 +0200)]
changelog for 0.99.2

5 years agochangelog for 0.99.1
Stéphane Campinas [Sun, 19 May 2019 20:58:18 +0000 (22:58 +0200)]
changelog for 0.99.1

5 years agochangelog for 0.99.0
Stéphane Campinas [Sun, 19 May 2019 20:55:36 +0000 (22:55 +0200)]
changelog for 0.99.0

5 years agochangelog for 0.9.0
Stéphane Campinas [Sun, 19 May 2019 20:53:13 +0000 (22:53 +0200)]
changelog for 0.9.0

5 years agochangelog for 0.8.2
Stéphane Campinas [Sun, 19 May 2019 10:17:47 +0000 (12:17 +0200)]
changelog for 0.8.2

5 years agochangelog for 0.7.0
Stéphane Campinas [Sun, 19 May 2019 10:05:10 +0000 (12:05 +0200)]
changelog for 0.7.0

5 years agochangelog for 0.6.1
Stéphane Campinas [Sun, 19 May 2019 09:03:02 +0000 (11:03 +0200)]
changelog for 0.6.1

5 years agochangelog for 0.6.0
Stéphane Campinas [Sat, 18 May 2019 18:30:52 +0000 (20:30 +0200)]
changelog for 0.6.0

5 years agochangelog for 0.5.0
Stéphane Campinas [Sat, 18 May 2019 18:29:09 +0000 (20:29 +0200)]
changelog for 0.5.0

5 years agochangelog for 0.4.2
Stéphane Campinas [Sat, 18 May 2019 18:20:52 +0000 (20:20 +0200)]
changelog for 0.4.2

5 years agoDocument DocCommentFormatter
Ruben Schmidmeister [Sat, 18 May 2019 09:50:09 +0000 (11:50 +0200)]
Document DocCommentFormatter

5 years agoPass string instead of Symbol to DocCommentFormatter
Ruben Schmidmeister [Sat, 18 May 2019 09:47:54 +0000 (11:47 +0200)]
Pass string instead of Symbol to DocCommentFormatter

5 years agoUse peek() instead of checking indexes
Ruben Schmidmeister [Sat, 18 May 2019 09:42:49 +0000 (11:42 +0200)]
Use peek() instead of checking indexes

5 years agoMerge branch 'master' into normalize-multiline-doc-attributes
Ruben Schmidmeister [Sat, 18 May 2019 09:26:03 +0000 (11:26 +0200)]
Merge branch 'master' into normalize-multiline-doc-attributes