]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoUpdate changelog
topecongiro [Wed, 8 Nov 2017 04:59:05 +0000 (13:59 +0900)]
Update changelog

6 years agoRefactor: use less vertical lines
topecongiro [Wed, 8 Nov 2017 02:53:13 +0000 (11:53 +0900)]
Refactor: use less vertical lines

6 years agoUse struct prefix as a callee
topecongiro [Wed, 8 Nov 2017 02:52:25 +0000 (11:52 +0900)]
Use struct prefix as a callee

6 years agoAdd a test for #2125
topecongiro [Wed, 8 Nov 2017 02:52:14 +0000 (11:52 +0900)]
Add a test for #2125

6 years agoCargo fmt
topecongiro [Tue, 7 Nov 2017 23:25:42 +0000 (08:25 +0900)]
Cargo fmt

6 years agoUse correct shape when there is a single child
topecongiro [Tue, 7 Nov 2017 23:25:23 +0000 (08:25 +0900)]
Use correct shape when there is a single child

6 years agoAdd a test for #2126
topecongiro [Tue, 7 Nov 2017 23:25:09 +0000 (08:25 +0900)]
Add a test for #2126

6 years agonightly-0.2.15
Nick Cameron [Tue, 7 Nov 2017 19:07:31 +0000 (08:07 +1300)]
nightly-0.2.15

6 years agoAdd git-fmt tool
Nick Cameron [Tue, 7 Nov 2017 18:59:14 +0000 (07:59 +1300)]
Add git-fmt tool

6 years agoMerge pull request #2121 from topecongiro/clippy-lints
Nick Cameron [Tue, 7 Nov 2017 01:01:42 +0000 (14:01 +1300)]
Merge pull request #2121 from topecongiro/clippy-lints

Refactor code via clippy

6 years agoRemove unused imports
topecongiro [Mon, 6 Nov 2017 12:47:21 +0000 (21:47 +0900)]
Remove unused imports

6 years agoUse accessors instead of destucting
topecongiro [Mon, 6 Nov 2017 12:46:45 +0000 (21:46 +0900)]
Use accessors instead of destucting

6 years agoPropagate an error rather than panic
topecongiro [Mon, 6 Nov 2017 12:45:54 +0000 (21:45 +0900)]
Propagate an error rather than panic

6 years agoFix PairParts related issues
topecongiro [Mon, 6 Nov 2017 12:44:59 +0000 (21:44 +0900)]
Fix PairParts related issues

6 years agoAdd derive-new to dependencies
topecongiro [Mon, 6 Nov 2017 12:43:17 +0000 (21:43 +0900)]
Add derive-new to dependencies

6 years agoAdd visit_static()
topecongiro [Sun, 5 Nov 2017 12:59:33 +0000 (21:59 +0900)]
Add visit_static()

6 years agoAdd StructParts to reduce the number of args
topecongiro [Sun, 5 Nov 2017 11:30:28 +0000 (20:30 +0900)]
Add StructParts to reduce the number of args

6 years agoAdd StaticParts to reduce the number of args in rewrite_static()
topecongiro [Sun, 5 Nov 2017 05:44:52 +0000 (14:44 +0900)]
Add StaticParts to reduce the number of args in rewrite_static()

6 years agoRemove unused args from format_generics()
topecongiro [Sun, 5 Nov 2017 05:29:40 +0000 (14:29 +0900)]
Remove unused args from format_generics()

6 years agoRemove an unused arg from visit_fn()
topecongiro [Sun, 5 Nov 2017 05:24:00 +0000 (14:24 +0900)]
Remove an unused arg from visit_fn()

6 years agoIntroduce PairParts to reduce the number of args of rewrite_pair()
topecongiro [Sun, 5 Nov 2017 05:17:46 +0000 (14:17 +0900)]
Introduce PairParts to reduce the number of args of rewrite_pair()

6 years agoRemove redundant references
topecongiro [Sun, 5 Nov 2017 05:03:55 +0000 (14:03 +0900)]
Remove redundant references

