]>
git.lizzy.rs Git - rust.git/log
topecongiro [Wed, 17 Apr 2019 22:26:52 +0000 (07:26 +0900)]
Release 1.2.1
topecongiro [Wed, 17 Apr 2019 22:26:22 +0000 (07:26 +0900)]
Cargo update
Seiichi Uchida [Wed, 17 Apr 2019 18:40:00 +0000 (11:40 -0700)]
Merge pull request #3511 from topecongiro/issue3498
Avoid overflowing item with attributes
Seiichi Uchida [Wed, 17 Apr 2019 18:39:44 +0000 (11:39 -0700)]
Merge pull request #3510 from topecongiro/issue3509
Fix duplication of attributes on a match arm's body
Ruben Schmidmeister [Wed, 17 Apr 2019 12:33:36 +0000 (14:33 +0200)]
Use annotate-snippets for emitting errors (#3507)
Seiichi Uchida [Tue, 16 Apr 2019 07:42:15 +0000 (00:42 -0700)]
Merge pull request #3512 from scampi/issue-2724
exit integration test successfully if the crate build failed before applying rustfmt
Stéphane Campinas [Tue, 16 Apr 2019 05:29:26 +0000 (07:29 +0200)]
Merge pull request #3506 from rchaser53/issue-3505
fix not to emit version
Stéphane Campinas [Mon, 15 Apr 2019 10:50:01 +0000 (12:50 +0200)]
fix test_ignore_path_set test when run on beta
```
---- ignore_path::test::test_ignore_path_set stdout ----
Warning: can't set `ignore = IgnoreList({"foo.rs", "bar_dir/*"})`, unstable features are only available in nightly channel.
thread 'ignore_path::test::test_ignore_path_set' panicked at 'assertion failed: ignore_path_set.is_match(&FileName::Real(PathBuf::from("src/foo.rs")))', src/ignore_path.rs:51:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
failures:
ignore_path::test::test_ignore_path_set
```
Stéphane Campinas [Mon, 15 Apr 2019 10:01:49 +0000 (12:01 +0200)]
add check for failed tests
Stéphane Campinas [Mon, 15 Apr 2019 09:33:11 +0000 (11:33 +0200)]
exit integration test successfully if the crate build failed before applying rustfmt
The `cargo test --all` command failed and exited the main process with a
SIGINT. Trapping the signal or trying to get the code of a subshell
didn't work.
Close #2724
topecongiro [Sun, 14 Apr 2019 11:45:04 +0000 (20:45 +0900)]
Avoid overflowing item if it has attributes
topecongiro [Sun, 14 Apr 2019 11:44:52 +0000 (20:44 +0900)]
Add a test for #3498
rchaser53 [Sun, 14 Apr 2019 11:37:29 +0000 (20:37 +0900)]
not to use Vec
topecongiro [Sun, 14 Apr 2019 11:13:54 +0000 (20:13 +0900)]
Disallow putting a body with attributes on the same line
topecongiro [Sun, 14 Apr 2019 11:13:07 +0000 (20:13 +0900)]
Do not include body's attributes in `arrow_span`
topecongiro [Sun, 14 Apr 2019 11:12:58 +0000 (20:12 +0900)]
Add a test for #3509
rChaser53 [Sun, 14 Apr 2019 10:30:44 +0000 (19:30 +0900)]
Allow specifying glob pattern to ignore config option (#3488)
rchaser53 [Sun, 14 Apr 2019 08:34:53 +0000 (17:34 +0900)]
add the error mapping
rchaser53 [Sat, 13 Apr 2019 15:23:10 +0000 (00:23 +0900)]
fix not to emit version
Stéphane Campinas [Thu, 11 Apr 2019 14:55:03 +0000 (16:55 +0200)]
Merge pull request #3504 from matthiaskrgr/clippy_2
fix a bunch of clippy warnings
Matthias Krüger [Thu, 11 Apr 2019 11:48:13 +0000 (13:48 +0200)]
fix clippy warnings
clippy::needless_return
clippy::redundant_closure
clippy::or_fun_call
clippy::len_zero
clippy::expect_fun_call
clippy::assertions_on_constants
clippy::identity_conversion
clippy::chars_last_cmp
Seiichi Uchida [Wed, 10 Apr 2019 16:57:11 +0000 (01:57 +0900)]
Merge pull request #3503 from rchaser53/update-readme
update README.md for GitHub page
rchaser53 [Wed, 10 Apr 2019 15:36:28 +0000 (00:36 +0900)]
update README.md for GitHub page
Seiichi Uchida [Tue, 9 Apr 2019 21:00:51 +0000 (06:00 +0900)]
Merge pull request #3495 from scampi/issue-1096
keep missed comments appearing after the struct/enum ident
rChaser53 [Tue, 9 Apr 2019 20:57:16 +0000 (05:57 +0900)]
create GitHub page for Configuration.md (#3485)
Stéphane Campinas [Tue, 9 Apr 2019 13:40:18 +0000 (15:40 +0200)]
Merge pull request #3500 from rchaser53/issue-3499
fix not to delete semicolon for macro with square brackets
rchaser53 [Sun, 7 Apr 2019 03:31:57 +0000 (12:31 +0900)]
fix not to delete semicolon
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 [Fri, 5 Apr 2019 15:11:11 +0000 (17:11 +0200)]
keep missed comments appearing after the struct/enum ident
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