]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoUpdate to last Emitter update
Guillaume Gomez [Fri, 20 Oct 2017 13:53:06 +0000 (15:53 +0200)]
Update to last Emitter update

6 years agoMerge pull request #2048 from japaric/required-version
Nick Cameron [Fri, 20 Oct 2017 05:53:27 +0000 (11:23 +0530)]
Merge pull request #2048 from japaric/required-version

add `required-version` option to rustfmt.toml

6 years agoMerge pull request #2064 from topecongiro/issue-2063
Nick Cameron [Tue, 17 Oct 2017 09:40:54 +0000 (15:10 +0530)]
Merge pull request #2064 from topecongiro/issue-2063

Take width of return type into account for body shape of closure

6 years agoFix a typo
Seiichi Uchida [Tue, 17 Oct 2017 02:13:20 +0000 (11:13 +0900)]
Fix a typo

6 years agoMerge pull request #2060 from tamird/doc-dump-default-config
Nick Cameron [Mon, 16 Oct 2017 15:29:30 +0000 (22:29 +0700)]
Merge pull request #2060 from tamird/doc-dump-default-config

Document `--dump-default-config` in README.md

6 years agoMerge pull request #2058 from BenjaminGill-Metaswitch/patch-1
Nick Cameron [Mon, 16 Oct 2017 15:26:10 +0000 (22:26 +0700)]
Merge pull request #2058 from BenjaminGill-Metaswitch/patch-1

Add crates.io version shield

6 years agoAdd a test for #2063
Seiichi Uchida [Mon, 16 Oct 2017 15:12:22 +0000 (00:12 +0900)]
Add a test for #2063

6 years agoTake width of return type into account
Seiichi Uchida [Mon, 16 Oct 2017 15:10:19 +0000 (00:10 +0900)]
Take width of return type into account

6 years agonightly-0.2.9
Seiichi Uchida [Mon, 16 Oct 2017 03:23:40 +0000 (12:23 +0900)]
nightly-0.2.9

6 years agoCargo update
Seiichi Uchida [Mon, 16 Oct 2017 03:23:13 +0000 (12:23 +0900)]
Cargo update

6 years agocorrect --dump-default-config usage string
Tamir Duberstein [Sat, 14 Oct 2017 12:08:52 +0000 (08:08 -0400)]
correct --dump-default-config usage string

6 years agoDocument `--dump-default-config` in README.md
Saulo Silva [Tue, 19 Sep 2017 02:56:49 +0000 (22:56 -0400)]
Document `--dump-default-config` in README.md

Fixes #317.

6 years agoMerge pull request #2047 from japaric/dump-default-config-2
Nick Cameron [Fri, 13 Oct 2017 14:06:15 +0000 (22:06 +0800)]
Merge pull request #2047 from japaric/dump-default-config-2

output --dump-default-config to stdout if no path is given

6 years agoMerge pull request #2042 from topecongiro/refactoring
Nick Cameron [Fri, 13 Oct 2017 14:00:10 +0000 (22:00 +0800)]
Merge pull request #2042 from topecongiro/refactoring

Refactorings

6 years agoMerge pull request #2045 from topecongiro/issue-2044
Nick Cameron [Fri, 13 Oct 2017 13:59:13 +0000 (21:59 +0800)]
Merge pull request #2045 from topecongiro/issue-2044

Simplify multiline case in rewrite_struct_field()

6 years agoAdd crates.io version shield
Benjamin Gill [Fri, 13 Oct 2017 10:46:00 +0000 (11:46 +0100)]
Add crates.io version shield

6 years agoMerge pull request #2051 from petrochenkov/dyn
Seiichi Uchida [Fri, 13 Oct 2017 10:18:05 +0000 (19:18 +0900)]
Merge pull request #2051 from petrochenkov/dyn

Fix breakage from `dyn Trait`

6 years agodefault required-version to the current rustfmt version
Jorge Aparicio [Tue, 10 Oct 2017 20:37:47 +0000 (22:37 +0200)]
default required-version to the current rustfmt version

6 years agorun cargo fmt
Jorge Aparicio [Tue, 10 Oct 2017 20:36:41 +0000 (22:36 +0200)]
run cargo fmt

6 years agoFix breakage from `dyn Trait`
Vadim Petrochenkov [Tue, 10 Oct 2017 18:20:57 +0000 (21:20 +0300)]
Fix breakage from `dyn Trait`

