]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoRemove noisy print from test
topecongiro [Tue, 19 Sep 2017 02:02:21 +0000 (11:02 +0900)]
Remove noisy print from test

6 years agoMove Spanned to spanned.rs from lib.rs
Seiichi Uchida [Sun, 17 Sep 2017 06:32:00 +0000 (15:32 +0900)]
Move Spanned to spanned.rs from lib.rs

6 years agoMove Indent and Shape to shape.rs from lib.rs
Seiichi Uchida [Sun, 17 Sep 2017 06:23:25 +0000 (15:23 +0900)]
Move Indent and Shape to shape.rs from lib.rs

6 years agoMerge pull request #1980 from topecongiro/less-recover_comment_removed
Nick Cameron [Mon, 18 Sep 2017 19:46:32 +0000 (07:46 +1200)]
Merge pull request #1980 from topecongiro/less-recover_comment_removed

Run recover_comment_removed() only if the text changed after format

6 years agoRemove wrap_str() from recover_comment_removed()
Seiichi Uchida [Mon, 18 Sep 2017 14:30:59 +0000 (23:30 +0900)]
Remove wrap_str() from recover_comment_removed()

since we will be using the original snippet no matter what.

6 years agoRun recover_comment_removed() only if the text changed after format
Seiichi Uchida [Mon, 18 Sep 2017 13:56:29 +0000 (22:56 +0900)]
Run recover_comment_removed() only if the text changed after format

6 years agoMerge pull request #1973 from topecongiro/issue-1972
Nick Cameron [Mon, 18 Sep 2017 06:06:49 +0000 (18:06 +1200)]
Merge pull request #1973 from topecongiro/issue-1972

Echo back input from stdin when disable_all_formatting is true

6 years agoRemove a duplicate test
topecongiro [Mon, 18 Sep 2017 05:20:40 +0000 (14:20 +0900)]
Remove a duplicate test

6 years agoAdd a test for 'disable_all_formatting = true' with stdin
topecongiro [Mon, 18 Sep 2017 05:19:50 +0000 (14:19 +0900)]
Add a test for 'disable_all_formatting = true' with stdin

6 years agoMerge pull request #1969 from topecongiro/deprecate-binary-search
Nick Cameron [Mon, 18 Sep 2017 04:28:14 +0000 (16:28 +1200)]
Merge pull request #1969 from topecongiro/deprecate-binary-search

Remove rewrite_call_with_binary_search()

6 years agoRemove rewrite_call_with_binary_search()
Seiichi Uchida [Fri, 15 Sep 2017 13:56:00 +0000 (22:56 +0900)]
Remove rewrite_call_with_binary_search()

6 years agoMerge pull request #1968 from topecongiro/issue-1967
Nick Cameron [Mon, 18 Sep 2017 00:59:25 +0000 (12:59 +1200)]
Merge pull request #1968 from topecongiro/issue-1967

Reorder use items inside blocks

6 years agoMerge pull request #1966 from topecongiro/string-to-cow
Nick Cameron [Mon, 18 Sep 2017 00:45:25 +0000 (12:45 +1200)]
Merge pull request #1966 from topecongiro/string-to-cow

Refactoring: use Cow and etc.

6 years agoMerge pull request #1964 from topecongiro/rfc/binop
Nick Cameron [Mon, 18 Sep 2017 00:41:54 +0000 (12:41 +1200)]
Merge pull request #1964 from topecongiro/rfc/binop

RFC: binop

6 years agoMerge pull request #1965 from topecongiro/issue-1963
Seiichi Uchida [Sun, 17 Sep 2017 15:11:17 +0000 (00:11 +0900)]
Merge pull request #1965 from topecongiro/issue-1963

Avoid panicking when calling 'cargo fmt --all'

6 years agoEcho back input from stdin when disable_all_formatting is true
Seiichi Uchida [Sun, 17 Sep 2017 13:14:28 +0000 (22:14 +0900)]
Echo back input from stdin when disable_all_formatting is true

6 years agoAvoid panicking when calling 'cargo fmt --all'
topecongiro [Fri, 15 Sep 2017 06:49:58 +0000 (15:49 +0900)]
Avoid panicking when calling 'cargo fmt --all'

