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

6 years agoMerge pull request #1907 from topecongiro/issue-1885
Nick Cameron [Tue, 22 Aug 2017 00:58:27 +0000 (12:58 +1200)]
Merge pull request #1907 from topecongiro/issue-1885

Add indent to macro we could not format

6 years agoAdd multiline_{closure,match_arm}_forces_block
Michael Smith [Fri, 18 Aug 2017 23:50:39 +0000 (16:50 -0700)]
Add multiline_{closure,match_arm}_forces_block

multiline_closure_forces_block = false (default):
    result.and_then(|maybe_value| match maybe_value {
        None => ...,
        Some(value) => ...,
    })

multiline_closure_forces_block = true:
    result.and_then(|maybe_value| {
        match maybe_value {
            None => ...,
            Some(value) => ...,
        }
    })

multiline_match_arm_forces_block = false (default):
    match lorem {
        None => if ipsum {
            println!("Hello World");
        },
        Some(dolor) => ...,
    }

multiline_match_arm_forces_block = true:
    match lorem {
        None => {
            if ipsum {
                println!("Hello World");
            }
        }
        Some(dolor) => ...,
    }

6 years agoAdd indent to macro we could not format
Seiichi Uchida [Mon, 21 Aug 2017 14:19:01 +0000 (23:19 +0900)]
Add indent to macro we could not format

6 years agoMerge pull request #1900 from spinda/attributes-on-same-line
Nick Cameron [Sun, 20 Aug 2017 23:26:36 +0000 (11:26 +1200)]
Merge pull request #1900 from spinda/attributes-on-same-line

Add attributes_on_same_line_as_{field,variant} configs

6 years agoMerge pull request #1906 from topecongiro/remove_count_missing_closing_parens
Nick Cameron [Sun, 20 Aug 2017 22:12:30 +0000 (10:12 +1200)]
Merge pull request #1906 from topecongiro/remove_count_missing_closing_parens

Remove count_missing_closing_parens()

6 years agoMerge pull request #1895 from topecongiro/configs-match_pattern_separator_break_point
Nick Cameron [Sun, 20 Aug 2017 21:30:34 +0000 (09:30 +1200)]
Merge pull request #1895 from topecongiro/configs-match_pattern_separator_break_point

Add mach_pattern_separator_break_point config option

6 years agoMerge pull request #1904 from spinda/assoc-types-bounds-fix
Seiichi Uchida [Sun, 20 Aug 2017 14:37:15 +0000 (23:37 +0900)]
Merge pull request #1904 from spinda/assoc-types-bounds-fix

Fix wrapping of bounds in associated types

6 years agoRemove count_missing_closing_parens()
topecongiro [Sun, 20 Aug 2017 14:23:13 +0000 (23:23 +0900)]
Remove count_missing_closing_parens()

6 years agoFix wrapping of bounds in associated types
Michael Smith [Sat, 19 Aug 2017 21:57:01 +0000 (14:57 -0700)]
Fix wrapping of bounds in associated types

Bounds were wrapped to the full width of the line rather then the width
available after the "type ...: ", resulting in rustfmt unnecessarily producing
lines that were longer than the maximum width.

6 years agoAdd attributes_on_same_line_as_{field,variant}
Michael Smith [Sat, 19 Aug 2017 18:51:24 +0000 (11:51 -0700)]
Add attributes_on_same_line_as_{field,variant}

6 years agoMerge pull request #1896 from spinda/fix-typos
Seiichi Uchida [Sat, 19 Aug 2017 03:42:27 +0000 (12:42 +0900)]
Merge pull request #1896 from spinda/fix-typos

Fix typos

6 years agoFix typos in comment
Michael Smith [Sat, 19 Aug 2017 00:10:50 +0000 (17:10 -0700)]
Fix typos in comment

6 years agoFix typo in comment line overflow message
Michael Smith [Fri, 18 Aug 2017 23:31:13 +0000 (16:31 -0700)]
Fix typo in comment line overflow message

s/error_on_lineoverflow_comments/error_on_line_overflow_comments

6 years agoUpdate tests
Seiichi Uchida [Fri, 18 Aug 2017 14:20:12 +0000 (23:20 +0900)]
Update tests

6 years agoSupport match_pattern_separator_break_point config option
Seiichi Uchida [Fri, 18 Aug 2017 14:19:47 +0000 (23:19 +0900)]
Support match_pattern_separator_break_point config option

6 years agoAdd mach_pattern_separator_break_point config option
Seiichi Uchida [Fri, 18 Aug 2017 14:19:11 +0000 (23:19 +0900)]
Add mach_pattern_separator_break_point config option