6 years agoMerge pull request #2049 from SingingTree/issue-1211-test
Seiichi Uchida [Tue, 10 Oct 2017 07:16:09 +0000 (16:16 +0900)]
Merge pull request #2049 from SingingTree/issue-1211-test

Add a test for issue 1211, showing it's no longer an issue.

6 years agoAdd a test for issue 1211, showing it's no longer an issue.
Bryce Van Dyk [Tue, 10 Oct 2017 05:51:44 +0000 (18:51 +1300)]
Add a test for issue 1211, showing it's no longer an issue.

Since rustfmt has moved away from syntex the overflow seen in issue 1211
is no longer a problem. This commit adds a test to verify that.

6 years agoadd `required-version` option to rustfmt.toml
Jorge Aparicio [Mon, 9 Oct 2017 21:07:53 +0000 (23:07 +0200)]
add `required-version` option to rustfmt.toml

This option specifies the rustfmt version that *must* be used to format the code. Trying to use a
different version raises an error.

closes #1505

6 years agooutput --dump-default-config to stdout if no path is given
Jorge Aparicio [Mon, 9 Oct 2017 18:56:16 +0000 (20:56 +0200)]
output --dump-default-config to stdout if no path is given

closes #1988

6 years agoFix a typo
Seiichi Uchida [Mon, 9 Oct 2017 13:44:00 +0000 (22:44 +0900)]
Fix a typo

6 years agoAdd a test for #2044
Seiichi Uchida [Sun, 8 Oct 2017 13:37:13 +0000 (22:37 +0900)]
Add a test for #2044

6 years agoSimplify multiline case in rewrite_struct_field()
Seiichi Uchida [Sun, 8 Oct 2017 13:36:03 +0000 (22:36 +0900)]
Simplify multiline case in rewrite_struct_field()

6 years agoGet rid of rewrite_struct_field_type()
Seiichi Uchida [Sun, 8 Oct 2017 13:35:45 +0000 (22:35 +0900)]
Get rid of rewrite_struct_field_type()

6 years agoRun cargo fmt
Seiichi Uchida [Sat, 7 Oct 2017 13:38:32 +0000 (22:38 +0900)]
Run cargo fmt

rustfmt removes trailing comma from a function call. This could be a bug.

6 years agoUpdate doc comments in chains.rs
Seiichi Uchida [Sat, 7 Oct 2017 13:31:38 +0000 (22:31 +0900)]
Update doc comments in chains.rs

6 years agoSimplify join_rewrites()
Seiichi Uchida [Sat, 7 Oct 2017 13:30:12 +0000 (22:30 +0900)]
Simplify join_rewrites()

6 years agoGet rid of choose_first_connector()
Seiichi Uchida [Sat, 7 Oct 2017 13:29:53 +0000 (22:29 +0900)]
Get rid of choose_first_connector()

6 years agoChange return type of Indent::to_string() to Cow<'static, str>
Seiichi Uchida [Sat, 7 Oct 2017 13:21:53 +0000 (22:21 +0900)]
Change return type of Indent::to_string() to Cow<'static, str>

6 years agoFaster last_line_extendable()
Seiichi Uchida [Sat, 7 Oct 2017 13:17:01 +0000 (22:17 +0900)]
Faster last_line_extendable()

6 years agoSimplify wrap_str()
Seiichi Uchida [Sat, 7 Oct 2017 13:14:33 +0000 (22:14 +0900)]
Simplify wrap_str()

6 years agoChange the signature of wrap_str()
Seiichi Uchida [Sat, 7 Oct 2017 13:04:02 +0000 (22:04 +0900)]
Change the signature of wrap_str()

6 years agoRemove calling rewrite() against String
Seiichi Uchida [Sat, 7 Oct 2017 13:01:44 +0000 (22:01 +0900)]
Remove calling rewrite() against String

6 years agoRemove String::rewrite()
Seiichi Uchida [Sat, 7 Oct 2017 12:58:29 +0000 (21:58 +0900)]
Remove String::rewrite()

6 years agoRun wrap_str() only when chain_indent is set to "Visual"
Seiichi Uchida [Sat, 7 Oct 2017 12:51:15 +0000 (21:51 +0900)]
Run wrap_str() only when chain_indent is set to "Visual"

6 years agoFix a typo
Seiichi Uchida [Sat, 7 Oct 2017 12:48:45 +0000 (21:48 +0900)]
Fix a typo