6 years agoUpdate tests
Seiichi Uchida [Fri, 15 Sep 2017 13:32:03 +0000 (22:32 +0900)]
Update tests

6 years agoReorder use items inside blocks
Seiichi Uchida [Fri, 15 Sep 2017 13:31:52 +0000 (22:31 +0900)]
Reorder use items inside blocks

6 years agoImplement ptr_vec_to_ref_vec()
Seiichi Uchida [Fri, 15 Sep 2017 13:27:20 +0000 (22:27 +0900)]
Implement ptr_vec_to_ref_vec()

6 years agoUse Cow to avoid unnecessary allocation
topecongiro [Fri, 15 Sep 2017 09:11:24 +0000 (18:11 +0900)]
Use Cow to avoid unnecessary allocation

6 years agoRemove unnecessary return
topecongiro [Fri, 15 Sep 2017 08:09:45 +0000 (17:09 +0900)]
Remove unnecessary return

6 years agoRemove unnecessary references
topecongiro [Fri, 15 Sep 2017 08:09:30 +0000 (17:09 +0900)]
Remove unnecessary references

6 years agoCargo update
topecongiro [Fri, 15 Sep 2017 08:05:27 +0000 (17:05 +0900)]
Cargo update

6 years agoAdd visual guide for binop_separator
topecongiro [Fri, 15 Sep 2017 06:10:34 +0000 (15:10 +0900)]
Add visual guide for binop_separator

6 years agoRename binop_sep to binop_separator
topecongiro [Fri, 15 Sep 2017 06:05:41 +0000 (15:05 +0900)]
Rename binop_sep to binop_separator

6 years agoSplit after the colon of type ascription
topecongiro [Fri, 15 Sep 2017 06:04:30 +0000 (15:04 +0900)]
Split after the colon of type ascription

6 years agoUpdate tests
topecongiro [Fri, 15 Sep 2017 03:20:58 +0000 (12:20 +0900)]
Update tests

6 years agoCargo fmt
topecongiro [Fri, 15 Sep 2017 03:10:58 +0000 (12:10 +0900)]
Cargo fmt

6 years agoAdd a new config option to control the placement of a binary operator
topecongiro [Fri, 15 Sep 2017 03:10:30 +0000 (12:10 +0900)]
Add a new config option to control the placement of a binary operator

6 years agonightly-0.2.6
Nick Cameron [Thu, 14 Sep 2017 04:06:36 +0000 (16:06 +1200)]
nightly-0.2.6

6 years agoMerge pull request #1948 from topecongiro/issue-1137
Nick Cameron [Thu, 7 Sep 2017 05:35:14 +0000 (17:35 +1200)]
Merge pull request #1948 from topecongiro/issue-1137

Use write_list() to format imports

6 years agoClean up
topecongiro [Wed, 6 Sep 2017 10:30:51 +0000 (19:30 +0900)]
Clean up

6 years agoUse push_rewrite() to remove duplicates
topecongiro [Wed, 6 Sep 2017 10:24:23 +0000 (19:24 +0900)]
Use push_rewrite() to remove duplicates

6 years agoNo cloning
topecongiro [Wed, 6 Sep 2017 10:24:14 +0000 (19:24 +0900)]
No cloning

6 years agoUpdate tests
topecongiro [Wed, 6 Sep 2017 09:48:09 +0000 (18:48 +0900)]
Update tests

6 years agoUse write_list() to format imports
topecongiro [Wed, 6 Sep 2017 09:47:50 +0000 (18:47 +0900)]
Use write_list() to format imports

6 years agoFactor out rewrite_extern_crate()
topecongiro [Wed, 6 Sep 2017 09:44:33 +0000 (18:44 +0900)]
Factor out rewrite_extern_crate()

6 years agoMerge pull request #1947 from topecongiro/issue-1275
Nick Cameron [Tue, 5 Sep 2017 22:21:46 +0000 (10:21 +1200)]
Merge pull request #1947 from topecongiro/issue-1275

Use the last line's width for indent width in rewriting missed span to fix unindented comments

6 years agoUse the last line's width for indent width in rewriting missed span
Seiichi Uchida [Tue, 5 Sep 2017 07:51:54 +0000 (16:51 +0900)]
Use the last line's width for indent width in rewriting missed span

to fix unindented comments