6 years agoRemove unnecessary format!() call
topecongiro [Sun, 5 Nov 2017 05:03:43 +0000 (14:03 +0900)]
Remove unnecessary format!() call

6 years agoCollapse if-else
topecongiro [Sun, 5 Nov 2017 05:03:30 +0000 (14:03 +0900)]
Collapse if-else

6 years agoRemove static lifetime
topecongiro [Sun, 5 Nov 2017 05:02:46 +0000 (14:02 +0900)]
Remove static lifetime

6 years agoPrefer println!() to println!("")
topecongiro [Sun, 5 Nov 2017 05:00:53 +0000 (14:00 +0900)]
Prefer println!() to println!("")

6 years agoRemove an unnecessary lifetime
topecongiro [Sun, 5 Nov 2017 05:00:24 +0000 (14:00 +0900)]
Remove an unnecessary lifetime

6 years agoRemove unnecessary String::from()
topecongiro [Thu, 26 Oct 2017 07:57:45 +0000 (16:57 +0900)]
Remove unnecessary String::from()

6 years agoPrefer &[T] to &Vec<T>
topecongiro [Thu, 26 Oct 2017 07:57:11 +0000 (16:57 +0900)]
Prefer &[T] to &Vec<T>

6 years agoPrefer ends_with() to chars().last().unwrap()
topecongiro [Thu, 26 Oct 2017 07:56:39 +0000 (16:56 +0900)]
Prefer ends_with() to chars().last().unwrap()

6 years agoPrefer unreachable! to panic!
topecongiro [Thu, 26 Oct 2017 07:55:48 +0000 (16:55 +0900)]
Prefer unreachable! to panic!

6 years agoSimplify let-if pattern
topecongiro [Thu, 26 Oct 2017 07:55:36 +0000 (16:55 +0900)]
Simplify let-if pattern

6 years agoRemove needless borrows
topecongiro [Thu, 26 Oct 2017 07:54:41 +0000 (16:54 +0900)]
Remove needless borrows

6 years agoSquash redundant match arms
topecongiro [Thu, 26 Oct 2017 07:53:30 +0000 (16:53 +0900)]
Squash redundant match arms