6 years agoUse write_list() for rewriting match arms
Seiichi Uchida [Fri, 18 Aug 2017 14:15:56 +0000 (23:15 +0900)]
Use write_list() for rewriting match arms

6 years agoMerge pull request #1888 from topecongiro/no-panic-against-invalid-attr
Nick Cameron [Wed, 16 Aug 2017 04:28:15 +0000 (16:28 +1200)]
Merge pull request #1888 from topecongiro/no-panic-against-invalid-attr

Do not panic against files with invalid attributes

6 years agoMerge pull request #1886 from topecongiro/issue-1882
Nick Cameron [Wed, 16 Aug 2017 04:27:37 +0000 (16:27 +1200)]
Merge pull request #1886 from topecongiro/issue-1882

Obey to `array_layout` when using mixed tactic for array

6 years agoMerge pull request #1884 from topecongiro/better-error-report
Nick Cameron [Tue, 15 Aug 2017 23:41:39 +0000 (11:41 +1200)]
Merge pull request #1884 from topecongiro/better-error-report

Enhance error messages

6 years agoDo not panic against files with invalid attributes
topecongiro [Tue, 15 Aug 2017 15:11:20 +0000 (00:11 +0900)]
Do not panic against files with invalid attributes

6 years agoUpdate visual guide
Seiichi Uchida [Tue, 15 Aug 2017 13:10:55 +0000 (22:10 +0900)]
Update visual guide

6 years agoObey to array_layout when using mixed tactic for array
Seiichi Uchida [Tue, 15 Aug 2017 13:10:39 +0000 (22:10 +0900)]
Obey to array_layout when using mixed tactic for array

6 years agoPrint error messages with colors if possible
topecongiro [Tue, 15 Aug 2017 07:54:18 +0000 (16:54 +0900)]
Print error messages with colors if possible

6 years agoEnhance error messages
topecongiro [Tue, 15 Aug 2017 07:54:07 +0000 (16:54 +0900)]
Enhance error messages

with rustc style

6 years agoAdd fields to FormattingError
topecongiro [Tue, 15 Aug 2017 07:52:11 +0000 (16:52 +0900)]
Add fields to FormattingError

is_comment is set to true if the error happened inside comment.
line_buffer is the line which overflowed.

6 years agoNo more sorry
topecongiro [Tue, 15 Aug 2017 07:49:54 +0000 (16:49 +0900)]
No more sorry

6 years agoMove isatty() to utils.rs
topecongiro [Tue, 15 Aug 2017 07:49:02 +0000 (16:49 +0900)]
Move isatty() to utils.rs

6 years agoMerge pull request #1872 from sinkuu/remove_newline
Seiichi Uchida [Mon, 14 Aug 2017 15:28:31 +0000 (00:28 +0900)]
Merge pull request #1872 from sinkuu/remove_newline

Remove blank lines at start or end of block

6 years agoMerge pull request #1879 from topecongiro/issue-1878
Nick Cameron [Sun, 13 Aug 2017 23:10:28 +0000 (11:10 +1200)]
Merge pull request #1879 from topecongiro/issue-1878

Use correct width for subexpr_list

6 years agoMerge pull request #1876 from Marwes/patch-1
Nick Cameron [Sun, 13 Aug 2017 23:06:06 +0000 (11:06 +1200)]
Merge pull request #1876 from Marwes/patch-1

Explain how to solve missing dll's on Windows

6 years agoMerge pull request #1875 from topecongiro/empty-tuple-pattern
Nick Cameron [Sun, 13 Aug 2017 23:05:39 +0000 (11:05 +1200)]
Merge pull request #1875 from topecongiro/empty-tuple-pattern

Allow empty tuple pattern

6 years agoMerge pull request #1829 from topecongiro/issue-1046
Nick Cameron [Sun, 13 Aug 2017 21:52:28 +0000 (09:52 +1200)]
Merge pull request #1829 from topecongiro/issue-1046

Allow attributes to stay on the same line with fields

6 years agoUse correct width for subexpr_list
topecongiro [Sun, 13 Aug 2017 01:17:52 +0000 (10:17 +0900)]
Use correct width for subexpr_list

6 years agoUse utils::inner_attributes
sinkuu [Sat, 12 Aug 2017 08:01:46 +0000 (17:01 +0900)]
Use utils::inner_attributes

6 years agoUse attribute span
sinkuu [Fri, 11 Aug 2017 13:16:24 +0000 (22:16 +0900)]
Use attribute span

6 years agoExplain how to solve missing dll's on Windows
Markus Westerlind [Sat, 12 Aug 2017 07:38:12 +0000 (09:38 +0200)]
Explain how to solve missing dll's on Windows

cc #1736

