]>
git.lizzy.rs Git - rust.git/log
Seiichi Uchida [Sun, 10 Dec 2017 12:30:12 +0000 (21:30 +0900)]
Remove and_one_line()
Seiichi Uchida [Sun, 10 Dec 2017 12:27:28 +0000 (21:27 +0900)]
Verify whether adding block is safe in rewrite_closure_with_block()
Also ensure that the expression is nested to avoid false-positive.
Seiichi Uchida [Sun, 10 Dec 2017 12:19:51 +0000 (21:19 +0900)]
Add a test for #2262
Nick Cameron [Fri, 8 Dec 2017 07:39:01 +0000 (20:39 +1300)]
Merge pull request #2247 from topecongiro/optimize-snippet
Optimize snippet()
Nick Cameron [Fri, 8 Dec 2017 04:28:01 +0000 (17:28 +1300)]
Merge pull request #2229 from CAD97/patch-2
[Travis] Fix python/travis-cargo on macOS
Seiichi Uchida [Fri, 8 Dec 2017 04:07:42 +0000 (13:07 +0900)]
Replace into() on &str with to_owned()
Seiichi Uchida [Fri, 8 Dec 2017 04:07:28 +0000 (13:07 +0900)]
Remove unused lifetime
Seiichi Uchida [Thu, 7 Dec 2017 08:37:01 +0000 (17:37 +0900)]
Merge pull request #2240 from davidalber/revisit-2219
Adding `print!` to the list of specially-formatted `format!`-like macros
Seiichi Uchida [Thu, 7 Dec 2017 08:32:19 +0000 (17:32 +0900)]
Replace &Rc<String> with &str
David Alber [Thu, 7 Dec 2017 06:42:33 +0000 (22:42 -0800)]
Adding tests for `assert!`, `write!`, and `writeln!`
David Alber [Thu, 7 Dec 2017 06:23:02 +0000 (22:23 -0800)]
Moving `panic!` into the list of macros from the Standard Library
Seiichi Uchida [Thu, 7 Dec 2017 04:53:10 +0000 (13:53 +0900)]
Add FmtVisitor::from_context()
Seiichi Uchida [Thu, 7 Dec 2017 04:51:30 +0000 (13:51 +0900)]
Use explicit lifetime to get rid of unsafe code
at least this is why we use Rust
Seiichi Uchida [Wed, 6 Dec 2017 13:52:43 +0000 (22:52 +0900)]
Convert '&str' into 'String' whenever necessary
Christopher Durham [Wed, 6 Dec 2017 22:47:48 +0000 (17:47 -0500)]
Remove excess trailing &&
Nick Cameron [Wed, 6 Dec 2017 19:47:58 +0000 (08:47 +1300)]
Merge pull request #2248 from alexheretic/master
Fix config warnings leaking into stdout
Alex Butler [Wed, 6 Dec 2017 16:22:09 +0000 (16:22 +0000)]
Fix config warnings leaking into stdout
Seiichi Uchida [Wed, 6 Dec 2017 13:51:52 +0000 (22:51 +0900)]
Update FmtVisitor::from_codemap()
Seiichi Uchida [Wed, 6 Dec 2017 13:49:49 +0000 (22:49 +0900)]
Use SnippetProvider in FmtVisitor and RewriteContext
Seiichi Uchida [Wed, 6 Dec 2017 13:48:48 +0000 (22:48 +0900)]
Add SnippetProvider
Seiichi Uchida [Wed, 6 Dec 2017 12:38:22 +0000 (21:38 +0900)]
Merge pull request #2246 from divarvel/patch-1
Fix format for `spaces_around_ranges` example
Clément Delafargue [Wed, 6 Dec 2017 10:19:23 +0000 (11:19 +0100)]
Fix format for `spaces_around_ranges` example
Christopher Durham [Wed, 6 Dec 2017 09:12:34 +0000 (04:12 -0500)]
Chain commands by &&
See https://github.com/rust-lang-nursery/rustfmt/pull/2229/files#r155177741 for reasoning
Nick Cameron [Wed, 6 Dec 2017 04:36:59 +0000 (17:36 +1300)]
Merge pull request #2243 from topecongiro/issue-2241
Use package name instead of target name for --package filter
Seiichi Uchida [Wed, 6 Dec 2017 03:41:04 +0000 (12:41 +0900)]
Use package name instead of target name for --package filter
Nick Cameron [Wed, 6 Dec 2017 02:52:19 +0000 (15:52 +1300)]
Merge pull request #2221 from topecongiro/rfc/blank-lines
Keep vertical spaces between items or statements within range
Christopher Durham [Wed, 6 Dec 2017 02:42:00 +0000 (21:42 -0500)]
Only export path for linux
as per [@davidalber's advice](https://github.com/rust-lang-nursery/rustfmt/pull/2229#discussion_r155129274)
David Alber [Wed, 6 Dec 2017 00:49:48 +0000 (16:49 -0800)]
Adding `print!` specially-formatted `format!`-like macros list
This commit corrects what appears to be an accidental inclusion of
`panic!` twice in the list resulting from the union of
ffbe52e and
aeb3398 .
David Alber [Wed, 6 Dec 2017 00:45:01 +0000 (16:45 -0800)]
Adding tests for all specially-formatted `format!`-like macros
Seiichi Uchida [Tue, 5 Dec 2017 08:45:19 +0000 (17:45 +0900)]
Add more tests
Seiichi Uchida [Tue, 5 Dec 2017 08:38:27 +0000 (17:38 +0900)]
Handle cases when bound changed from the default
Seiichi Uchida [Tue, 5 Dec 2017 08:38:07 +0000 (17:38 +0900)]
Add a test for 'blank_lines_lower_bound = 1'
Seiichi Uchida [Tue, 5 Dec 2017 08:16:04 +0000 (17:16 +0900)]
Update tests
Seiichi Uchida [Tue, 5 Dec 2017 08:15:58 +0000 (17:15 +0900)]
Cargo fmt
Seiichi Uchida [Tue, 5 Dec 2017 08:15:42 +0000 (17:15 +0900)]
Take into account a trailing newline in buffer
Seiichi Uchida [Tue, 5 Dec 2017 08:14:30 +0000 (17:14 +0900)]
Process blank lines if only they're within file lines range
Seiichi Uchida [Tue, 5 Dec 2017 07:39:45 +0000 (16:39 +0900)]
Keep blank lines around comments with range
Seiichi Uchida [Tue, 5 Dec 2017 07:25:33 +0000 (16:25 +0900)]
Factor out process_comment()
Seiichi Uchida [Tue, 5 Dec 2017 06:19:36 +0000 (15:19 +0900)]
Change the type of argument of push_vertical_spaces()
Seiichi Uchida [Tue, 5 Dec 2017 06:17:40 +0000 (15:17 +0900)]
Add count_newlines() utility function
Nick Cameron [Tue, 5 Dec 2017 03:56:52 +0000 (16:56 +1300)]
Merge pull request #2239 from topecongiro/issue-2157
Fix double indented chained closure
Nick Cameron [Tue, 5 Dec 2017 03:55:31 +0000 (16:55 +1300)]
Merge pull request #2238 from topecongiro/issue-1209
Format a macro in the type position
Nick Cameron [Tue, 5 Dec 2017 03:53:00 +0000 (16:53 +1300)]
Merge pull request #2237 from topecongiro/issue-2131
Do not pass files as arguments to rustfmt when dumping the default config
Seiichi Uchida [Tue, 5 Dec 2017 01:03:23 +0000 (10:03 +0900)]
Fix indent of chain with small parent
Seiichi Uchida [Tue, 5 Dec 2017 01:02:49 +0000 (10:02 +0900)]
Add a test for #2157
Seiichi Uchida [Mon, 4 Dec 2017 23:44:26 +0000 (08:44 +0900)]
Update a test
Seiichi Uchida [Mon, 4 Dec 2017 23:41:20 +0000 (08:41 +0900)]
Foramt macro on types
Seiichi Uchida [Mon, 4 Dec 2017 23:41:10 +0000 (08:41 +0900)]
Add a test for #1209
Seiichi Uchida [Mon, 4 Dec 2017 23:01:29 +0000 (08:01 +0900)]
Do not pass files as arguments to rustfmt when dumping the default config
Christopher Durham [Sun, 3 Dec 2017 02:26:09 +0000 (21:26 -0500)]
Fix macOS build
- Ensure python is available https://github.com/travis-ci/travis-ci/issues/2312
- Only pip install --user on linux, macOS is in virtualenv
- Set PATH in a os-agnostic manner https://github.com/huonw/travis-cargo/pull/71
Nick Cameron [Mon, 4 Dec 2017 04:33:42 +0000 (17:33 +1300)]
Merge pull request #2236 from topecongiro/simple-array
Compress an array whose items are all 'simple'
Nick Cameron [Mon, 4 Dec 2017 04:24:39 +0000 (17:24 +1300)]
Merge pull request #2235 from topecongiro/option_env
Inspect CFG_RELEASE_CHANNEL env var at compile time
topecongiro [Mon, 4 Dec 2017 03:07:06 +0000 (12:07 +0900)]
Compress an array with simple items
topecongiro [Mon, 4 Dec 2017 03:06:46 +0000 (12:06 +0900)]
Factor out array_tactic
topecongiro [Mon, 4 Dec 2017 03:05:16 +0000 (12:05 +0900)]
Update tests
topecongiro [Mon, 4 Dec 2017 02:34:27 +0000 (11:34 +0900)]
Inspect CFG_RELEASE_CHANNEL env var at compile time
Nick Cameron [Sun, 3 Dec 2017 21:00:07 +0000 (10:00 +1300)]
Merge pull request #2219 from topecongiro/issue-549
Handle special-case format! like macros
Seiichi Uchida [Sun, 3 Dec 2017 02:38:16 +0000 (11:38 +0900)]
Cargo fmt
Seiichi Uchida [Sun, 3 Dec 2017 02:37:55 +0000 (11:37 +0900)]
Add macros from the log crate to whitelist
topecongiro [Fri, 1 Dec 2017 10:47:56 +0000 (19:47 +0900)]
Cargo fmt
topecongiro [Fri, 1 Dec 2017 04:44:40 +0000 (13:44 +0900)]
Factor out a mess
topecongiro [Fri, 1 Dec 2017 04:30:21 +0000 (13:30 +0900)]
Cargo fmt and update a test
topecongiro [Fri, 1 Dec 2017 04:30:04 +0000 (13:30 +0900)]
Handle special-case macros
topecongiro [Fri, 1 Dec 2017 04:28:36 +0000 (13:28 +0900)]
Add whitelists of macros that need special-case format
topecongiro [Fri, 1 Dec 2017 04:28:16 +0000 (13:28 +0900)]
Add a test for special case macros like format! and assert!
Nick Cameron [Sun, 3 Dec 2017 02:00:27 +0000 (15:00 +1300)]
Merge pull request #2222 from topecongiro/issue-2197
Do not format fenced code blocks in comment
Nick Cameron [Sun, 3 Dec 2017 01:24:33 +0000 (14:24 +1300)]
Merge pull request #2224 from kbacha/issue-2220
Combine 3 repeated sections into a single section
Nick Cameron [Sun, 3 Dec 2017 00:39:20 +0000 (13:39 +1300)]
0.2.17
Kevin Choubacha [Sat, 2 Dec 2017 23:23:07 +0000 (15:23 -0800)]
Combine 3 repeated sections into a single section
Seiichi Uchida [Sat, 2 Dec 2017 14:01:50 +0000 (23:01 +0900)]
Do not format fenced code blocks in comment
Seiichi Uchida [Sat, 2 Dec 2017 14:01:35 +0000 (23:01 +0900)]
Add a test for #2197
Seiichi Uchida [Sat, 2 Dec 2017 08:45:39 +0000 (17:45 +0900)]
Cargo fmt and update tests
Seiichi Uchida [Sat, 2 Dec 2017 08:43:50 +0000 (17:43 +0900)]
Keep vertical spaces between items or statements within range
Seiichi Uchida [Sat, 2 Dec 2017 07:34:16 +0000 (16:34 +0900)]
Merge pull request #2218 from pietroalbini/fix-ast-for-use_nested_groups
Fix broken build after use_nested_groups lands on nightly
Nick Cameron [Fri, 1 Dec 2017 02:02:16 +0000 (15:02 +1300)]
Merge pull request #2210 from topecongiro/issue-2178
Combine a short callee and a single argument
Seiichi Uchida [Fri, 1 Dec 2017 01:41:42 +0000 (10:41 +0900)]
Merge pull request #2215 from iapain/master
Adds where_single_line in configuration documentation
Nick Cameron [Thu, 30 Nov 2017 23:18:38 +0000 (12:18 +1300)]
Merge pull request #2216 from topecongiro/issue-2214
Preserve trailing comma on array inside macro call
Pietro Albini [Thu, 30 Nov 2017 22:55:12 +0000 (23:55 +0100)]
Fix imports formatting broken after AST change
Nick Cameron [Thu, 30 Nov 2017 23:17:10 +0000 (12:17 +1300)]
Merge pull request #2213 from topecongiro/issue-2212
Format defualtness on specialized impl const
Nick Cameron [Thu, 30 Nov 2017 22:56:01 +0000 (11:56 +1300)]
Merge pull request #1889 from topecongiro/match-arm
Do not put if on the same line as match arm
Nick Cameron [Thu, 30 Nov 2017 20:54:52 +0000 (09:54 +1300)]
Merge pull request #2211 from oli-obk/master
Address clippy lints
Oliver Schneider [Thu, 30 Nov 2017 14:04:19 +0000 (15:04 +0100)]
Run rustfmt
Deepak Thukral [Thu, 30 Nov 2017 13:48:29 +0000 (14:48 +0100)]
docs: fixes incorrect output
topecongiro [Thu, 30 Nov 2017 13:14:06 +0000 (22:14 +0900)]
Look for trailing comma on array and preserve it inside macro call
topecongiro [Thu, 30 Nov 2017 13:13:28 +0000 (22:13 +0900)]
Generalize rewrite_array() to types other than ast::Expr
topecongiro [Thu, 30 Nov 2017 13:12:55 +0000 (22:12 +0900)]
Add a test for #2214
Deepak Thukral [Thu, 30 Nov 2017 12:01:41 +0000 (13:01 +0100)]
docs: Adds where_single_line in configuration documentation
topecongiro [Thu, 30 Nov 2017 10:38:05 +0000 (19:38 +0900)]
Format defualtness on specialized impl const
topecongiro [Thu, 30 Nov 2017 10:37:53 +0000 (19:37 +0900)]
Add a test for #2212
Seiichi Uchida [Thu, 30 Nov 2017 09:07:10 +0000 (18:07 +0900)]
Cargo fmt & update a test
topecongiro [Tue, 15 Aug 2017 15:48:12 +0000 (00:48 +0900)]
Format source codes
topecongiro [Tue, 15 Aug 2017 15:46:54 +0000 (00:46 +0900)]
Do not put if on the same line as match arm
Oliver Schneider [Thu, 30 Nov 2017 08:22:00 +0000 (09:22 +0100)]
Address clippy lints
topecongiro [Thu, 30 Nov 2017 06:00:32 +0000 (15:00 +0900)]
Combine a sigle argument and a short callee
topecongiro [Thu, 30 Nov 2017 06:00:20 +0000 (15:00 +0900)]
Update a test
topecongiro [Thu, 30 Nov 2017 06:00:13 +0000 (15:00 +0900)]
Add a test for #2178
Nick Cameron [Wed, 29 Nov 2017 21:54:25 +0000 (10:54 +1300)]
Merge pull request #2209 from topecongiro/issue-2207
Use an explicit flag to decide on whether to add brace compensation for block expression
Seiichi Uchida [Wed, 29 Nov 2017 21:40:29 +0000 (06:40 +0900)]
Rename is_dummy to has_braces
Seiichi Uchida [Wed, 29 Nov 2017 21:13:42 +0000 (06:13 +0900)]
Fix a typo
Seiichi Uchida [Wed, 29 Nov 2017 21:12:32 +0000 (06:12 +0900)]
Use an explicit flag to decide on whether to add brace compensation