]>
git.lizzy.rs Git - rust.git/log
Nick Cameron [Sat, 26 Sep 2015 02:05:22 +0000 (14:05 +1200)]
Merge pull request #354 from nrc/max-fn
Use vertical formatting when function args width > limit
Nick Cameron [Sat, 26 Sep 2015 02:00:19 +0000 (14:00 +1200)]
rebasing changes and address review comment
Nick Cameron [Wed, 23 Sep 2015 23:15:08 +0000 (11:15 +1200)]
Fix tests
Nick Cameron [Wed, 23 Sep 2015 23:01:01 +0000 (11:01 +1200)]
Changes to source formatting
Nick Cameron [Wed, 23 Sep 2015 23:00:14 +0000 (11:00 +1200)]
Heuristic max width for function calls
Nick Cameron [Sat, 26 Sep 2015 01:50:00 +0000 (13:50 +1200)]
Merge pull request #352 from nrc/ty_parens_fix
Formatting of some types
Nick Cameron [Wed, 23 Sep 2015 20:36:21 +0000 (08:36 +1200)]
Formatting of some types
Closes #341
Nick Cameron [Sat, 26 Sep 2015 01:36:59 +0000 (13:36 +1200)]
Merge pull request #362 from marcusklaas/rewrite-string
Make rewrite_string return `Option<String>`
Nick Cameron [Sat, 26 Sep 2015 01:35:41 +0000 (13:35 +1200)]
Merge pull request #365 from marcusklaas/format-struct-panic
Use the maximum available width in struct formatting
Marcus Klaas [Fri, 25 Sep 2015 14:53:44 +0000 (16:53 +0200)]
Use the maximum available width in struct formatting
Previously, we'd use an approximation for the maximum width since the configuration wasn't available in `write_list`.
Marcus Klaas de Vries [Fri, 25 Sep 2015 11:28:09 +0000 (13:28 +0200)]
Merge pull request #363 from marcusklaas/rustup35
Adjust for changed representation of box expressions in AST
Marcus Klaas [Fri, 25 Sep 2015 11:25:52 +0000 (13:25 +0200)]
Adjust for changed representation of box expressions in AST
Marcus Klaas [Fri, 25 Sep 2015 10:53:25 +0000 (12:53 +0200)]
Make rewrite_string return `Option<String>`
Nick Cameron [Thu, 24 Sep 2015 08:30:54 +0000 (20:30 +1200)]
Merge pull request #359 from eefriedman/rewrite-addrof
Add support for formatting AddrOf (unary "&").
Eli Friedman [Thu, 24 Sep 2015 08:13:57 +0000 (01:13 -0700)]
Add support for formatting AddrOf (unary "&").
Nick Cameron [Thu, 24 Sep 2015 06:19:37 +0000 (18:19 +1200)]
Merge pull request #358 from eefriedman/rewrite-return
Add support for formatting "return" expressions.
Eli Friedman [Thu, 24 Sep 2015 05:51:37 +0000 (22:51 -0700)]
Add support for formatting "return" expressions.
Fixes #303.
Eli Friedman [Thu, 24 Sep 2015 05:51:37 +0000 (22:51 -0700)]
Exhaustively enumerate expressions in expression rewriting.
Nick Cameron [Thu, 24 Sep 2015 02:07:39 +0000 (14:07 +1200)]
Merge pull request #357 from scyptnex/match-comma-retention
fix for #355 and test cases
Scyptnex [Thu, 24 Sep 2015 02:01:48 +0000 (12:01 +1000)]
fix for #355 and test cases
Nick Cameron [Thu, 24 Sep 2015 00:28:35 +0000 (12:28 +1200)]
Merge pull request #347 from scyptnex/issue339-match_block_collapse
match arms collapse for issue #339
Scyptnex [Thu, 24 Sep 2015 00:22:06 +0000 (10:22 +1000)]
Fixes #339 and #272
Nick Cameron [Wed, 23 Sep 2015 19:10:15 +0000 (07:10 +1200)]
Merge pull request #349 from globin/rust-nightly-update
Adapt to rust sytax::ast::Mac changes
Robin Gloster [Wed, 23 Sep 2015 18:31:31 +0000 (18:31 +0000)]
adapt to rust sytax::ast::Mac changes
Nick Cameron [Tue, 22 Sep 2015 05:00:18 +0000 (17:00 +1200)]
Merge pull request #345 from Manishearth/fix-match
Handle comments in match better (fixes #344)
Manish Goregaokar [Tue, 22 Sep 2015 01:27:52 +0000 (06:57 +0530)]
Add tests, reformat expr
Marcus Klaas de Vries [Mon, 21 Sep 2015 18:05:27 +0000 (20:05 +0200)]
Merge pull request #331 from marcusklaas/extern
Format foreign functions and statics
Marcus Klaas [Mon, 21 Sep 2015 18:02:45 +0000 (20:02 +0200)]
Format foreign functions and statics
Marcus Klaas de Vries [Mon, 21 Sep 2015 17:42:36 +0000 (19:42 +0200)]
Merge pull request #334 from marcusklaas/sparse-mods
Place the closing brace of an inline mod on a new line
Manish Goregaokar [Mon, 21 Sep 2015 12:10:59 +0000 (17:40 +0530)]
Handle comments in match better (fixes #344)
Nick Cameron [Sun, 20 Sep 2015 22:34:36 +0000 (10:34 +1200)]
Merge pull request #336 from marcusklaas/struct-overflow
Fix struct overflows
Marcus Klaas [Sun, 20 Sep 2015 16:44:49 +0000 (18:44 +0200)]
Fix struct overflows
Marcus Klaas de Vries [Sun, 20 Sep 2015 15:42:23 +0000 (17:42 +0200)]
Merge pull request #335 from Kha/struct-lit-base
Fix negative overflow and missing '..' on struct lit base exprs
Sebastian Ullrich [Sun, 20 Sep 2015 13:18:41 +0000 (15:18 +0200)]
Fix negative overflow and missing '..' on struct lit base exprs
Marcus Klaas [Sun, 20 Sep 2015 12:22:12 +0000 (14:22 +0200)]
Place the closing brace of an inline mod on a new line
Marcus Klaas de Vries [Sun, 20 Sep 2015 10:27:16 +0000 (12:27 +0200)]
Merge pull request #290 from SiegeLord/tabs
Initial implementation of hard tab indentation.
Pavel Sountsov [Sat, 19 Sep 2015 17:44:28 +0000 (10:44 -0700)]
Remove unnecessary config parameter from format_missing_with_indent.
Pavel Sountsov [Sat, 19 Sep 2015 07:00:53 +0000 (00:00 -0700)]
Add some tests for hard tab mode.
Pavel Sountsov [Sat, 19 Sep 2015 06:57:27 +0000 (23:57 -0700)]
Use the block_indent inside visit_expr.
This seems to pass all the tests and greatly improves the formatting output
when using hard tabs.
Pavel Sountsov [Sat, 19 Sep 2015 04:50:44 +0000 (21:50 -0700)]
Add Indent::none(), remove make_indent.
Pavel Sountsov [Sun, 6 Sep 2015 05:39:28 +0000 (22:39 -0700)]
Initial implementation of hard tab indentation.
Marcus Klaas de Vries [Sat, 19 Sep 2015 17:19:34 +0000 (19:19 +0200)]
Merge pull request #332 from Kha/variant_no_vis
rustc update: Remove variant visibility
Sebastian Ullrich [Sat, 19 Sep 2015 15:28:00 +0000 (17:28 +0200)]
rustc update: Remove variant visibility
https://github.com/rust-lang/rust/pull/28440
Marcus Klaas de Vries [Fri, 18 Sep 2015 20:37:09 +0000 (22:37 +0200)]
Merge pull request #326 from marcusklaas/interface-refactor
Refactor rustfmt's interface and test code
Marcus Klaas [Thu, 17 Sep 2015 18:21:06 +0000 (20:21 +0200)]
Refactor test code
No longer use callbacks or thread::catch_panic; reduce stdout spew; guard against rustfmt breaking the column limit.
Marcus Klaas [Wed, 16 Sep 2015 19:52:32 +0000 (21:52 +0200)]
Split formatting function from side effects
This makes rustfmt more usable as a library.
cassiersg [Thu, 17 Sep 2015 21:13:25 +0000 (23:13 +0200)]
Merge pull request #314 from alobb/configDocumentation
Fixed https://github.com/nrc/rustfmt/issues/291
cassiersg [Thu, 17 Sep 2015 21:09:09 +0000 (23:09 +0200)]
Merge pull request #330 from marcusklaas/fn-no-return
Add regression test for non-returning functions
Marcus Klaas [Thu, 17 Sep 2015 19:35:03 +0000 (21:35 +0200)]
Add regression test for non-returning functions
Nick Cameron [Wed, 16 Sep 2015 22:46:19 +0000 (10:46 +1200)]
Merge pull request #324 from marcusklaas/macro-uses
Format macro invocations
Marcus Klaas [Mon, 14 Sep 2015 20:53:30 +0000 (22:53 +0200)]
Format macro invocations
Marcus Klaas de Vries [Wed, 16 Sep 2015 18:02:30 +0000 (20:02 +0200)]
Merge pull request #323 from nrc/unsafe-closure
Preserve unsafe blocks in closures
Aaron Lobb [Wed, 16 Sep 2015 04:15:46 +0000 (21:15 -0700)]
Added help string for chains_overflow_last config parameter
Nick Cameron [Tue, 15 Sep 2015 05:45:54 +0000 (17:45 +1200)]
Preserve unsafe blocks in closures
Fixes #321
Nick Cameron [Mon, 14 Sep 2015 23:49:35 +0000 (11:49 +1200)]
Merge pull request #318 from nrc/shr_test
Some random tidying up
Nick Cameron [Mon, 14 Sep 2015 23:42:54 +0000 (11:42 +1200)]
Remove a few unnecessary `rustfmt_skip`s
Nick Cameron [Mon, 14 Sep 2015 23:40:04 +0000 (11:40 +1200)]
Add a test for dodgy spans around `>>`
Closes #242
Aaron Lobb [Mon, 14 Sep 2015 20:43:55 +0000 (13:43 -0700)]
Changed ConfigType trait to only return a string of variants, rather than a vec
Aaron Lobb [Mon, 14 Sep 2015 20:06:09 +0000 (13:06 -0700)]
Merged config imports
Nick Cameron [Mon, 14 Sep 2015 18:32:01 +0000 (06:32 +1200)]
Merge pull request #316 from marcusklaas/diff-upgrade
Bump diff.rs version
Marcus Klaas [Mon, 14 Sep 2015 18:17:51 +0000 (20:17 +0200)]
Bump diff.rs version
This should make the computation of diffs quite a bit faster, which is particularly noticable in tests.
cassiersg [Mon, 14 Sep 2015 14:53:47 +0000 (16:53 +0200)]
Merge pull request #315 from alobb/defaultTomlRemoval
https://github.com/nrc/rustfmt/issues/304
Aaron Lobb [Mon, 14 Sep 2015 07:38:32 +0000 (00:38 -0700)]
https://github.com/nrc/rustfmt/issues/304 Removed reference to default.toml
Aaron Lobb [Mon, 14 Sep 2015 07:29:15 +0000 (00:29 -0700)]
Fixed https://github.com/nrc/rustfmt/issues/291; added output to --help runtime option with possible config values
Nick Cameron [Sat, 12 Sep 2015 21:20:37 +0000 (09:20 +1200)]
Merge pull request #309 from marcusklaas/array-literals
Format array literals
Nick Cameron [Sat, 12 Sep 2015 21:17:43 +0000 (09:17 +1200)]
Merge pull request #312 from marcusklaas/closure-fix
Prevent generation of bogus comment in some function calls
Marcus Klaas [Sat, 12 Sep 2015 12:31:51 +0000 (14:31 +0200)]
Prevent generation of bogus comment in some function calls
This would happen when the callee contained parentheses.
Marcus Klaas [Fri, 11 Sep 2015 22:06:17 +0000 (00:06 +0200)]
Format array literals
Nick Cameron [Fri, 11 Sep 2015 22:01:53 +0000 (10:01 +1200)]
Merge pull request #307 from marcusklaas/function-arg-ty
Rewrite types in function arguments
Nick Cameron [Fri, 11 Sep 2015 21:52:10 +0000 (09:52 +1200)]
Merge pull request #310 from marcusklaas/continue-reg-test
Add regression test for bad continue span
Marcus Klaas [Fri, 11 Sep 2015 21:32:13 +0000 (23:32 +0200)]
Add regression test for bad continue span
Marcus Klaas [Fri, 11 Sep 2015 10:24:13 +0000 (12:24 +0200)]
Rewrite types in function arguments
Marcus Klaas de Vries [Thu, 10 Sep 2015 22:56:14 +0000 (00:56 +0200)]
Merge pull request #216 from marcusklaas/format-fields
WIP: Format expression chains
Marcus Klaas [Thu, 10 Sep 2015 22:53:21 +0000 (00:53 +0200)]
General cleanup after rebase
Marcus Klaas [Wed, 9 Sep 2015 21:17:31 +0000 (23:17 +0200)]
Refine chain breaking heuristics
Don't make a single line chain when it is was multi line in the source; allow overflow of the last chain element onto the next lines without breaking the chain.
Marcus Klaas [Wed, 9 Sep 2015 21:15:37 +0000 (23:15 +0200)]
Rebase onto master
Marcus Klaas [Wed, 9 Sep 2015 21:14:54 +0000 (23:14 +0200)]
Align dots in chained expressions
Marcus Klaas [Tue, 1 Sep 2015 21:51:57 +0000 (23:51 +0200)]
Escape quotes in string literals
Marcus Klaas [Wed, 9 Sep 2015 21:14:09 +0000 (23:14 +0200)]
Add some tests for match blocks
Marcus Klaas [Wed, 9 Sep 2015 21:13:37 +0000 (23:13 +0200)]
Add tests for chain expressions
Marcus Klaas [Thu, 10 Sep 2015 22:52:57 +0000 (00:52 +0200)]
Break chains that don't start with path expressions
Marcus Klaas [Wed, 9 Sep 2015 21:10:51 +0000 (23:10 +0200)]
address mini offset bug in rewrite_match
Marcus Klaas [Wed, 9 Sep 2015 21:09:39 +0000 (23:09 +0200)]
Update indentation heuristics for single arg functions
Marcus Klaas [Thu, 10 Sep 2015 22:52:16 +0000 (00:52 +0200)]
Implement basic chain formatting
Marcus Klaas de Vries [Thu, 10 Sep 2015 22:38:09 +0000 (00:38 +0200)]
Merge pull request #294 from sinhpham/diff_write_mode
Add diff write mode https://github.com/nrc/rustfmt/issues/261
Sinh Pham [Thu, 10 Sep 2015 22:27:22 +0000 (18:27 -0400)]
Add diff write mode https://github.com/nrc/rustfmt/issues/261
Marcus Klaas de Vries [Wed, 9 Sep 2015 17:14:20 +0000 (19:14 +0200)]
Merge pull request #293 from sinhpham/small_style_fixes
Small style fixes.
Sinh Pham [Wed, 9 Sep 2015 11:56:56 +0000 (07:56 -0400)]
Small style fixes.
Nick Cameron [Tue, 8 Sep 2015 21:14:15 +0000 (09:14 +1200)]
Merge pull request #288 from marcusklaas/closure-return
Format closures' return types
Marcus Klaas [Tue, 8 Sep 2015 18:56:33 +0000 (20:56 +0200)]
Format closures' return types
Nick Cameron [Tue, 8 Sep 2015 05:01:28 +0000 (17:01 +1200)]
Merge pull request #260 from cburgdorf/struct_lit_force_multiline
Implements struct_lit_force_multiline
Christoph Burgdorf [Fri, 4 Sep 2015 23:31:39 +0000 (01:31 +0200)]
Implements struct_lit_force_multiline
With struct_lit_force_multiline set to true
rustfmt won't ever mangle multiple struct properties
into one line.
Fixes #253
Marcus Klaas de Vries [Mon, 7 Sep 2015 20:23:33 +0000 (22:23 +0200)]
Merge pull request #251 from marcusklaas/rewrite-list
Add failure mode to `write_list`
Marcus Klaas [Mon, 7 Sep 2015 19:34:37 +0000 (21:34 +0200)]
Split off binary search
Marcus Klaas [Fri, 4 Sep 2015 16:09:05 +0000 (18:09 +0200)]
Add failure mode to `write_list`
Nick Cameron [Mon, 7 Sep 2015 04:35:14 +0000 (16:35 +1200)]
Merge pull request #289 from sinhpham/fix_278
Fix https://github.com/nrc/rustfmt/issues/278
Sinh Pham [Mon, 7 Sep 2015 04:24:24 +0000 (00:24 -0400)]
Fix https://github.com/nrc/rustfmt/issues/278
Nick Cameron [Sun, 6 Sep 2015 21:35:29 +0000 (09:35 +1200)]
Merge pull request #282 from marcusklaas/qself-fix
Fix qself rewrites without explicit casts
Marcus Klaas [Sun, 6 Sep 2015 21:18:27 +0000 (23:18 +0200)]
Fix qself rewrites without explicit casts
Marcus Klaas de Vries [Sun, 6 Sep 2015 20:44:06 +0000 (22:44 +0200)]
Merge pull request #265 from nrc/unsafe_one_line
Single line unsafe blocks