6 years agoRemove duplicates inside visit_stmt()
Seiichi Uchida [Tue, 5 Sep 2017 07:50:55 +0000 (16:50 +0900)]
Remove duplicates inside visit_stmt()

6 years agoMerge pull request #1945 from topecongiro/issue-1095
Nick Cameron [Mon, 4 Sep 2017 23:00:31 +0000 (11:00 +1200)]
Merge pull request #1945 from topecongiro/issue-1095

Exclude prefix colon from span when rewriting comment

6 years agoMerge pull request #1944 from topecongiro/issue-1943
Nick Cameron [Mon, 4 Sep 2017 22:53:36 +0000 (10:53 +1200)]
Merge pull request #1944 from topecongiro/issue-1943

Take attributes_on_same_line_as_field into account

6 years agoMerge pull request #1942 from topecongiro/fixes
Nick Cameron [Mon, 4 Sep 2017 22:52:41 +0000 (10:52 +1200)]
Merge pull request #1942 from topecongiro/fixes

Some Fixes

6 years agoMerge pull request #1940 from topecongiro/issue-1934
Nick Cameron [Mon, 4 Sep 2017 22:50:33 +0000 (10:50 +1200)]
Merge pull request #1940 from topecongiro/issue-1934

Avoid rewriting big block twice

6 years agoRemove colon from faulty span
Seiichi Uchida [Mon, 4 Sep 2017 16:04:31 +0000 (01:04 +0900)]
Remove colon from faulty span

6 years agoAvoid cloning String
Seiichi Uchida [Mon, 4 Sep 2017 16:04:08 +0000 (01:04 +0900)]
Avoid cloning String

6 years agoTake attributes_on_same_line_as_field into account
topecongiro [Mon, 4 Sep 2017 07:15:32 +0000 (16:15 +0900)]
Take attributes_on_same_line_as_field into account

6 years agoFormat long derive
topecongiro [Sat, 2 Sep 2017 23:14:00 +0000 (08:14 +0900)]
Format long derive

6 years agoDo not allow single-lined closure with block body
topecongiro [Sat, 2 Sep 2017 23:10:12 +0000 (08:10 +0900)]
Do not allow single-lined closure with block body

6 years agoUse rewrite() instead of format_expr
topecongiro [Sat, 2 Sep 2017 23:09:37 +0000 (08:09 +0900)]
Use rewrite() instead of format_expr

6 years agoAvoid rewriting big block twice
Seiichi Uchida [Fri, 1 Sep 2017 13:52:54 +0000 (22:52 +0900)]
Avoid rewriting big block twice

6 years agoMerge pull request #1938 from topecongiro/changelog
Nick Cameron [Thu, 31 Aug 2017 20:37:00 +0000 (08:37 +1200)]
Merge pull request #1938 from topecongiro/changelog

Add CHANGELOG.md

6 years agoMerge pull request #1937 from topecongiro/enhance-macro-rewrite
Nick Cameron [Thu, 31 Aug 2017 05:43:52 +0000 (17:43 +1200)]
Merge pull request #1937 from topecongiro/enhance-macro-rewrite

Enhance macro rewrite

6 years agoMerge pull request #1931 from topecongiro/cargo-clippy
Nick Cameron [Thu, 31 Aug 2017 05:18:45 +0000 (17:18 +1200)]
Merge pull request #1931 from topecongiro/cargo-clippy

Apply refactoring from cargo clippy

6 years agoMerge pull request #1930 from topecongiro/poor/item_brace_style
Nick Cameron [Thu, 31 Aug 2017 05:15:42 +0000 (17:15 +1200)]
Merge pull request #1930 from topecongiro/poor/item_brace_style

Add struct_remove_empty_body config option

6 years agoAdd CHANGELOG.md
topecongiro [Sat, 26 Aug 2017 00:29:37 +0000 (09:29 +0900)]
Add CHANGELOG.md

6 years agoEnhance macro rewrite
topecongiro [Wed, 30 Aug 2017 03:00:10 +0000 (12:00 +0900)]
Enhance macro rewrite

6 years agoAdd explicit lifetime
Seiichi Uchida [Thu, 31 Aug 2017 04:24:32 +0000 (13:24 +0900)]
Add explicit lifetime

