]>
git.lizzy.rs Git - rust.git/log
Seiichi Uchida [Sat, 6 Apr 2019 01:05:21 +0000 (10:05 +0900)]
Merge pull request #3497 from lwshang/master
Fix Travis-CI badge url
lwshang [Fri, 5 Apr 2019 20:32:42 +0000 (16:32 -0400)]
Fix Travis-CI badge url
Stéphane Campinas [Wed, 3 Apr 2019 09:16:54 +0000 (11:16 +0200)]
keep comment appearing between parameter's name and its type (#3491)
Seiichi Uchida [Sun, 31 Mar 2019 12:30:49 +0000 (21:30 +0900)]
Merge pull request #3483 from chrisduerr/master
Enable overflow_delimited_expr for structs
Christian Duerr [Sat, 30 Mar 2019 17:37:37 +0000 (18:37 +0100)]
Enable overflow_delimited_expr for structs
This fixes https://github.com/rust-lang/rustfmt/issues/3482.
Seiichi Uchida [Fri, 29 Mar 2019 13:07:19 +0000 (22:07 +0900)]
Merge pull request #3480 from sinkuu/cleanup
Cleanups
Seiichi Uchida [Fri, 29 Mar 2019 13:03:42 +0000 (22:03 +0900)]
Merge pull request #3479 from sinkuu/issue_2995
Fix indexing panic on unicode whitespaces
Shotaro Yamada [Fri, 29 Mar 2019 11:12:45 +0000 (20:12 +0900)]
Fix indexing panic on unicode whitespaces
Shotaro Yamada [Fri, 29 Mar 2019 10:17:50 +0000 (19:17 +0900)]
Remove redundant &
Shotaro Yamada [Fri, 29 Mar 2019 08:54:29 +0000 (17:54 +0900)]
Simplify iterators
Shotaro Yamada [Fri, 29 Mar 2019 08:30:39 +0000 (17:30 +0900)]
Write seperator beforehand
Shotaro Yamada [Fri, 29 Mar 2019 08:27:56 +0000 (17:27 +0900)]
Remove a write of empty string
Shotaro Yamada [Fri, 29 Mar 2019 07:59:50 +0000 (16:59 +0900)]
Remove redundant scopes
Shotaro Yamada [Fri, 29 Mar 2019 07:52:29 +0000 (16:52 +0900)]
Use str::repeat
Seiichi Uchida [Fri, 29 Mar 2019 08:35:02 +0000 (17:35 +0900)]
Merge pull request #3472 from devinalvaro/add-print-current-config
Add option to print current config to stdout
topecongiro [Wed, 27 Mar 2019 01:29:28 +0000 (10:29 +0900)]
Release 1.2.0
Seiichi Uchida [Wed, 27 Mar 2019 01:28:26 +0000 (10:28 +0900)]
Merge pull request #3477 from topecongiro/test-with-larger-stack-size
Test with larger stack size
topecongiro [Tue, 26 Mar 2019 14:35:51 +0000 (23:35 +0900)]
Remove RUST_MIN_STACK declarations from CI scripts
topecongiro [Tue, 26 Mar 2019 14:35:07 +0000 (23:35 +0900)]
Run tests in a thread with larger stack size
Devin Alvaro [Mon, 25 Mar 2019 23:47:18 +0000 (06:47 +0700)]
Add `--print-config current`
Stéphane Campinas [Mon, 25 Mar 2019 11:33:25 +0000 (12:33 +0100)]
Merge pull request #3469 from topecongiro/cargo-fmt
Fix cargo fmt inconsistency
Stéphane Campinas [Mon, 25 Mar 2019 10:04:42 +0000 (11:04 +0100)]
Merge pull request #3470 from topecongiro/issue-3051
Do not add a space after empty impl
Seiichi Uchida [Mon, 25 Mar 2019 02:20:14 +0000 (11:20 +0900)]
Do not add a space after empty impl
topecongiro [Sun, 24 Mar 2019 22:54:52 +0000 (07:54 +0900)]
Use BTreeMap to guarantee consistent ordering
topecongiro [Sun, 24 Mar 2019 22:54:31 +0000 (07:54 +0900)]
Make sure that we run rustfmt against every edition
Seiichi Uchida [Sun, 24 Mar 2019 22:26:04 +0000 (07:26 +0900)]
Merge pull request #3467 from topecongiro/issue-3465
Fix bad performance on deeply nested binary expressions
Seiichi Uchida [Sun, 24 Mar 2019 22:25:28 +0000 (07:25 +0900)]
Merge pull request #3459 from scampi/issue-3442
fix line numbering in missed spans and handle file_lines in edge cases
Seiichi Uchida [Sun, 24 Mar 2019 22:24:57 +0000 (07:24 +0900)]
Merge pull request #3468 from topecongiro/refactor-create_config
Move some code out of create_config
Seiichi Uchida [Sun, 24 Mar 2019 22:24:42 +0000 (07:24 +0900)]
Merge pull request #3466 from topecongiro/discard-error-to-sink
Discard error report in silent_emitter
Stéphane Campinas [Sun, 24 Mar 2019 21:29:56 +0000 (22:29 +0100)]
Merge pull request #3454 from rchaser53/issue-3434
add new attribute rustfmt::skip::macros
Stéphane Campinas [Sun, 24 Mar 2019 17:25:10 +0000 (18:25 +0100)]
put rustfmt::skip::macro mention together with the rustfmt::skip bullet point
topecongiro [Sun, 24 Mar 2019 14:36:07 +0000 (23:36 +0900)]
Move some code out of create_config
topecongiro [Sun, 24 Mar 2019 10:00:19 +0000 (19:00 +0900)]
Move rust-clippy to allow_failures
topecongiro [Sun, 24 Mar 2019 09:56:48 +0000 (18:56 +0900)]
Increase stack size on ci
This is required for tests/target/issue-3465.rs.
topecongiro [Sun, 24 Mar 2019 09:55:11 +0000 (18:55 +0900)]
Avoid rewriting pairs mutiple times
topecongiro [Sun, 24 Mar 2019 09:43:35 +0000 (18:43 +0900)]
Add a test for #3465
topecongiro [Sun, 24 Mar 2019 08:01:09 +0000 (17:01 +0900)]
Discard every parsing error in silent_emitter
`EmitterWriter` from rustc is wasting soooo much time constructing an error
message that will never be emitted, instead we just implement our own `Emitter`
that just discards every error message.
rchaser53 [Fri, 22 Mar 2019 09:20:00 +0000 (18:20 +0900)]
add test for visitor mad from same context
rchaser53 [Wed, 20 Mar 2019 16:33:40 +0000 (01:33 +0900)]
reflect scampi review
- fix README.md
- fix BadAttr doc
- is_rustfmt_macro_error => is_unknown_rustfmt_attr
rchaser53 [Mon, 18 Mar 2019 12:41:31 +0000 (21:41 +0900)]
refrect topecongiro reviews
- &Vec<syntax::ast::PathSegment> => &[ast::PathSegment]
- remove unnecessary implements
- transfer skip logic to inside rewrite_macro
- fix test
- use util methods in libsyntax
- use meta_item_list directly
- avoid no_entry.rs for test using module system
- add logic to skip rustfmt::skip::macros only
- remove base_skip_macro_names
- remove Rc
- use clone to append skip_macro_names
topecongiro [Thu, 21 Mar 2019 11:33:47 +0000 (20:33 +0900)]
Release 1.1.1
Seiichi Uchida [Thu, 21 Mar 2019 11:32:29 +0000 (20:32 +0900)]
Merge pull request #3464 from topecongiro/issue-3463
Avoid duplication on the presence of spaces between macro name and !
topecongiro [Thu, 21 Mar 2019 06:58:39 +0000 (15:58 +0900)]
Avoid duplication on the presence of spaces between macro name and !
Seiichi Uchida [Thu, 21 Mar 2019 06:37:25 +0000 (15:37 +0900)]
Merge pull request #3462 from stjepang/fix-async-formatting
Fix formatting of async blocks
Stjepan Glavina [Wed, 20 Mar 2019 17:18:02 +0000 (18:18 +0100)]
Fix formatting of async blocks
rchaser53 [Sat, 16 Mar 2019 14:48:15 +0000 (23:48 +0900)]
add explanation for rustfmt::skip::macros
rchaser53 [Sat, 16 Mar 2019 14:33:26 +0000 (23:33 +0900)]
use RefCell and Rc
rchaser53 [Sat, 16 Mar 2019 14:13:10 +0000 (23:13 +0900)]
add new attribute rustfmt::skip::macros
add test for function not having attribute
Seiichi Uchida [Wed, 20 Mar 2019 12:37:10 +0000 (21:37 +0900)]
Merge pull request #3460 from scampi/ci-integration-head
show the HEAD of the integration branch to faciliate reproducing an error with rustfmt
Stéphane Campinas [Wed, 20 Mar 2019 09:16:41 +0000 (10:16 +0100)]
show the HEAD of the integration branch to faciliate reproducing an error with rustfmt
Stéphane Campinas [Tue, 19 Mar 2019 21:13:08 +0000 (22:13 +0100)]
Merge pull request #3458 from topecongiro/issue-3457
Avoid panic on macro inside deeply nested block
Stéphane Campinas [Tue, 19 Mar 2019 09:19:45 +0000 (10:19 +0100)]
fix line numbering in missed spans and handle file_lines in edge cases
- a leading/trailing newline character in missed spans was throwing off the
start/end of ranges used to compare against file_lines
- fix handling of file_lines when closing a block
Close #3442
Seiichi Uchida [Tue, 19 Mar 2019 01:50:44 +0000 (10:50 +0900)]
Avoid panic on macro inside deeply nested block
Closes #3457.
topecongiro [Sun, 17 Mar 2019 05:05:02 +0000 (14:05 +0900)]
Release 1.1.0
Seiichi Uchida [Sun, 17 Mar 2019 05:04:11 +0000 (14:04 +0900)]
Merge pull request #3448 from topecongiro/use-new_sub_parser_from_file
Support path clarity module even when we start from internal module
Seiichi Uchida [Sun, 17 Mar 2019 05:01:49 +0000 (14:01 +0900)]
Merge pull request #3453 from scampi/issue-3423
remove trailing whitespaces in missing spans
Stéphane Campinas [Sun, 17 Mar 2019 03:30:06 +0000 (12:30 +0900)]
Add comment which refers to an issue on nightly-only test
Co-Authored-By: topecongiro <seuchida@gmail.com>
topecongiro [Sun, 17 Mar 2019 03:27:24 +0000 (12:27 +0900)]
Tweak test settings
topecongiro [Sun, 17 Mar 2019 03:26:45 +0000 (12:26 +0900)]
Do not look for external modules when the input is from stdin
topecongiro [Sun, 17 Mar 2019 03:25:59 +0000 (12:25 +0900)]
Support path-clarity submodule
topecongiro [Sun, 17 Mar 2019 03:21:57 +0000 (12:21 +0900)]
Disable self_tests on beta channel
topecongiro [Sun, 17 Mar 2019 03:21:21 +0000 (12:21 +0900)]
Add a test for #3427
Stéphane Campinas [Sat, 16 Mar 2019 11:23:02 +0000 (12:23 +0100)]
remove trailing whitespaces in missing spans
Seiichi Uchida [Thu, 14 Mar 2019 13:50:53 +0000 (22:50 +0900)]
Update rustc-ap-* crates to 407.0.0 (#3447)
Seiichi Uchida [Thu, 14 Mar 2019 13:50:20 +0000 (22:50 +0900)]
Merge pull request #3441 from rchaser53/const-generics
implement for const generics
Stéphane Campinas [Wed, 13 Mar 2019 20:42:41 +0000 (21:42 +0100)]
Merge pull request #3444 from daxpedda/patch-1
Additional info to default value of edition.
daxpedda [Wed, 13 Mar 2019 14:46:34 +0000 (15:46 +0100)]
Additional info to default value of edition.
rchaser53 [Mon, 11 Mar 2019 13:24:49 +0000 (22:24 +0900)]
implement for const generics
Seiichi Uchida [Mon, 11 Mar 2019 14:18:43 +0000 (23:18 +0900)]
Format the if expression at the end of the block in a single line (#3338)
Seiichi Uchida [Sun, 10 Mar 2019 14:29:29 +0000 (23:29 +0900)]
Merge pull request #3440 from rchaser53/issue-3439
fix 'Ident of macro+ident gets duplicated' error
rchaser53 [Sun, 10 Mar 2019 13:58:34 +0000 (22:58 +0900)]
fix 'Ident of macro+ident gets duplicated' error
Seiichi Uchida [Tue, 5 Mar 2019 11:54:50 +0000 (20:54 +0900)]
Merge pull request #3424 from Xanewok/modified-lines-for-stdin
Support EmitMode::ModifiedLines with stdin input
Seiichi Uchida [Tue, 5 Mar 2019 11:43:11 +0000 (20:43 +0900)]
Merge pull request #3430 from rchaser53/no-arg-with-comment
fix not to remove comment in the case of no arg
Igor Matuszewski [Mon, 4 Mar 2019 17:32:58 +0000 (18:32 +0100)]
Remove redundant closure
Igor Matuszewski [Mon, 4 Mar 2019 17:28:25 +0000 (18:28 +0100)]
Fix stdin_works... test on Windows
Igor Matuszewski [Sat, 2 Mar 2019 22:21:47 +0000 (23:21 +0100)]
Remove eprintln
Igor Matuszewski [Fri, 1 Mar 2019 18:20:57 +0000 (19:20 +0100)]
Expose ModifiedLines and implement parsing data from the string output
This moves `Modified{Chunks,Lines}` from `src/formatting.rs` to
`src/rustfmt_diff.rs` and reexports it in `src/lib.rs`.
With this, a conversion from `Vec<Mismatch>` to `ModifiedLines` was implemented
and now this implements complementary `Display` and `FromStr`, which
simplified the previously used `output_modified` function and which allows to
parse the raw data emitted with `EmitMode::ModifiedLines`.
Igor Matuszewski [Fri, 1 Mar 2019 16:59:38 +0000 (17:59 +0100)]
Allow for stdin input in EmitMode::ModifiedLines
rchaser53 [Mon, 4 Mar 2019 15:18:33 +0000 (00:18 +0900)]
fix not to remove comment in the case of no arg
Seiichi Uchida [Mon, 4 Mar 2019 12:01:30 +0000 (21:01 +0900)]
Merge pull request #3415 from rchaser53/issue-3198
fix the comment for self are swallowed
Stéphane Campinas [Mon, 4 Mar 2019 09:46:32 +0000 (10:46 +0100)]
Merge pull request #3425 from scampi/futures-rs
move futures-rs repo back into the required tests
rchaser53 [Sun, 24 Feb 2019 14:04:47 +0000 (23:04 +0900)]
leave post comment for self
Stéphane Campinas [Fri, 1 Mar 2019 09:23:27 +0000 (10:23 +0100)]
move futures-rs integration back into required tests
Nick Cameron [Wed, 27 Feb 2019 19:44:59 +0000 (08:44 +1300)]
Update README.md
Update the Appveyor badge
rchaser53 [Sun, 24 Feb 2019 06:18:46 +0000 (15:18 +0900)]
leave pre comment for self
Stéphane Campinas [Sat, 23 Feb 2019 12:16:23 +0000 (13:16 +0100)]
Merge pull request #3409 from rchaser53/issue-3343
add config inline_attribute_width
rchaser53 [Fri, 22 Feb 2019 14:02:22 +0000 (23:02 +0900)]
apply inline_attribute_width for extern crate
rchaser53 [Wed, 20 Feb 2019 11:25:01 +0000 (20:25 +0900)]
add a section to Configuration.md
- attributes => attribute
rchaser53 [Tue, 19 Feb 2019 12:13:26 +0000 (21:13 +0900)]
add config inline_attribute_width
If the line width is width within config width, attribute is inline.
I don't want to change default rustfmt behavior, so config default value is 0.
- fix description
- fix test comment
- remove unnecessary clone
- remove unnecessary test file
- fix test for β version
- attributes => attribute
Seiichi Uchida [Sat, 23 Feb 2019 03:34:34 +0000 (12:34 +0900)]
Merge pull request #3412 from mathstuf/doc-typos
Configurations: fix typos and mismatches
Ben Boeckel [Fri, 22 Feb 2019 19:07:55 +0000 (14:07 -0500)]
Configurations: fix typos and mismatches
Seiichi Uchida [Fri, 22 Feb 2019 06:06:15 +0000 (15:06 +0900)]
Merge pull request #3411 from scampi/version-gate-clarification
indicate that version-gate are to be considered only with changes to the default formatting
Stéphane Campinas [Thu, 21 Feb 2019 13:39:07 +0000 (14:39 +0100)]
indicate that version-gate are to be considered only with changes to the default formatting
Alexander Regueiro [Tue, 19 Feb 2019 02:56:42 +0000 (02:56 +0000)]
Various cosmetic improvements (#3403)
Seiichi Uchida [Mon, 18 Feb 2019 23:59:56 +0000 (08:59 +0900)]
Merge pull request #3407 from scampi/futures-rs
silence build failures of futures-rs until https://github.com/rust-la…
Seiichi Uchida [Mon, 18 Feb 2019 23:59:12 +0000 (08:59 +0900)]
Merge pull request #3408 from scampi/issue-3111
do not put tracking issue as part of the option's title
Stéphane Campinas [Mon, 18 Feb 2019 19:35:22 +0000 (20:35 +0100)]
do not put tracking issue as part of the option's title
Stéphane Campinas [Mon, 18 Feb 2019 19:14:03 +0000 (20:14 +0100)]
silence build failures of futures-rs until https://github.com/rust-lang-nursery/futures-rs/pull/1445 is merged
Seiichi Uchida [Mon, 18 Feb 2019 04:18:53 +0000 (13:18 +0900)]
Merge pull request #3402 from scampi/stdsimd
set the TARGET envar for the stdsimd integration test
Stéphane Campinas [Fri, 15 Feb 2019 12:14:45 +0000 (13:14 +0100)]
set the TARGET envar for the stdsimd integration test