]>
git.lizzy.rs Git - rust.git/log
Christopher Armstrong [Thu, 15 Feb 2018 20:47:49 +0000 (14:47 -0600)]
IRC channel is now #rust-dev-tools
Also specifically mention the IRC network (irc.mozilla.org) that the channel is on.
Jonathan Morley [Thu, 15 Feb 2018 19:35:45 +0000 (14:35 -0500)]
Rust 1.24 released, rustfmt now works on stable
Seiichi Uchida [Thu, 15 Feb 2018 13:48:06 +0000 (22:48 +0900)]
Do not try to parse external modules when skipping children
Seiichi Uchida [Thu, 15 Feb 2018 13:47:32 +0000 (22:47 +0900)]
Add rustfmt_skip to a test with long string
topecongiro [Thu, 15 Feb 2018 07:41:47 +0000 (16:41 +0900)]
Preserve two or more trailing spaces in doc comment
rustdoc treats two or more trailing spaces as a line break.
topecongiro [Thu, 15 Feb 2018 07:34:22 +0000 (16:34 +0900)]
Preserve trailing whitespaces only for doc comment
Nick Cameron [Thu, 15 Feb 2018 02:21:44 +0000 (15:21 +1300)]
Merge pull request #2086 from jugglerchris/difflines_mode
Add a new "modified lines" write mode.
Nick Cameron [Thu, 15 Feb 2018 01:40:38 +0000 (14:40 +1300)]
Merge pull request #2422 from davidalber/travis-config-badge
Proposal: add badge for Travis CI example status
Nick Cameron [Thu, 15 Feb 2018 01:18:21 +0000 (14:18 +1300)]
Merge pull request #2441 from topecongiro/issue-2438
Return `None` when format_code_block may have failed
Nick Cameron [Thu, 15 Feb 2018 01:17:39 +0000 (14:17 +1300)]
Merge pull request #2428 from PSeitz/master
scale WidthHeuristics by max_width
David Alber [Thu, 8 Feb 2018 00:47:23 +0000 (16:47 -0800)]
Adding badge and explanation for Travis CI example status
brotzeit [Wed, 14 Feb 2018 10:05:34 +0000 (11:05 +0100)]
apply some clippy suggestions
topecongiro [Tue, 13 Feb 2018 20:10:43 +0000 (05:10 +0900)]
Return None when format_code_block may have failed
Nick Cameron [Tue, 13 Feb 2018 23:10:08 +0000 (12:10 +1300)]
Merge pull request #2440 from topecongiro/issue-2439
Disable formatting macro-def if args do not fit on one line
Nick Cameron [Tue, 13 Feb 2018 23:03:21 +0000 (12:03 +1300)]
Merge pull request #2435 from davidalber/fix-option-typo
Fixing command-line option name
Nick Cameron [Tue, 13 Feb 2018 22:48:09 +0000 (11:48 +1300)]
Merge pull request #2187 from brotzeit/master
don't print verbose output when formatting with stdin
topecongiro [Tue, 13 Feb 2018 19:00:26 +0000 (04:00 +0900)]
Disable formatting macro-def if args do not fit on one line
Pascal Seitz [Sun, 11 Feb 2018 18:44:47 +0000 (19:44 +0100)]
scale WidthHeuristics by max_width
scale WidthHeuristics by max_width
Seiichi Uchida [Tue, 13 Feb 2018 09:27:54 +0000 (18:27 +0900)]
Preserve trailing two whitespace in comments
Closes #2434.
David Alber [Tue, 13 Feb 2018 05:48:57 +0000 (21:48 -0800)]
Fixing command-line option name
Chris Emerson [Mon, 12 Feb 2018 23:09:07 +0000 (23:09 +0000)]
Update comment to say that Modified is for internal use only.
Chris Emerson [Mon, 12 Feb 2018 23:07:46 +0000 (23:07 +0000)]
Update after review comments.
Chris Emerson [Mon, 12 Feb 2018 22:58:50 +0000 (22:58 +0000)]
Move the modified test files to the new location.
Chris Emerson [Mon, 12 Feb 2018 22:43:37 +0000 (22:43 +0000)]
Merge remote-tracking branch 'origin/master' into difflines_mode
Nick Cameron [Mon, 12 Feb 2018 21:11:04 +0000 (10:11 +1300)]
Merge pull request #2409 from davidalber/configuration-check-opt-out
Skipping formatting of some configuration snippets
David Alber [Sat, 3 Feb 2018 18:55:50 +0000 (10:55 -0800)]
Formatting snippets without configuration option marked as skip
brotzeit [Mon, 12 Feb 2018 11:58:38 +0000 (12:58 +0100)]
don't print verbose output when formatting with stdin
Seiichi Uchida [Mon, 12 Feb 2018 09:37:37 +0000 (18:37 +0900)]
Merge pull request #2432 from davidalber/remove-unused-import
Removing unused import
Seiichi Uchida [Mon, 12 Feb 2018 09:36:07 +0000 (18:36 +0900)]
Merge pull request #2433 from davidalber/unhork-snippet-tests
Fixing path to Configurations.md
David Alber [Mon, 12 Feb 2018 05:43:35 +0000 (21:43 -0800)]
Fixing path to Configurations.md
Issue #2419 changed the directory in which
`configuration_snippet_tests` runs, which broke the test. Since the
test is currently annotated with `#[ignore]`, the break wasn't
caught before merge.
David Alber [Mon, 12 Feb 2018 05:15:06 +0000 (21:15 -0800)]
Removing unused import
Nick Cameron [Sun, 11 Feb 2018 23:31:47 +0000 (12:31 +1300)]
Merge pull request #2431 from davidalber/fix-indent-style-control-flow-snippet
Fixing `indent_style` control flow examples
Nick Cameron [Sun, 11 Feb 2018 23:15:49 +0000 (12:15 +1300)]
Merge pull request #2419 from topecongiro/core
Separate rustfmt into multiple crates
David Alber [Sun, 11 Feb 2018 22:48:45 +0000 (14:48 -0800)]
Fixing control flow examples
Seiichi Uchida [Wed, 7 Feb 2018 14:57:37 +0000 (23:57 +0900)]
Fix appveyor
Seiichi Uchida [Wed, 7 Feb 2018 14:15:00 +0000 (23:15 +0900)]
Pub use Config and Summary
topecongiro [Wed, 7 Feb 2018 13:51:14 +0000 (22:51 +0900)]
Cargo update
topecongiro [Wed, 7 Feb 2018 13:49:56 +0000 (22:49 +0900)]
Create git-rustfmt crate
topecongiro [Wed, 7 Feb 2018 13:49:43 +0000 (22:49 +0900)]
Create rustfmt-format-diff crate
topecongiro [Wed, 7 Feb 2018 13:49:26 +0000 (22:49 +0900)]
Create rustfmt-bin crate
topecongiro [Wed, 7 Feb 2018 13:49:10 +0000 (22:49 +0900)]
Create cargo-fmt crate
topecongiro [Wed, 7 Feb 2018 13:48:52 +0000 (22:48 +0900)]
Create rustfmt_config crate
topecongiro [Wed, 7 Feb 2018 13:48:05 +0000 (22:48 +0900)]
Create rustfmt_core crate
Nick Cameron [Tue, 6 Feb 2018 08:23:14 +0000 (21:23 +1300)]
Merge pull request #2417 from topecongiro/issue-2415
Avoid orphan in chain with punctuation
Nick Cameron [Tue, 6 Feb 2018 08:22:18 +0000 (21:22 +1300)]
Merge pull request #2416 from topecongiro/eshell
Explicitly disable colored output when it is not supported
topecongiro [Tue, 6 Feb 2018 00:36:29 +0000 (09:36 +0900)]
Avoid orphan in chain with punctuation
topecongiro [Tue, 6 Feb 2018 00:29:00 +0000 (09:29 +0900)]
Explicitly disable colored output when it is not supported
Seiichi Uchida [Mon, 5 Feb 2018 00:56:26 +0000 (09:56 +0900)]
Merge pull request #2393 from RReverser/macro_rules
Format stable macro_rules
topecongiro [Sun, 4 Feb 2018 23:38:53 +0000 (08:38 +0900)]
Add a test for #2208
Closes #2208.
Nick Cameron [Sun, 4 Feb 2018 22:28:58 +0000 (11:28 +1300)]
Merge pull request #2412 from topecongiro/issue-2399
Do not reorder items with '#[macro_use]'
Nick Cameron [Sun, 4 Feb 2018 19:44:21 +0000 (08:44 +1300)]
Merge pull request #2413 from topecongiro/issue-2401
Use correct offset when unindenting code block
Ingvar Stepanyan [Sun, 4 Feb 2018 12:09:03 +0000 (12:09 +0000)]
cargo run cargo-fmt
Reformat codebase with current version to pass self_tests (formats macros without repetitions).
Ingvar Stepanyan [Tue, 30 Jan 2018 18:19:47 +0000 (18:19 +0000)]
Extract branch rewrite function
Ingvar Stepanyan [Tue, 30 Jan 2018 17:24:28 +0000 (17:24 +0000)]
Format
Ingvar Stepanyan [Tue, 30 Jan 2018 17:14:13 +0000 (17:14 +0000)]
Move ; between macro branches to a separator
Ingvar Stepanyan [Tue, 30 Jan 2018 17:05:31 +0000 (17:05 +0000)]
Fix comment handling in macros
Ingvar Stepanyan [Mon, 29 Jan 2018 10:15:18 +0000 (10:15 +0000)]
Comments WIP
Ingvar Stepanyan [Sun, 28 Jan 2018 19:08:09 +0000 (19:08 +0000)]
Keep delimiter as part of macro args list
Ingvar Stepanyan [Thu, 25 Jan 2018 14:20:17 +0000 (14:20 +0000)]
Add repetition example
Ingvar Stepanyan [Thu, 25 Jan 2018 14:12:18 +0000 (14:12 +0000)]
Omit newline for empty macro branches
Ingvar Stepanyan [Thu, 25 Jan 2018 14:06:37 +0000 (14:06 +0000)]
Optimise common `=> {{` macro pattern
Ingvar Stepanyan [Thu, 25 Jan 2018 13:30:23 +0000 (13:30 +0000)]
Revert comments
Ingvar Stepanyan [Thu, 25 Jan 2018 13:28:55 +0000 (13:28 +0000)]
Support compact macros 2.0 representation
Ingvar Stepanyan [Wed, 24 Jan 2018 19:25:57 +0000 (19:25 +0000)]
Update some macro tests
Ingvar Stepanyan [Wed, 24 Jan 2018 19:09:49 +0000 (19:09 +0000)]
Add macro_rules tests
Ingvar Stepanyan [Wed, 24 Jan 2018 18:21:01 +0000 (18:21 +0000)]
Initial support for macros 1.1
Seiichi Uchida [Sun, 4 Feb 2018 08:21:10 +0000 (17:21 +0900)]
Use correct offset when unindenting code block
When using hard tabs, we should only remove '\t'.
Nick Cameron [Sun, 4 Feb 2018 03:58:21 +0000 (16:58 +1300)]
Merge pull request #2411 from topecongiro/update-travis
Update a minimal travis example
Seiichi Uchida [Sun, 4 Feb 2018 03:08:02 +0000 (12:08 +0900)]
Do not reorder items with '#[macro_use]'
Reordering items with `#[macro_use]` could change the semantic of source code.
There could exist other attributes that requires special treatment.
Seiichi Uchida [Sun, 4 Feb 2018 03:07:51 +0000 (12:07 +0900)]
Add tests for reorder_extern_crates
Seiichi Uchida [Sun, 4 Feb 2018 01:02:45 +0000 (10:02 +0900)]
Update a minimal travis example
Nick Cameron [Sun, 4 Feb 2018 01:33:03 +0000 (14:33 +1300)]
Merge pull request #2410 from topecongiro/skip-repeat-macro
Skip rewriting macro def with repeat
Nick Cameron [Sun, 4 Feb 2018 01:18:34 +0000 (14:18 +1300)]
Merge pull request #2406 from nrc/str-fix
Make `is_mod_decl` more accommodating
Seiichi Uchida [Sat, 3 Feb 2018 23:52:50 +0000 (08:52 +0900)]
Skip rewriting macro def with repeat
Nick Cameron [Fri, 2 Feb 2018 02:16:29 +0000 (15:16 +1300)]
Make `is_mod_decl` more accommodating
Fixes #2403 (I think)
Nick Cameron [Fri, 2 Feb 2018 01:18:30 +0000 (14:18 +1300)]
Update libsyntax crates
Nick Cameron [Thu, 1 Feb 2018 06:25:48 +0000 (19:25 +1300)]
0.3.7
Nick Cameron [Thu, 1 Feb 2018 02:20:11 +0000 (15:20 +1300)]
Merge pull request #2384 from topecongiro/init-shorthand
Use field initialization shorthand if possible
Nick Cameron [Thu, 1 Feb 2018 02:20:01 +0000 (15:20 +1300)]
Merge branch 'master' into init-shorthand
Nick Cameron [Thu, 1 Feb 2018 02:18:34 +0000 (15:18 +1300)]
Merge pull request #2380 from topecongiro/reorder-mods
[RFC] Reorder modules alphabetically
Seiichi Uchida [Wed, 31 Jan 2018 04:13:05 +0000 (13:13 +0900)]
Merge pull request #2400 from csmoe/support_immovable_generators
Support immovable generators
csmoe [Tue, 30 Jan 2018 14:14:33 +0000 (22:14 +0800)]
add a support for immovable generators
Seiichi Uchida [Mon, 29 Jan 2018 13:14:25 +0000 (22:14 +0900)]
Add 'use_field_init_shorthand' config option
Seiichi Uchida [Mon, 29 Jan 2018 13:00:07 +0000 (22:00 +0900)]
Cargo fmt with modules reordering enabled
Seiichi Uchida [Mon, 29 Jan 2018 12:59:15 +0000 (21:59 +0900)]
Reorder modules
Add `reorder_modules` config option.
Two things we must keep in mind when reordering modules:
1. We should not reorder modules with attributes, as doing so could
potentially break the code (e.g. `#[macro_use]`).
2. We should not reorder inline modules e.g. `mod foo { /* .. */ }`.
We should only reorder module declarations e.g. `mod foo;`.
Some open questions:
1. Should we bring modules with `pub` in front of those without `pub`
so that they stand out from others?
2. Instead of keeping modules with attributes in the same place,
can we bring them in front of others? Is this safe?
Seiichi Uchida [Mon, 29 Jan 2018 12:44:26 +0000 (21:44 +0900)]
Update to the latest libsyntax changes
Seiichi Uchida [Mon, 29 Jan 2018 12:43:44 +0000 (21:43 +0900)]
Cargo update
Nick Cameron [Mon, 29 Jan 2018 02:51:16 +0000 (13:51 +1100)]
Merge pull request #2395 from davidalber/fix-configuration-snippets2
Fixing straightforward configuration snippets (Part 2)
Nick Cameron [Sun, 28 Jan 2018 23:36:26 +0000 (10:36 +1100)]
Merge pull request #2396 from topecongiro/issue-2389
Put attributes and enum variants on different lines
Seiichi Uchida [Fri, 26 Jan 2018 07:20:00 +0000 (16:20 +0900)]
Put attributes and enum variants on different lines
Seiichi Uchida [Fri, 26 Jan 2018 05:53:28 +0000 (14:53 +0900)]
Cargo clippy
David Alber [Sun, 21 Jan 2018 06:57:53 +0000 (22:57 -0800)]
Wrapping `match_arm_blocks=false` snippet in function
David Alber [Sun, 21 Jan 2018 06:56:14 +0000 (22:56 -0800)]
Wrapping `match_arm_blocks=true` snippet in function
David Alber [Sun, 21 Jan 2018 06:51:51 +0000 (22:51 -0800)]
Fixing `use_try_shorthand=true` snippet
David Alber [Sun, 21 Jan 2018 06:49:54 +0000 (22:49 -0800)]
Fixing `use_try_shorthand=false` snippet
David Alber [Sun, 21 Jan 2018 06:46:30 +0000 (22:46 -0800)]
Fixing `type_punctuation_density=Compressed` snippet
David Alber [Sun, 21 Jan 2018 06:44:09 +0000 (22:44 -0800)]
Fixing `type_punctuation_density=Wide` snippet
David Alber [Sun, 21 Jan 2018 06:39:27 +0000 (22:39 -0800)]
Wrapping `trailing_comma=Never` snippet in function
David Alber [Sun, 21 Jan 2018 06:37:58 +0000 (22:37 -0800)]
Wrapping `trailing_comma=Always` snippet in function
David Alber [Sun, 21 Jan 2018 06:36:12 +0000 (22:36 -0800)]
Wrapping `trailing_comma=Vertical` snippet in function