6 years agoApply refactoring from cargo clippy
Seiichi Uchida [Tue, 29 Aug 2017 13:16:04 +0000 (22:16 +0900)]
Apply refactoring from cargo clippy

6 years agoRefactoring: use context.budget()
topecongiro [Tue, 29 Aug 2017 06:19:56 +0000 (15:19 +0900)]
Refactoring: use context.budget()

6 years agoPut the closing brace of empty enum on the same line with the opening brace
topecongiro [Tue, 29 Aug 2017 05:29:13 +0000 (14:29 +0900)]
Put the closing brace of empty enum on the same line with the opening brace

6 years agonightly-0.2.5
Nick Cameron [Thu, 31 Aug 2017 02:30:31 +0000 (14:30 +1200)]
nightly-0.2.5

And cargo update

6 years agoFixup warnings and test formatting
Nick Cameron [Thu, 31 Aug 2017 02:11:52 +0000 (14:11 +1200)]
Fixup warnings and test formatting

6 years agoUse getters to access `Span` fields
Vadim Petrochenkov [Sat, 19 Aug 2017 18:47:40 +0000 (21:47 +0300)]
Use getters to access `Span` fields

6 years agoMerge pull request #1933 from topecongiro/attributes-on-stmt
Nick Cameron [Wed, 30 Aug 2017 21:30:44 +0000 (09:30 +1200)]
Merge pull request #1933 from topecongiro/attributes-on-stmt

Format and preserve attributes on `ast::Stmt`

6 years agoFormat
topecongiro [Wed, 30 Aug 2017 10:27:50 +0000 (19:27 +0900)]
Format

6 years agoFormat and preserve attributes on ast::Stmt
topecongiro [Wed, 30 Aug 2017 10:27:36 +0000 (19:27 +0900)]
Format and preserve attributes on ast::Stmt

6 years agoRefactoring: remove duplicates
topecongiro [Wed, 30 Aug 2017 10:26:45 +0000 (19:26 +0900)]
Refactoring: remove duplicates

6 years agonightly-0.2.4
Nick Cameron [Wed, 30 Aug 2017 01:56:08 +0000 (13:56 +1200)]
nightly-0.2.4

6 years agoAdd support for `Yield`
Alex Crichton [Sun, 27 Aug 2017 22:31:19 +0000 (15:31 -0700)]
Add support for `Yield`

6 years agonightly-0.2.3
Nick Cameron [Wed, 30 Aug 2017 00:26:27 +0000 (12:26 +1200)]
nightly-0.2.3

6 years agoMerge pull request #1929 from topecongiro/remove-unused-extern-crate
Nick Cameron [Mon, 28 Aug 2017 23:33:26 +0000 (11:33 +1200)]
Merge pull request #1929 from topecongiro/remove-unused-extern-crate

Remove unused extern crate

6 years agoRemove unused extern crate
Seiichi Uchida [Mon, 28 Aug 2017 14:40:01 +0000 (23:40 +0900)]
Remove unused extern crate

6 years agoCargo update
Seiichi Uchida [Mon, 28 Aug 2017 14:39:56 +0000 (23:39 +0900)]
Cargo update

6 years agoMerge pull request #1925 from topecongiro/enhance-comment
Nick Cameron [Sun, 27 Aug 2017 21:33:08 +0000 (09:33 +1200)]
Merge pull request #1925 from topecongiro/enhance-comment

Enhance comment formatting

6 years agoMerge pull request #1924 from topecongiro/issue-1922
Nick Cameron [Sun, 27 Aug 2017 21:08:18 +0000 (09:08 +1200)]
Merge pull request #1924 from topecongiro/issue-1922

Fix a typo in calculating overhead for fn args

6 years agoMerge pull request #1923 from topecongiro/issue-1920
Nick Cameron [Sun, 27 Aug 2017 21:07:35 +0000 (09:07 +1200)]
Merge pull request #1923 from topecongiro/issue-1920

Allow pre-line single-lined comments to stay on the same line

6 years agoMerge pull request #1918 from topecongiro/issue-1917
Nick Cameron [Sun, 27 Aug 2017 21:06:54 +0000 (09:06 +1200)]
Merge pull request #1918 from topecongiro/issue-1917

Ignore empty lines inside arguments of macro with brace