6 years agoUse correct budget for the last child of chain
Seiichi Uchida [Sat, 7 Oct 2017 12:48:05 +0000 (21:48 +0900)]
Use correct budget for the last child of chain

6 years agoMerge pull request #2038 from jugglerchris/add_test_skip_attr
Nick Cameron [Sat, 7 Oct 2017 05:19:15 +0000 (13:19 +0800)]
Merge pull request #2038 from jugglerchris/add_test_skip_attr

Add a test that the skip attribute applies to other attributes.

6 years agoMerge pull request #2028 from wada314/win-test-crlf
Nick Cameron [Sat, 7 Oct 2017 05:12:16 +0000 (13:12 +0800)]
Merge pull request #2028 from wada314/win-test-crlf

Fix the test framework is failing in CRLF env.

6 years agoAdd a test that the skip attribute applies to other attributes.
Chris Emerson [Fri, 6 Oct 2017 21:57:59 +0000 (22:57 +0100)]
Add a test that the skip attribute applies to other attributes.

6 years agoFix the test framework is failing in CRLF env
Shohei Wada [Fri, 6 Oct 2017 16:53:55 +0000 (01:53 +0900)]
Fix the test framework is failing in CRLF env

6 years agoMerge pull request #2035 from topecongiro/deprecate-try_opt!
Nick Cameron [Thu, 5 Oct 2017 12:45:52 +0000 (20:45 +0800)]
Merge pull request #2035 from topecongiro/deprecate-try_opt!

Replace `try_opt!` macro with a `?` operator

6 years agoMerge pull request #2029 from wada314/fix-crlf
Nick Cameron [Thu, 5 Oct 2017 12:07:29 +0000 (20:07 +0800)]
Merge pull request #2029 from wada314/fix-crlf

Fix broken tests under CRLF environment.

6 years agoUse push_str() instead of write!()
topecongiro [Thu, 5 Oct 2017 12:05:28 +0000 (21:05 +0900)]
Use push_str() instead of write!()

6 years agoUpdate Contributing.md
topecongiro [Thu, 5 Oct 2017 11:50:50 +0000 (20:50 +0900)]
Update Contributing.md

6 years agoReplace 'try_opt!' macro with a '?' operator
topecongiro [Thu, 5 Oct 2017 11:50:19 +0000 (20:50 +0900)]
Replace 'try_opt!' macro with a '?' operator

6 years agoMerge pull request #2032 from topecongiro/trailing-whitespaces-in-macro-def
Nick Cameron [Thu, 5 Oct 2017 11:34:12 +0000 (19:34 +0800)]
Merge pull request #2032 from topecongiro/trailing-whitespaces-in-macro-def

Remove trailing whitespaces in macro def

6 years agoAdd a test
topecongiro [Thu, 5 Oct 2017 10:44:45 +0000 (19:44 +0900)]
Add a test

6 years agoMerge pull request #2023 from topecongiro/issue-2020
Nick Cameron [Thu, 5 Oct 2017 10:09:49 +0000 (18:09 +0800)]
Merge pull request #2023 from topecongiro/issue-2020

Use a correct budget for where predicate

6 years agoMerge pull request #2019 from topecongiro/issue-2018
Nick Cameron [Thu, 5 Oct 2017 09:30:45 +0000 (17:30 +0800)]
Merge pull request #2019 from topecongiro/issue-2018

Break after '=' if a single line rhs exceeds max width

6 years agoMerge pull request #2017 from topecongiro/issue-1987
Nick Cameron [Thu, 5 Oct 2017 09:27:17 +0000 (17:27 +0800)]
Merge pull request #2017 from topecongiro/issue-1987

Format strings in attributes when `format_strings = true`

6 years agoRemove trailing whitespaces in macro def
topecongiro [Thu, 5 Oct 2017 07:17:59 +0000 (16:17 +0900)]
Remove trailing whitespaces in macro def

6 years agoAdd InString field to FullCodeCharKind
topecongiro [Thu, 5 Oct 2017 07:17:04 +0000 (16:17 +0900)]
Add InString field to FullCodeCharKind

6 years agoFix broken tests under CRLF env.
Shohei Wada [Wed, 4 Oct 2017 15:23:17 +0000 (00:23 +0900)]
Fix broken tests under CRLF env.

6 years agoMerge pull request #2014 from topecongiro/fn-sig
Nick Cameron [Wed, 4 Oct 2017 12:18:02 +0000 (20:18 +0800)]
Merge pull request #2014 from topecongiro/fn-sig