6 years agoAdding where_single_line option (#2030)
Afshin Mehrabani [Sun, 5 Nov 2017 22:53:17 +0000 (22:53 +0000)]
Adding where_single_line option (#2030)

* feat(where): adding where_single_line option and tests

* fix(where): adding more tests

* feat(where): changing the shape of where clause when where_single_line is true

* feat: newline_for_brace should avoid adding a new line where where_single_line is true

* fix(items): where_single_line should bypass the multi-item where clauses

* fix(items): refactoring and removing redundant variables

* fix(items): where_single_line should not be functional when args are multilined

* fix(config): fixing conflict with upstream

6 years agoMerge pull request #2116 from topecongiro/config-options-indent
Nick Cameron [Sun, 5 Nov 2017 19:43:12 +0000 (08:43 +1300)]
Merge pull request #2116 from topecongiro/config-options-indent

Rename config options related to indent

6 years agoMerge pull request #2115 from topecongiro/chain_width
Nick Cameron [Sun, 5 Nov 2017 19:38:37 +0000 (08:38 +1300)]
Merge pull request #2115 from topecongiro/chain_width

Rename 'chain_one_line_max' to 'chain_width'

6 years agoMerge pull request #2113 from topecongiro/issue-2110
Nick Cameron [Sun, 5 Nov 2017 19:21:56 +0000 (08:21 +1300)]
Merge pull request #2113 from topecongiro/issue-2110

Use correct span for tuple struct's body

6 years agonightly-0.2.14
topecongiro [Sun, 5 Nov 2017 15:55:10 +0000 (00:55 +0900)]
nightly-0.2.14

6 years agoCargo update
topecongiro [Sun, 5 Nov 2017 15:55:04 +0000 (00:55 +0900)]
Cargo update

6 years agoMerge pull request #2118 from killercup/rustup/2017-11-04
Seiichi Uchida [Sun, 5 Nov 2017 15:48:12 +0000 (00:48 +0900)]
Merge pull request #2118 from killercup/rustup/2017-11-04

Fix compile on 2017-11-04 nightly

6 years agoFix compile on 2017-11-04 nightly
Pascal Hertleif [Sun, 5 Nov 2017 11:26:06 +0000 (12:26 +0100)]
Fix compile on 2017-11-04 nightly

Breakage came from https://github.com/rust-lang/rust/pull/45247/

6 years agoMerge pull request #2117 from adeschamps/issue-2103
Seiichi Uchida [Sat, 4 Nov 2017 20:27:36 +0000 (05:27 +0900)]
Merge pull request #2117 from adeschamps/issue-2103

Handle case where there is a where clause but no generic parameters.

6 years agoHandle case where there is a where clause but no generic parameters.
Anthony Deschamps [Sat, 4 Nov 2017 19:24:41 +0000 (15:24 -0400)]
Handle case where there is a where clause but no generic parameters.

Fixes #2103

6 years agoRename test files
topecongiro [Sat, 4 Nov 2017 13:49:21 +0000 (22:49 +0900)]
Rename test files

6 years agoRename 'struct_lit_style' to 'struct_lit_indent'
topecongiro [Sat, 4 Nov 2017 13:47:28 +0000 (22:47 +0900)]
Rename 'struct_lit_style' to 'struct_lit_indent'

6 years agoRename 'fn_call_style' to 'fn_call_indent'
topecongiro [Sat, 4 Nov 2017 13:46:40 +0000 (22:46 +0900)]
Rename 'fn_call_style' to 'fn_call_indent'

6 years agoRename 'fn_args_layout' to 'fn_args_indent'
topecongiro [Sat, 4 Nov 2017 13:45:47 +0000 (22:45 +0900)]
Rename 'fn_args_layout' to 'fn_args_indent'

6 years agoRename 'array_layout' to 'array_indent'
topecongiro [Sat, 4 Nov 2017 13:45:09 +0000 (22:45 +0900)]
Rename 'array_layout' to 'array_indent'

6 years agoChange test files' name
topecongiro [Sat, 4 Nov 2017 13:30:26 +0000 (22:30 +0900)]
Change test files' name

6 years agoRename 'chain_one_line_max' to 'chain_width'
topecongiro [Sat, 4 Nov 2017 13:24:43 +0000 (22:24 +0900)]
Rename 'chain_one_line_max' to 'chain_width'

6 years agoMerge pull request #2114 from liigo/patch-1
Seiichi Uchida [Sat, 4 Nov 2017 03:16:35 +0000 (12:16 +0900)]
Merge pull request #2114 from liigo/patch-1

fix old releases dates

6 years agofix old releases dates
Liigo Zhuang [Sat, 4 Nov 2017 03:13:08 +0000 (11:13 +0800)]
fix old releases dates

6 years agoUse get_bytepos_after_visibility()
topecongiro [Fri, 3 Nov 2017 14:53:38 +0000 (23:53 +0900)]
Use get_bytepos_after_visibility()

6 years agoUse correct span for tuple struct's body
topecongiro [Fri, 3 Nov 2017 14:53:07 +0000 (23:53 +0900)]
Use correct span for tuple struct's body

6 years agoAdd get_bytepos_after_visibility()
topecongiro [Fri, 3 Nov 2017 14:51:19 +0000 (23:51 +0900)]
Add get_bytepos_after_visibility()

6 years agoAdd more tests
topecongiro [Fri, 3 Nov 2017 14:38:32 +0000 (23:38 +0900)]
Add more tests

6 years agoAdd a test for structs with visibility
topecongiro [Fri, 3 Nov 2017 13:25:30 +0000 (22:25 +0900)]
Add a test for structs with visibility

6 years agoMerge pull request #1877 from topecongiro/overflowing-closure-with-loop
Nick Cameron [Fri, 3 Nov 2017 04:08:34 +0000 (17:08 +1300)]
Merge pull request #1877 from topecongiro/overflowing-closure-with-loop

Force to use block for closure body with a single control flow expression

6 years agoAdd a comment on args_have_many_closure()
topecongiro [Thu, 2 Nov 2017 23:57:38 +0000 (08:57 +0900)]
Add a comment on args_have_many_closure()

6 years agoRemove include line from Cargo.toml
Nick Cameron [Thu, 2 Nov 2017 19:48:03 +0000 (08:48 +1300)]
Remove include line from Cargo.toml

Fixes #1339

6 years agoRemove LicensePolicy (dead code)
Nick Cameron [Thu, 2 Nov 2017 19:43:33 +0000 (08:43 +1300)]
Remove LicensePolicy (dead code)

Fixes #1320

6 years agoMerge pull request #2108 from topecongiro/combine-pat-tuplestruct
Nick Cameron [Thu, 2 Nov 2017 19:24:04 +0000 (08:24 +1300)]
Merge pull request #2108 from topecongiro/combine-pat-tuplestruct

Combine ast::PatKind::TupleStruct

6 years agoCargo fmt
topecongiro [Thu, 2 Nov 2017 12:45:00 +0000 (21:45 +0900)]
Cargo fmt

6 years agoForce to use block for closure's body when there is only a single control expr
topecongiro [Thu, 2 Nov 2017 12:43:33 +0000 (21:43 +0900)]
Force to use block for closure's body when there is only a single control expr

6 years agoUse is_unsafe_block()
topecongiro [Thu, 2 Nov 2017 12:42:11 +0000 (21:42 +0900)]
Use is_unsafe_block()

6 years agoAdd args_have_many_closure()
topecongiro [Thu, 2 Nov 2017 12:41:46 +0000 (21:41 +0900)]
Add args_have_many_closure()

6 years agoUpdate tests
topecongiro [Thu, 2 Nov 2017 12:38:20 +0000 (21:38 +0900)]
Update tests

6 years agoCombine PatKind::TupleStruct
topecongiro [Thu, 2 Nov 2017 11:29:10 +0000 (20:29 +0900)]
Combine PatKind::TupleStruct

6 years agoAdd a test to see if tuple struct gets combined
topecongiro [Thu, 2 Nov 2017 11:28:38 +0000 (20:28 +0900)]
Add a test to see if tuple struct gets combined

6 years agoMerge pull request #2107 from davidalber/starting-issue-link
Nick Cameron [Thu, 2 Nov 2017 09:58:58 +0000 (22:58 +1300)]
Merge pull request #2107 from davidalber/starting-issue-link

Updating good starting issues link

6 years agoUpdating good starting issues link
David Alber [Thu, 2 Nov 2017 08:14:52 +0000 (01:14 -0700)]
Updating good starting issues link

6 years agoMerge pull request #2102 from topecongiro/soft-wrapping-comments
Nick Cameron [Thu, 2 Nov 2017 02:15:38 +0000 (15:15 +1300)]
Merge pull request #2102 from topecongiro/soft-wrapping-comments

Soft wrapping for comments

6 years agoMerge pull request #2106 from clippered/fix-panic-on-windows-stderr
Nick Cameron [Thu, 2 Nov 2017 02:04:59 +0000 (15:04 +1300)]
Merge pull request #2106 from clippered/fix-panic-on-windows-stderr

fix output panics on unable to write to stderr

6 years agoMerge pull request #2104 from martinlindhe/master
Nick Cameron [Thu, 2 Nov 2017 02:02:20 +0000 (15:02 +1300)]
Merge pull request #2104 from martinlindhe/master

fix some typos

6 years agofix output panics on unable to write to stderr
clippered [Wed, 1 Nov 2017 12:45:35 +0000 (23:45 +1100)]
fix output panics on unable to write to stderr

6 years agofix some typos
Martin Lindhe [Wed, 1 Nov 2017 06:33:55 +0000 (07:33 +0100)]
fix some typos

6 years agoAdd ftp and file protocols
topecongiro [Wed, 1 Nov 2017 03:35:32 +0000 (12:35 +0900)]
Add ftp and file protocols

6 years agoImplement soft wrapping for comments
topecongiro [Tue, 31 Oct 2017 06:07:58 +0000 (15:07 +0900)]
Implement soft wrapping for comments

6 years agoAdd has_url()
topecongiro [Tue, 31 Oct 2017 06:07:19 +0000 (15:07 +0900)]
Add has_url()

6 years agoAdd an optional max width argument to rewrite_string()
topecongiro [Tue, 31 Oct 2017 06:04:50 +0000 (15:04 +0900)]
Add an optional max width argument to rewrite_string()

6 years agoUse visual indent only when rewriting string literal
topecongiro [Tue, 31 Oct 2017 06:03:46 +0000 (15:03 +0900)]
Use visual indent only when rewriting string literal

6 years agoAdd a test for soft wrapping for comments
topecongiro [Tue, 31 Oct 2017 06:01:38 +0000 (15:01 +0900)]
Add a test for soft wrapping for comments

6 years agoMerge pull request #2101 from topecongiro/issue-2099
Nick Cameron [Mon, 30 Oct 2017 19:26:08 +0000 (08:26 +1300)]
Merge pull request #2101 from topecongiro/issue-2099

Format match expr with empty body

6 years agoMerge pull request #2100 from topecongiro/issue-2098
Nick Cameron [Mon, 30 Oct 2017 19:24:34 +0000 (08:24 +1300)]
Merge pull request #2100 from topecongiro/issue-2098

Remove redundant shrink_left

6 years agoUse correct budget
Seiichi Uchida [Mon, 30 Oct 2017 12:35:56 +0000 (21:35 +0900)]
Use correct budget

6 years agoAdd a test for #2098
Seiichi Uchida [Mon, 30 Oct 2017 12:35:23 +0000 (21:35 +0900)]
Add a test for #2098

6 years agoFormat match expr with empty body
Seiichi Uchida [Mon, 30 Oct 2017 14:36:42 +0000 (23:36 +0900)]
Format match expr with empty body

6 years agoUse context.budget()
Seiichi Uchida [Mon, 30 Oct 2017 14:31:20 +0000 (23:31 +0900)]
Use context.budget()

6 years agoAdd a test for #2099
Seiichi Uchida [Mon, 30 Oct 2017 14:31:08 +0000 (23:31 +0900)]
Add a test for #2099

6 years agoFix a typo
Seiichi Uchida [Mon, 30 Oct 2017 14:34:44 +0000 (23:34 +0900)]
Fix a typo

6 years agoAdd suport for extern types.
Paul Lietar [Tue, 5 Sep 2017 01:22:17 +0000 (02:22 +0100)]
Add suport for extern types.

See https://github.com/rust-lang/rust/pull/44295

6 years agoMerge pull request #1998 from tmahmood/master
Nick Cameron [Sun, 29 Oct 2017 18:50:28 +0000 (07:50 +1300)]
Merge pull request #1998 from tmahmood/master

Implemented 'unstable options' command line option

6 years agonightly-0.2.13
Nick Cameron [Sun, 29 Oct 2017 18:42:45 +0000 (07:42 +1300)]
nightly-0.2.13

6 years agoFix build
Nick Cameron [Sun, 29 Oct 2017 18:39:28 +0000 (07:39 +1300)]
Fix build

Fixes #2096

6 years agonightly-0.2.12
topecongiro [Sat, 28 Oct 2017 15:23:02 +0000 (00:23 +0900)]
nightly-0.2.12

6 years agoFilter packages only when '-p' was passed
topecongiro [Sat, 28 Oct 2017 15:13:37 +0000 (00:13 +0900)]
Filter packages only when '-p' was passed

6 years agoFormat dependency crates only when '--all' was passed
topecongiro [Sat, 28 Oct 2017 15:12:28 +0000 (00:12 +0900)]
Format dependency crates only when '--all' was passed

6 years agoUnstable options added
Tarin Mahmood [Fri, 27 Oct 2017 15:45:35 +0000 (21:45 +0600)]
Unstable options added

6 years agonightly-0.2.11
topecongiro [Sat, 28 Oct 2017 09:53:39 +0000 (18:53 +0900)]
nightly-0.2.11