6 years agoUse String::with_capacity() instead of String::new()
topecongiro [Sun, 27 Aug 2017 15:24:10 +0000 (00:24 +0900)]
Use String::with_capacity() instead of String::new()

6 years agoUpdate tests
topecongiro [Sun, 27 Aug 2017 15:18:17 +0000 (00:18 +0900)]
Update tests

6 years agoPreserve blank line between doc comment and attribute
topecongiro [Sun, 27 Aug 2017 15:17:38 +0000 (00:17 +0900)]
Preserve blank line between doc comment and attribute

6 years agoRecover comments between 'trait' and the opening brace
topecongiro [Sun, 27 Aug 2017 15:17:19 +0000 (00:17 +0900)]
Recover comments between 'trait' and the opening brace

6 years agoRecover comments between 'impl' and the opening brace
topecongiro [Sun, 27 Aug 2017 15:16:54 +0000 (00:16 +0900)]
Recover comments between 'impl' and the opening brace

6 years agoRefactor - remove duplicates
topecongiro [Sun, 27 Aug 2017 15:13:42 +0000 (00:13 +0900)]
Refactor - remove duplicates

replacing some functions with recover_missing_comments() and
rewrite_missing_comments().

6 years agoAdd recover_missing_comment_in_span() and rewrite_missing_comment()
topecongiro [Sun, 27 Aug 2017 15:10:46 +0000 (00:10 +0900)]
Add recover_missing_comment_in_span() and rewrite_missing_comment()

6 years agoSuppress cargo warnings
topecongiro [Sun, 27 Aug 2017 15:07:53 +0000 (00:07 +0900)]
Suppress cargo warnings

6 years agoFix a typo in calculating overhead for fn args
topecongiro [Sun, 27 Aug 2017 05:57:21 +0000 (14:57 +0900)]
Fix a typo in calculating overhead for fn args

6 years agoUpdate tests
topecongiro [Sun, 27 Aug 2017 05:41:30 +0000 (14:41 +0900)]
Update tests

6 years agoAllow pre-line single-lined comments to stay on the same line
topecongiro [Sun, 27 Aug 2017 05:41:15 +0000 (14:41 +0900)]
Allow pre-line single-lined comments to stay on the same line

6 years agoHandle macros with tabs
topecongiro [Sun, 27 Aug 2017 04:44:49 +0000 (13:44 +0900)]
Handle macros with tabs

6 years agoIgnore empty lines inside arguments of macro with brace
topecongiro [Fri, 25 Aug 2017 13:35:22 +0000 (22:35 +0900)]
Ignore empty lines inside arguments of macro with brace

6 years agoMerge pull request #1916 from topecongiro/issue-1914
Nick Cameron [Fri, 25 Aug 2017 05:03:36 +0000 (17:03 +1200)]
Merge pull request #1916 from topecongiro/issue-1914

Implement Rewrite trait for ast::ForeignItem

6 years agoAdd a test for #1914 and #1915
topecongiro [Thu, 24 Aug 2017 23:20:11 +0000 (08:20 +0900)]
Add a test for #1914 and #1915

6 years agoImplement Rewrite trait for ast::ForeignItem
topecongiro [Thu, 24 Aug 2017 23:19:51 +0000 (08:19 +0900)]
Implement Rewrite trait for ast::ForeignItem

6 years agoMerge pull request #1910 from topecongiro/config-merge_derives
Nick Cameron [Thu, 24 Aug 2017 19:36:04 +0000 (07:36 +1200)]
Merge pull request #1910 from topecongiro/config-merge_derives

Add merge_derives config option

6 years agoOnly merge consecutive derives
topecongiro [Thu, 24 Aug 2017 14:46:22 +0000 (23:46 +0900)]
Only merge consecutive derives

6 years agoAdd merge_derives config option
topecongiro [Wed, 23 Aug 2017 14:20:32 +0000 (23:20 +0900)]
Add merge_derives config option

6 years agoMerge pull request #1898 from spinda/overflow-controls
Nick Cameron [Thu, 24 Aug 2017 06:10:51 +0000 (18:10 +1200)]
Merge pull request #1898 from spinda/overflow-controls

Add overflow_closures and overflow_match_arms opts

6 years ago0.2.2
Nick Cameron [Tue, 22 Aug 2017 01:09:13 +0000 (13:09 +1200)]
0.2.2