Commit graph

4526 commits

Author SHA1 Message Date
Shotaro Yamada
e3a4a03657 Use str::repeat 2019-03-29 19:06:32 +09:00
Seiichi Uchida
b4b80b6395
Merge pull request #3472 from devinalvaro/add-print-current-config
Add option to print current config to stdout
2019-03-29 17:35:02 +09:00
topecongiro
09940a70d0 Release 1.2.0 2019-03-27 10:29:28 +09:00
Seiichi Uchida
2dc9cfca50
Merge pull request #3477 from topecongiro/test-with-larger-stack-size
Test with larger stack size
2019-03-27 10:28:26 +09:00
topecongiro
a7728d352c Remove RUST_MIN_STACK declarations from CI scripts 2019-03-26 23:35:51 +09:00
topecongiro
968d30f5d8 Run tests in a thread with larger stack size 2019-03-26 23:35:07 +09:00
Devin Alvaro
b473e65257 Add --print-config current 2019-03-26 06:49:20 +07:00
Stéphane Campinas
a373e73f5a
Merge pull request #3469 from topecongiro/cargo-fmt
Fix cargo fmt inconsistency
2019-03-25 12:33:25 +01:00
Stéphane Campinas
f910afde85
Merge pull request #3470 from topecongiro/issue-3051
Do not add a space after empty impl
2019-03-25 11:04:42 +01:00
Seiichi Uchida
17ca7408f3 Do not add a space after empty impl 2019-03-25 11:21:14 +09:00
topecongiro
b4d4b5795e Use BTreeMap to guarantee consistent ordering 2019-03-25 07:54:52 +09:00
topecongiro
5f1f5aac05 Make sure that we run rustfmt against every edition 2019-03-25 07:54:31 +09:00
Seiichi Uchida
288d7db5a9
Merge pull request #3467 from topecongiro/issue-3465
Fix bad performance on deeply nested binary expressions
2019-03-25 07:26:04 +09:00
Seiichi Uchida
929d8a9494
Merge pull request #3459 from scampi/issue-3442
fix line numbering in missed spans and handle file_lines in edge cases
2019-03-25 07:25:28 +09:00
Seiichi Uchida
a5cc780c98
Merge pull request #3468 from topecongiro/refactor-create_config
Move some code out of create_config
2019-03-25 07:24:57 +09:00
Seiichi Uchida
9b4344161b
Merge pull request #3466 from topecongiro/discard-error-to-sink
Discard error report in silent_emitter
2019-03-25 07:24:42 +09:00
Stéphane Campinas
cc26c5eaca
Merge pull request #3454 from rchaser53/issue-3434
add new attribute rustfmt::skip::macros
2019-03-24 22:29:56 +01:00
Stéphane Campinas
8a905a8778
put rustfmt::skip::macro mention together with the rustfmt::skip bullet point 2019-03-24 18:25:10 +01:00
topecongiro
0d67db4744 Move some code out of create_config 2019-03-24 23:36:07 +09:00
topecongiro
a931397787 Move rust-clippy to allow_failures 2019-03-24 19:55:08 +09:00
topecongiro
3357712dfa Increase stack size on ci
This is required for tests/target/issue-3465.rs.
2019-03-24 19:55:05 +09:00
topecongiro
abfb381189 Avoid rewriting pairs mutiple times 2019-03-24 18:55:11 +09:00
topecongiro
04cc821e4a Add a test for #3465 2019-03-24 18:43:35 +09:00
topecongiro
037cf2c436 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.
2019-03-24 17:44:55 +09:00
rchaser53
85b206a32c add test for visitor mad from same context 2019-03-22 18:20:00 +09:00
rchaser53
1d9104bbae reflect scampi review
- fix README.md
- fix BadAttr doc
- is_rustfmt_macro_error => is_unknown_rustfmt_attr
2019-03-21 21:45:57 +09:00
rchaser53
bbbc1e86eb 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
2019-03-21 21:45:39 +09:00
topecongiro
b6dac248ec Release 1.1.1 2019-03-21 20:33:47 +09:00
Seiichi Uchida
94b381f1cc
Merge pull request #3464 from topecongiro/issue-3463
Avoid duplication on the presence of spaces between macro name and !
2019-03-21 20:32:29 +09:00
topecongiro
017e491a17 Avoid duplication on the presence of spaces between macro name and ! 2019-03-21 15:58:39 +09:00
Seiichi Uchida
0732cd69b9
Merge pull request #3462 from stjepang/fix-async-formatting
Fix formatting of async blocks
2019-03-21 15:37:25 +09:00
Stjepan Glavina
1fa06ecf1e Fix formatting of async blocks 2019-03-20 18:18:02 +01:00
rchaser53
558a2c3512 add explanation for rustfmt::skip::macros 2019-03-21 00:19:52 +09:00
rchaser53
f493a59783 use RefCell and Rc 2019-03-21 00:19:52 +09:00
rchaser53
1f8553d66f add new attribute rustfmt::skip::macros
add test for function not having attribute
2019-03-21 00:18:51 +09:00
Seiichi Uchida
393d7217ae
Merge pull request #3460 from scampi/ci-integration-head
show the HEAD of the integration branch to faciliate reproducing an error with rustfmt
2019-03-20 21:37:10 +09:00
Stéphane Campinas
ee90de5746
show the HEAD of the integration branch to faciliate reproducing an error with rustfmt 2019-03-20 10:16:41 +01:00
Stéphane Campinas
54262daff2
Merge pull request #3458 from topecongiro/issue-3457
Avoid panic on macro inside deeply nested block
2019-03-19 22:13:08 +01:00
Stéphane Campinas
cdd08da27b
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
2019-03-19 10:19:45 +01:00
Seiichi Uchida
c9479de9a7 Avoid panic on macro inside deeply nested block
Closes #3457.
2019-03-19 10:50:44 +09:00
topecongiro
1427e4c20b Release 1.1.0 2019-03-17 14:06:23 +09:00
Seiichi Uchida
f048fc0fde
Merge pull request #3448 from topecongiro/use-new_sub_parser_from_file
Support path clarity module even when we start from internal module
2019-03-17 14:04:11 +09:00
Seiichi Uchida
ad6d89842a
Merge pull request #3453 from scampi/issue-3423
remove trailing whitespaces in missing spans
2019-03-17 14:01:49 +09:00
Stéphane Campinas
be0ada27f4 Add comment which refers to an issue on nightly-only test
Co-Authored-By: topecongiro <seuchida@gmail.com>
2019-03-17 12:33:18 +09:00
topecongiro
7fc4e418bf Tweak test settings 2019-03-17 12:33:18 +09:00
topecongiro
d0e96ed331 Do not look for external modules when the input is from stdin 2019-03-17 12:33:18 +09:00
topecongiro
92f57211c1 Support path-clarity submodule 2019-03-17 12:33:13 +09:00
topecongiro
bde77714e6 Disable self_tests on beta channel 2019-03-17 12:21:57 +09:00
topecongiro
9d281b44c3 Add a test for #3427 2019-03-17 12:21:21 +09:00
Stéphane Campinas
2d5bc69475
remove trailing whitespaces in missing spans 2019-03-16 12:23:02 +01:00