]>
git.lizzy.rs Git - rust.git/log
David Alber [Thu, 18 Jan 2018 05:37:41 +0000 (21:37 -0800)]
Fixing `force_multiline_blocks=true` snippet
David Alber [Thu, 18 Jan 2018 05:32:47 +0000 (21:32 -0800)]
Fixing `force_multiline_blocks=false` snippet
Seiichi Uchida [Fri, 26 Jan 2018 03:35:52 +0000 (12:35 +0900)]
Merge pull request #2386 from acmcarther/master
Make rustfmt-bin's CARGO_PKG_VERSION envvar optional
Seiichi Uchida [Fri, 26 Jan 2018 03:35:04 +0000 (12:35 +0900)]
Merge pull request #2369 from davidalber/fix-configuration-snippets
Fixing straightforward configuration snippets (Part 1)
Seiichi Uchida [Fri, 26 Jan 2018 03:32:28 +0000 (12:32 +0900)]
Merge pull request #2383 from davidalber/range-spaces-in-match
Extending `spaces_around_ranges` to ranges in match arm patterns
Alex McArther [Tue, 23 Jan 2018 15:55:50 +0000 (07:55 -0800)]
Make rustfmt-bin's CARGO_PKG_VERSION envvar optional
David Alber [Mon, 22 Jan 2018 00:25:24 +0000 (16:25 -0800)]
Extending `spaces_around_ranges` to ranges in match arm patterns
Seiichi Uchida [Sun, 21 Jan 2018 06:26:31 +0000 (15:26 +0900)]
Merge pull request #2341 from rust-lang-nursery/steveklabnik-patch-1
Fix installation instructions to use rustup
Seiichi Uchida [Sun, 21 Jan 2018 06:20:33 +0000 (15:20 +0900)]
Merge pull request #2378 from kjvalencik/hard-tabs-overflow
LineOverflow: Count tabs as tab_spaces when measuring line length for overflow
K.J. Valencik [Fri, 19 Jan 2018 17:18:25 +0000 (12:18 -0500)]
LineOverflow: Count tabs as tab_spaces when measuring line length for overflow
Seiichi Uchida [Thu, 18 Jan 2018 09:54:21 +0000 (18:54 +0900)]
0.3.6
Nick Cameron [Thu, 18 Jan 2018 02:19:41 +0000 (15:19 +1300)]
Merge pull request #2371 from topecongiro/issue-2370
Do not panic when special macros have less args than expected
Seiichi Uchida [Wed, 17 Jan 2018 15:50:16 +0000 (00:50 +0900)]
Do not panic when special macros have less args than expected
David Alber [Tue, 16 Jan 2018 06:42:59 +0000 (22:42 -0800)]
Wrapping `match_block_trailing_comma=true` snippet in function
David Alber [Tue, 16 Jan 2018 06:41:29 +0000 (22:41 -0800)]
Wrapping `match_block_trailing_comma=false` snippet in function
David Alber [Tue, 16 Jan 2018 06:36:15 +0000 (22:36 -0800)]
Fixing `imports_layout="HorizontalVertical"` snippet
David Alber [Tue, 16 Jan 2018 05:12:49 +0000 (21:12 -0800)]
Fixing `imports_layout="Mixed"` snippet
David Alber [Mon, 15 Jan 2018 01:43:56 +0000 (17:43 -0800)]
Fixing `imports_indent="Block"` snippet
David Alber [Mon, 15 Jan 2018 01:43:22 +0000 (17:43 -0800)]
Fixing `imports_indent="Visual"` snippet
David Alber [Mon, 15 Jan 2018 01:30:41 +0000 (17:30 -0800)]
Fixing `format_strings=true` snippet
David Alber [Mon, 15 Jan 2018 01:30:14 +0000 (17:30 -0800)]
Fixing `format_strings=false` snippet
David Alber [Mon, 15 Jan 2018 01:20:18 +0000 (17:20 -0800)]
Fixing `where_single_line=true` snippet
David Alber [Mon, 15 Jan 2018 01:16:59 +0000 (17:16 -0800)]
Fixing `where_single_line=false` snippet
David Alber [Mon, 15 Jan 2018 01:14:29 +0000 (17:14 -0800)]
Fixing `brace_style="PreferSameLine"` structs and enums snippet
David Alber [Mon, 15 Jan 2018 01:12:38 +0000 (17:12 -0800)]
Fixing `brace_style="AlwaysNextLine"` structs and enums snippet
David Alber [Mon, 15 Jan 2018 01:10:31 +0000 (17:10 -0800)]
Fixing `brace_style="SameLineWhere"` structs and enums snippet
David Alber [Mon, 15 Jan 2018 00:59:49 +0000 (16:59 -0800)]
Getting `fn_args_density="Vertical"` snippet to pass
David Alber [Mon, 15 Jan 2018 00:51:31 +0000 (16:51 -0800)]
Wrapping `control_brace_style="ClosingNextLine"` snippet in function
David Alber [Mon, 15 Jan 2018 00:49:30 +0000 (16:49 -0800)]
Wrapping `control_brace_style="AlwaysNextLine"` snippet in function
David Alber [Mon, 15 Jan 2018 00:47:17 +0000 (16:47 -0800)]
Wrapping `control_brace_style="AlwaysSameLine"` snippet in function
David Alber [Mon, 15 Jan 2018 00:45:38 +0000 (16:45 -0800)]
Wrapping `condense_wildcard_suffixes=true` snippet in function
David Alber [Mon, 15 Jan 2018 00:45:10 +0000 (16:45 -0800)]
Wrapping `condense_wildcard_suffixes=false` snippet in function
David Alber [Sun, 14 Jan 2018 05:10:57 +0000 (21:10 -0800)]
Getting `binop_separator="Front"` snippet to pass
David Alber [Sun, 14 Jan 2018 04:49:58 +0000 (20:49 -0800)]
Correcting `use_small_heuristics=true` snippet
David Alber [Sun, 14 Jan 2018 04:40:37 +0000 (20:40 -0800)]
Correcting `indent_style="Block"` where predicate snippet
David Alber [Sun, 14 Jan 2018 03:45:31 +0000 (19:45 -0800)]
Wrapping `indent_style="Visual"` struct snippet in function
David Alber [Sun, 14 Jan 2018 03:44:03 +0000 (19:44 -0800)]
Wrapping `indent_style="Block"` struct snippet in function
David Alber [Sun, 14 Jan 2018 03:39:10 +0000 (19:39 -0800)]
Correcting `indent_style="Visual"` generics snippet
David Alber [Sun, 14 Jan 2018 03:36:19 +0000 (19:36 -0800)]
Correcting `indent_style="Block"` generics snippet
David Alber [Sun, 14 Jan 2018 03:02:21 +0000 (19:02 -0800)]
Wrapping `indent_style="Visual"` function call snippet in function
David Alber [Sun, 14 Jan 2018 02:56:35 +0000 (18:56 -0800)]
Wrapping `indent_style="Block"` function call snippet in function
David Alber [Thu, 11 Jan 2018 02:30:17 +0000 (18:30 -0800)]
Wrapping `indent_style="Visual"` array snippet in function
David Alber [Thu, 11 Jan 2018 02:27:43 +0000 (18:27 -0800)]
Wrapping `indent_style="Block"` array snippet in function
Seiichi Uchida [Tue, 16 Jan 2018 08:52:09 +0000 (17:52 +0900)]
Merge pull request #2367 from Stinners/range_binopts
Fixing binop_separator="Back" for ranges (Issue #2364)
Seiichi Uchida [Tue, 16 Jan 2018 08:51:37 +0000 (17:51 +0900)]
Merge pull request #2366 from davidalber/restore-characters
Restoring accidentally-removed characters
David Alber [Tue, 16 Jan 2018 04:57:28 +0000 (20:57 -0800)]
Restoring characters accidentally removed in
bbe4b380
Chris Stinson [Tue, 16 Jan 2018 04:39:21 +0000 (17:39 +1300)]
Fixing binop_separator="Back" for ranges
Hardcoded Separator::Place=Front in call to rewrite_pair for range
caused binop_separator="Back" to be hendled incorrectly
Fixed rewrite_pair call and the example in Configuration.md showing
the faulty behaviour
Nick Cameron [Tue, 16 Jan 2018 00:01:02 +0000 (13:01 +1300)]
Merge pull request #2361 from davidalber/fix-binop-separator-back-snippet
Getting `binop_separator="Back"` snippet in Configurations.md to pass
David Alber [Sun, 14 Jan 2018 20:26:26 +0000 (12:26 -0800)]
Getting `binop_separator="Back"` to pass
Seiichi Uchida [Mon, 15 Jan 2018 11:50:47 +0000 (20:50 +0900)]
0.3.5
Seiichi Uchida [Mon, 15 Jan 2018 11:46:22 +0000 (20:46 +0900)]
Merge pull request #2363 from davidalber/reword-config-note
Rewording configuration note
David Alber [Mon, 15 Jan 2018 09:41:11 +0000 (01:41 -0800)]
Rewording configuration note
Nick Cameron [Fri, 12 Jan 2018 04:32:55 +0000 (17:32 +1300)]
Merge pull request #2357 from topecongiro/issue-2342
Put attributes and struct fields on different line by default
Nick Cameron [Fri, 12 Jan 2018 04:31:43 +0000 (17:31 +1300)]
Merge pull request #2355 from topecongiro/hide-parse-error-format-snippet
Hide parse error in format_snippet()
Nick Cameron [Fri, 12 Jan 2018 04:31:12 +0000 (17:31 +1300)]
Merge pull request #2352 from topecongiro/issue-2337
Break after colon if static item does not fit in a single line
Nick Cameron [Fri, 12 Jan 2018 04:30:27 +0000 (17:30 +1300)]
Merge pull request #2351 from topecongiro/issue-2256
Use correct BytePos when recovering comments on removed import
Nick Cameron [Fri, 12 Jan 2018 04:27:45 +0000 (17:27 +1300)]
Merge pull request #2350 from topecongiro/issue-2324
Issue 2324
Seiichi Uchida [Thu, 11 Jan 2018 23:26:42 +0000 (08:26 +0900)]
Merge pull request #2353 from davidalber/merge-print-diff
Consolidating the logic for printing output
Seiichi Uchida [Thu, 11 Jan 2018 23:26:14 +0000 (08:26 +0900)]
Merge pull request #2358 from PSeitz/master
case insensitive FIXME and TODO
David Alber [Sat, 6 Jan 2018 08:32:48 +0000 (00:32 -0800)]
Consolidating the logic for printing output
Pascal Seitz [Thu, 11 Jan 2018 10:04:28 +0000 (11:04 +0100)]
case insensitive FIXME and TODO
Seiichi Uchida [Thu, 11 Jan 2018 08:24:35 +0000 (17:24 +0900)]
Update changelog
Seiichi Uchida [Thu, 11 Jan 2018 07:55:50 +0000 (16:55 +0900)]
Put attributes and struct fields on different line
Seiichi Uchida [Thu, 11 Jan 2018 07:53:13 +0000 (16:53 +0900)]
Add a test for #2343 and update tests
Seiichi Uchida [Thu, 11 Jan 2018 07:52:28 +0000 (16:52 +0900)]
Remove same_line_attributes config option
Seiichi Uchida [Thu, 11 Jan 2018 06:19:23 +0000 (15:19 +0900)]
Hide parse error in format_snippet()
Nick Cameron [Thu, 11 Jan 2018 05:21:35 +0000 (18:21 +1300)]
Use published versions of libsyntax and librustc_errors
Rather than the versions shipping with the compiler. These are still unstable,
so nightly is still required, but we can control when we update so breakage should
happen less often.
Nick Cameron [Thu, 11 Jan 2018 04:40:05 +0000 (17:40 +1300)]
Minor refactoring in macros.rs
Seiichi Uchida [Wed, 10 Jan 2018 14:23:42 +0000 (23:23 +0900)]
Break after colon if static item does not fit in a single line
Seiichi Uchida [Wed, 10 Jan 2018 12:30:41 +0000 (21:30 +0900)]
Use correct BytePos when recovering comments on removed import
Seiichi Uchida [Wed, 10 Jan 2018 12:30:13 +0000 (21:30 +0900)]
Add a test for #2256
Seiichi Uchida [Wed, 10 Jan 2018 08:17:18 +0000 (17:17 +0900)]
Fix error message printing wrong file names
The error messsages from `self_test` does not display correct file names
(it just prints `src/lib.rs` for every file). This commit fixes it.
Seiichi Uchida [Wed, 10 Jan 2018 08:17:06 +0000 (17:17 +0900)]
Cargo fmt
Seiichi Uchida [Wed, 10 Jan 2018 08:15:02 +0000 (17:15 +0900)]
Reformat a nested function call with a single newline using larger budget
Seiichi Uchida [Wed, 10 Jan 2018 08:14:50 +0000 (17:14 +0900)]
Add a test for #2324
Seiichi Uchida [Wed, 10 Jan 2018 07:08:44 +0000 (16:08 +0900)]
Merge pull request #2349 from davidalber/configurations-failure-message
Modifying failure messages to be consistent with mismatch message
Seiichi Uchida [Wed, 10 Jan 2018 07:08:16 +0000 (16:08 +0900)]
Merge pull request #2348 from davidalber/remove-unused
Removing unused name
David Alber [Sun, 7 Jan 2018 05:23:54 +0000 (21:23 -0800)]
Removing unused name
David Alber [Tue, 9 Jan 2018 16:36:24 +0000 (08:36 -0800)]
Modifying failure messages to be consistent with mismatch message
Nick Cameron [Tue, 9 Jan 2018 05:39:15 +0000 (18:39 +1300)]
Merge pull request #2292 from davidalber/configurations-checking
Configurations checking
Steve Klabnik [Fri, 5 Jan 2018 14:34:45 +0000 (09:34 -0500)]
Fix installation instructions to use rustup
David Alber [Wed, 13 Dec 2017 08:40:07 +0000 (00:40 -0800)]
Adding test to verify code block idempotency in Configurations.md
Nick Cameron [Thu, 4 Jan 2018 04:49:47 +0000 (17:49 +1300)]
Merge pull request #2316 from topecongiro/issue-2315
Remove trailing comma from extern items snippet before comparing
Nick Cameron [Thu, 4 Jan 2018 04:31:02 +0000 (17:31 +1300)]
Merge pull request #2336 from vishalsodani/master
Fix #2300
Vishal Sodani [Thu, 4 Jan 2018 04:07:08 +0000 (09:37 +0530)]
Fix #2300
Nick Cameron [Thu, 4 Jan 2018 03:51:56 +0000 (16:51 +1300)]
Merge pull request #2332 from topecongiro/impl-and-trait
Fix up formatting bugs in impl and trait
topecongiro [Thu, 4 Jan 2018 01:16:59 +0000 (10:16 +0900)]
Refactoring: use methods from libsyntax attr module
topecongiro [Thu, 4 Jan 2018 01:15:13 +0000 (10:15 +0900)]
Compare extern crate items with its name instead of span
When we use span, bugs easily sneak in.
topecongiro [Tue, 2 Jan 2018 04:52:19 +0000 (13:52 +0900)]
Put the opening brace of impl on the next line
We put the opening brace on the next line if the following conditions hold:
1. the result before '{' ends with comments or contains newline
2. the last line of the result before '{' is not extendable (i.e. consists of
'>' and whitespaces).
topecongiro [Tue, 2 Jan 2018 04:51:25 +0000 (13:51 +0900)]
Use correct budget when rewriting generics of trait
topecongiro [Tue, 2 Jan 2018 04:50:43 +0000 (13:50 +0900)]
Add and update tests for #2320 and #2331
Nick Cameron [Thu, 4 Jan 2018 02:07:05 +0000 (15:07 +1300)]
Merge pull request #2330 from topecongiro/issue-2329
Issue 2329
Seiichi Uchida [Thu, 4 Jan 2018 01:32:43 +0000 (10:32 +0900)]
Merge pull request #2335 from Hopman/rename_git-fmt
Rename git-fmt to git-rustfmt
Nick Cameron [Thu, 4 Jan 2018 01:09:20 +0000 (14:09 +1300)]
Merge pull request #2313 from LukasKalbertodt/patch-1
Add options `blank_lines_{lower|upper}_bound` to `Configurations.md`
Nick Cameron [Thu, 4 Jan 2018 01:02:37 +0000 (14:02 +1300)]
Merge pull request #2327 from nrc/macro-defs
Some macros 2.0 macro defs
Nick Cameron [Thu, 4 Jan 2018 00:42:24 +0000 (13:42 +1300)]
Merge pull request #2306 from dtwood/assert-eq-on-one-line
Add assert_eq! to special-cased macros
Joost Hopmans [Wed, 3 Jan 2018 13:15:45 +0000 (14:15 +0100)]
Rename git-fmt to git-rustfmt
Nick Cameron [Wed, 3 Jan 2018 07:36:52 +0000 (20:36 +1300)]
Better handling of comments in macro defs
Lukas Kalbertodt [Tue, 26 Dec 2017 12:00:48 +0000 (13:00 +0100)]
Add options `blank_lines_{lower|upper}_bound` to `Configurations.md`
topecongiro [Tue, 2 Jan 2018 04:04:39 +0000 (13:04 +0900)]
Remove trim_newlines()
We call `trim_newlines()` after the `trim()`ed buffer, which is unnecessary.