6 years agoAllow empty tuple pattern
topecongiro [Sat, 12 Aug 2017 06:59:35 +0000 (15:59 +0900)]
Allow empty tuple pattern

6 years agoCargo update
topecongiro [Fri, 11 Aug 2017 08:54:54 +0000 (17:54 +0900)]
Cargo update

6 years agoRemove 'mut' notation
topecongiro [Fri, 11 Aug 2017 08:54:38 +0000 (17:54 +0900)]
Remove 'mut' notation

6 years agoUpdate tests
topecongiro [Fri, 11 Aug 2017 08:54:30 +0000 (17:54 +0900)]
Update tests

6 years agoUpdate tests
topecongiro [Fri, 11 Aug 2017 08:54:20 +0000 (17:54 +0900)]
Update tests

6 years agoAllow attributes to stay on the same line with fields
topecongiro [Fri, 11 Aug 2017 08:52:49 +0000 (17:52 +0900)]
Allow attributes to stay on the same line with fields

6 years agoGeneralize combine_attr_and_expr
topecongiro [Fri, 11 Aug 2017 08:52:13 +0000 (17:52 +0900)]
Generalize combine_attr_and_expr

6 years agoFormat
sinkuu [Fri, 11 Aug 2017 07:17:12 +0000 (16:17 +0900)]
Format

6 years agoRemove unnecessary blank lines at the start and the end of a block
sinkuu [Fri, 11 Aug 2017 07:15:28 +0000 (16:15 +0900)]
Remove unnecessary blank lines at the start and the end of a block

6 years agoMerge pull request #1870 from topecongiro/missing-comments-in-fn
Nick Cameron [Fri, 11 Aug 2017 05:07:44 +0000 (17:07 +1200)]
Merge pull request #1870 from topecongiro/missing-comments-in-fn

Cover comments between function args and the brace

6 years agoCover comments between function args and the brace
topecongiro [Thu, 10 Aug 2017 14:10:41 +0000 (23:10 +0900)]
Cover comments between function args and the brace

6 years agoMerge pull request #1869 from topecongiro/configs-error_on_line_overflow_comments
Nick Cameron [Wed, 9 Aug 2017 23:36:39 +0000 (11:36 +1200)]
Merge pull request #1869 from topecongiro/configs-error_on_line_overflow_comments

Add error_on_line_overflow_comments config option

6 years agoAdd error_on_line_overflow_comments config option
topecongiro [Wed, 9 Aug 2017 23:13:20 +0000 (08:13 +0900)]
Add error_on_line_overflow_comments config option

6 years agoMerge pull request #1861 from topecongiro/refactor-chain
Nick Cameron [Wed, 9 Aug 2017 21:03:45 +0000 (09:03 +1200)]
Merge pull request #1861 from topecongiro/refactor-chain

Remove unnecessary rewriting

6 years agoMerge pull request #1864 from topecongiro/reorder-extern-crates
Nick Cameron [Wed, 9 Aug 2017 08:45:49 +0000 (20:45 +1200)]
Merge pull request #1864 from topecongiro/reorder-extern-crates

Reorder extern crates

6 years agoFix a typo
topecongiro [Mon, 7 Aug 2017 08:32:31 +0000 (17:32 +0900)]
Fix a typo

6 years agoAvoid rewriting the last argument whenever possible
topecongiro [Mon, 7 Aug 2017 08:30:32 +0000 (17:30 +0900)]
Avoid rewriting the last argument whenever possible

6 years agoAdd leave_last field to ListItems
topecongiro [Mon, 7 Aug 2017 08:29:55 +0000 (17:29 +0900)]
Add leave_last field to ListItems

6 years agoFormat source codes and update tests
Seiichi Uchida [Mon, 7 Aug 2017 06:17:57 +0000 (15:17 +0900)]
Format source codes and update tests

6 years agoAvoid trial and error in rewrite_chain whenever possible
Seiichi Uchida [Mon, 7 Aug 2017 06:17:35 +0000 (15:17 +0900)]
Avoid trial and error in rewrite_chain whenever possible

6 years agoHandle prefix and suffix try operators differently
Seiichi Uchida [Sun, 6 Aug 2017 13:56:51 +0000 (22:56 +0900)]
Handle prefix and suffix try operators differently

6 years agoMerge pull request #1863 from topecongiro/issue-1862
Nick Cameron [Wed, 9 Aug 2017 07:16:42 +0000 (19:16 +1200)]
Merge pull request #1863 from topecongiro/issue-1862

Keep the pre-comment on the same line with item if it fits max width

6 years agoFormat source codes and update tests
topecongiro [Tue, 8 Aug 2017 15:16:35 +0000 (00:16 +0900)]
Format source codes and update tests