]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoCargo clippy
topecongiro [Sun, 12 Nov 2017 23:02:23 +0000 (08:02 +0900)]
Cargo clippy

6 years agoFormat generics on unit struct
topecongiro [Sun, 12 Nov 2017 23:02:06 +0000 (08:02 +0900)]
Format generics on unit struct

6 years agoAdd a test for #2144
topecongiro [Sun, 12 Nov 2017 23:01:52 +0000 (08:01 +0900)]
Add a test for #2144

6 years agoMerge pull request #2138 from topecongiro/comments-around-trait-bounds
Nick Cameron [Fri, 10 Nov 2017 21:19:35 +0000 (10:19 +1300)]
Merge pull request #2138 from topecongiro/comments-around-trait-bounds

Comments around trait bounds

6 years agoMerge pull request #2136 from topecongiro/issue-2025
Nick Cameron [Fri, 10 Nov 2017 21:14:49 +0000 (10:14 +1300)]
Merge pull request #2136 from topecongiro/issue-2025

Remove empty lines at the beginning of the file

6 years agoReturn None when there are comments around trait bounds
Seiichi Uchida [Fri, 10 Nov 2017 12:21:53 +0000 (21:21 +0900)]
Return None when there are comments around trait bounds

6 years agoFix a typo
Seiichi Uchida [Fri, 10 Nov 2017 12:21:06 +0000 (21:21 +0900)]
Fix a typo

6 years agoAdd a test for #2055
Seiichi Uchida [Fri, 10 Nov 2017 12:20:54 +0000 (21:20 +0900)]
Add a test for #2055

6 years agoRemove empty lines at the beginning of the file
topecongiro [Fri, 10 Nov 2017 08:09:31 +0000 (17:09 +0900)]
Remove empty lines at the beginning of the file

6 years agoAdd opt_snippet() and opt_span_after()
topecongiro [Fri, 10 Nov 2017 08:08:57 +0000 (17:08 +0900)]
Add opt_snippet() and opt_span_after()

6 years agoUpdate tests
topecongiro [Fri, 10 Nov 2017 08:08:26 +0000 (17:08 +0900)]
Update tests

6 years agoAdd a test for #2025
topecongiro [Fri, 10 Nov 2017 08:08:16 +0000 (17:08 +0900)]
Add a test for #2025

6 years agoMerge pull request #2134 from mathstuf/configuration-fixes
Nick Cameron [Thu, 9 Nov 2017 22:16:09 +0000 (11:16 +1300)]
Merge pull request #2134 from mathstuf/configuration-fixes

Configuration fixes

6 years agoConfigurations: document report_todo and report_fixme
Ben Boeckel [Thu, 9 Nov 2017 19:10:37 +0000 (14:10 -0500)]
Configurations: document report_todo and report_fixme

6 years agoConfigurations: document reorder_extern_crates settings
Ben Boeckel [Thu, 9 Nov 2017 19:10:37 +0000 (14:10 -0500)]
Configurations: document reorder_extern_crates settings

6 years agoConfigurations: document error_on_line_overflow_comments
Ben Boeckel [Thu, 9 Nov 2017 19:10:37 +0000 (14:10 -0500)]
Configurations: document error_on_line_overflow_comments

6 years agoConfigurations: fix where_density documentation
Ben Boeckel [Thu, 9 Nov 2017 19:10:37 +0000 (14:10 -0500)]
Configurations: fix where_density documentation

The default is actually `Vertical`.

6 years agoConfigurations: add colons to example section titles
Ben Boeckel [Thu, 9 Nov 2017 19:10:37 +0000 (14:10 -0500)]
Configurations: add colons to example section titles

6 years agoConfigurations: markup `max_width`
Ben Boeckel [Thu, 9 Nov 2017 19:10:37 +0000 (14:10 -0500)]
Configurations: markup `max_width`

6 years agoMerge pull request #2130 from topecongiro/soft-wrapping-doc-comments
Nick Cameron [Thu, 9 Nov 2017 03:12:27 +0000 (16:12 +1300)]
Merge pull request #2130 from topecongiro/soft-wrapping-doc-comments

Soft wrapping doc comments

6 years agoRemove 'Option<_>' from return type of 'take_while_with_pred()'
Seiichi Uchida [Thu, 9 Nov 2017 02:33:35 +0000 (11:33 +0900)]
Remove 'Option<_>' from return type of 'take_while_with_pred()'

6 years agoIgnore editors' specific files
topecongiro [Wed, 8 Nov 2017 10:53:52 +0000 (19:53 +0900)]
Ignore editors' specific files

6 years agoUpdate a test
topecongiro [Wed, 8 Nov 2017 09:24:18 +0000 (18:24 +0900)]
Update a test

6 years agoCargo fmt
topecongiro [Wed, 8 Nov 2017 09:24:13 +0000 (18:24 +0900)]
Cargo fmt

6 years agoImplement soft wrapping on doc comments
topecongiro [Wed, 8 Nov 2017 09:24:03 +0000 (18:24 +0900)]
Implement soft wrapping on doc comments

6 years agoAdd a test for soft wrapping on doc comments
topecongiro [Wed, 8 Nov 2017 09:23:21 +0000 (18:23 +0900)]
Add a test for soft wrapping on doc comments

6 years agoMerge pull request #2129 from topecongiro/changelog
Nick Cameron [Wed, 8 Nov 2017 08:12:09 +0000 (21:12 +1300)]
Merge pull request #2129 from topecongiro/changelog

Update Changelog

6 years agoMerge pull request #2128 from topecongiro/issue-2125
Nick Cameron [Wed, 8 Nov 2017 08:11:21 +0000 (21:11 +1300)]
Merge pull request #2128 from topecongiro/issue-2125

Wrap long single field tuple struct

6 years agoFix formatting in git-fmt
Nick Cameron [Wed, 8 Nov 2017 08:10:47 +0000 (21:10 +1300)]
Fix formatting in git-fmt

6 years agoMerge pull request #2127 from topecongiro/issue-2126
Nick Cameron [Wed, 8 Nov 2017 08:02:21 +0000 (21:02 +1300)]
Merge pull request #2127 from topecongiro/issue-2126

Handle chain with a single long child with a small parent

6 years agoTweak the uncommitted file rules for git-fmt
Nick Cameron [Wed, 8 Nov 2017 05:17:12 +0000 (18:17 +1300)]
Tweak the uncommitted file rules for git-fmt

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