Reduce number of arguments in rewrite_fn()

6 years agoMerge pull request #2011 from topecongiro/rewrite_call_inner
Nick Cameron [Wed, 4 Oct 2017 12:14:10 +0000 (20:14 +0800)]
Merge pull request #2011 from topecongiro/rewrite_call_inner

Change return type of rewrite_call_inner() to Option<String>

6 years agoMerge pull request #2026 from SingingTree/remove-184-fixme
Seiichi Uchida [Wed, 4 Oct 2017 09:55:07 +0000 (18:55 +0900)]
Merge pull request #2026 from SingingTree/remove-184-fixme

Uncomment fixme associated with #184 in loop.rs as this issue is fixed.

6 years agoUncomment fixme associated with #184 in loop.rs as this issue is fixed.
Bryce Van Dyk [Wed, 4 Oct 2017 09:02:28 +0000 (22:02 +1300)]
Uncomment fixme associated with #184 in loop.rs as this issue is fixed.

6 years agoUpdate tests
Seiichi Uchida [Sun, 1 Oct 2017 15:04:32 +0000 (00:04 +0900)]
Update tests

6 years agoUse a correct budget for where predicate
Seiichi Uchida [Sun, 1 Oct 2017 15:00:48 +0000 (00:00 +0900)]
Use a correct budget for where predicate

6 years agoUse offset_left()
Seiichi Uchida [Sun, 1 Oct 2017 15:00:12 +0000 (00:00 +0900)]
Use offset_left()

6 years agoUpdate tests
Seiichi Uchida [Sun, 1 Oct 2017 12:21:20 +0000 (21:21 +0900)]
Update tests

6 years agoBreak after '=' if a single line rhs exceeds max width
Seiichi Uchida [Sun, 1 Oct 2017 12:20:15 +0000 (21:20 +0900)]
Break after '=' if a single line rhs exceeds max width

6 years agoAdd a test for #1987
topecongiro [Sun, 1 Oct 2017 11:30:32 +0000 (20:30 +0900)]
Add a test for #1987

6 years agoMove logic for doc comments to ast::Attribute::rewrite()
topecongiro [Sun, 1 Oct 2017 10:39:41 +0000 (19:39 +0900)]
Move logic for doc comments to ast::Attribute::rewrite()

6 years agoImplement StringFormat::new()
topecongiro [Sun, 1 Oct 2017 10:39:00 +0000 (19:39 +0900)]
Implement StringFormat::new()

6 years agoAdd rewrite_literal()
topecongiro [Thu, 28 Sep 2017 01:47:01 +0000 (10:47 +0900)]
Add rewrite_literal()

6 years agoMerge pull request #2005 from topecongiro/issue-2003
Nick Cameron [Fri, 29 Sep 2017 13:27:37 +0000 (21:27 +0800)]
Merge pull request #2005 from topecongiro/issue-2003

Put the opening brace of fn body on the next line if it exceeds max width

6 years agoMerge pull request #1997 from topecongiro/issue-1995
Nick Cameron [Fri, 29 Sep 2017 12:40:53 +0000 (20:40 +0800)]
Merge pull request #1997 from topecongiro/issue-1995

Fix a budget bug in Arg::rewrite()

6 years agoFactor out FnSig::to_str()
topecongiro [Fri, 29 Sep 2017 06:09:13 +0000 (15:09 +0900)]
Factor out FnSig::to_str()

6 years agoHandle 'extern "Rust"' in format_abi()
topecongiro [Fri, 29 Sep 2017 06:08:48 +0000 (15:08 +0900)]
Handle 'extern "Rust"' in format_abi()

6 years agoUse is_empty_block()
topecongiro [Fri, 29 Sep 2017 03:51:06 +0000 (12:51 +0900)]
Use is_empty_block()

6 years agoRemove has_braces from argument
topecongiro [Fri, 29 Sep 2017 03:50:35 +0000 (12:50 +0900)]
Remove has_braces from argument

6 years agoUse FnSig in rewrite_fn() and rewrite_fn_base()
topecongiro [Fri, 29 Sep 2017 03:49:39 +0000 (12:49 +0900)]
Use FnSig in rewrite_fn() and rewrite_fn_base()

6 years agoImplement FnSig type
topecongiro [Fri, 29 Sep 2017 03:45:42 +0000 (12:45 +0900)]
Implement FnSig type

6 years agoAdd a test for #2003
topecongiro [Thu, 28 Sep 2017 11:15:33 +0000 (20:15 +0900)]
Add a test for #2003

6 years agoPut the opening brace of fn body on the next line if it exceeds max width
topecongiro [Thu, 28 Sep 2017 11:12:04 +0000 (20:12 +0900)]
Put the opening brace of fn body on the next line if it exceeds max width

6 years agoMerge pull request #2004 from topecongiro/0.2.8
Seiichi Uchida [Thu, 28 Sep 2017 11:01:46 +0000 (20:01 +0900)]
Merge pull request #2004 from topecongiro/0.2.8

nightly-0.2.8

6 years agonightly-0.2.8
topecongiro [Thu, 28 Sep 2017 09:11:23 +0000 (18:11 +0900)]
nightly-0.2.8

6 years agoCargo update
topecongiro [Thu, 28 Sep 2017 09:11:18 +0000 (18:11 +0900)]
Cargo update

6 years agoMerge pull request #2000 from Badel2/dotdoteq
Seiichi Uchida [Thu, 28 Sep 2017 09:06:56 +0000 (18:06 +0900)]
Merge pull request #2000 from Badel2/dotdoteq

Support for `..=` syntax

6 years agoChange return type of rewrite_call_inner() to Option<String>
topecongiro [Thu, 28 Sep 2017 07:33:30 +0000 (16:33 +0900)]
Change return type of rewrite_call_inner() to Option<String>

6 years agoReplace `...` by `..=` in range expr tests
Badel2 [Wed, 27 Sep 2017 20:36:46 +0000 (22:36 +0200)]
Replace `...` by `..=` in range expr tests

6 years agoSupport `..=` syntax
Badel2 [Wed, 27 Sep 2017 20:19:10 +0000 (22:19 +0200)]
Support `..=` syntax

6 years agoFix a budget bug in Arg::rewrite()
topecongiro [Tue, 26 Sep 2017 02:20:47 +0000 (11:20 +0900)]
Fix a budget bug in Arg::rewrite()

6 years agoMerge pull request #1996 from Badel2/dotdoteq
Seiichi Uchida [Tue, 26 Sep 2017 01:45:17 +0000 (10:45 +0900)]
Merge pull request #1996 from Badel2/dotdoteq

Temporarily replace `RangeEnd::Included` with `_`

6 years agoTemporarily replace `RangeEnd::Included` with `_`
Badel2 [Mon, 25 Sep 2017 18:51:19 +0000 (20:51 +0200)]
Temporarily replace `RangeEnd::Included` with `_`

6 years agoMerge pull request #1992 from opilar/bugfix/unused
Nick Cameron [Thu, 21 Sep 2017 20:19:27 +0000 (08:19 +1200)]
Merge pull request #1992 from opilar/bugfix/unused

Remove unused import

6 years agoRemove unused import
opilarium [Thu, 21 Sep 2017 19:54:29 +0000 (22:54 +0300)]
Remove unused import

6 years agoComment out `stdin_disable_all_formatting_test`
Nick Cameron [Thu, 21 Sep 2017 08:06:44 +0000 (20:06 +1200)]
Comment out `stdin_disable_all_formatting_test`

6 years agonightly-0.2.7
Nick Cameron [Wed, 20 Sep 2017 22:50:45 +0000 (10:50 +1200)]
nightly-0.2.7

6 years agoMerge pull request #1983 from topecongiro/cleanup
Nick Cameron [Tue, 19 Sep 2017 05:08:17 +0000 (17:08 +1200)]
Merge pull request #1983 from topecongiro/cleanup

Refactoring: clean up source code

6 years agoAdd debug logging
topecongiro [Tue, 19 Sep 2017 04:46:13 +0000 (13:46 +0900)]
Add debug logging

6 years agoMerge pull request #1981 from ssilva/master
Nick Cameron [Tue, 19 Sep 2017 02:44:01 +0000 (14:44 +1200)]
Merge pull request #1981 from ssilva/master

Show examples of default values first and annotate them with "(default)"

6 years agoCargo fmt and update tests
topecongiro [Tue, 19 Sep 2017 02:41:50 +0000 (11:41 +0900)]
Cargo fmt and update tests

6 years agoUse horizontal layout for a function with a single argument
topecongiro [Tue, 19 Sep 2017 02:41:05 +0000 (11:41 +0900)]
Use horizontal layout for a function with a single argument

foo(long_arg)

instead of

foo(
    long_arg,
)