]>
git.lizzy.rs Git - rust.git/log
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 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
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
Stéphane Campinas [Fri, 15 Feb 2019 12:12:42 +0000 (13:12 +0100)]
Merge pull request #3334 from rchaser53/issue-3227
fix Inconsistency between loop and while
rchaser53 [Fri, 15 Feb 2019 09:11:49 +0000 (18:11 +0900)]
remove tests/source/issue-3227/one.rs
topecongiro [Thu, 14 Feb 2019 02:27:55 +0000 (11:27 +0900)]
1.0.3
Seiichi Uchida [Thu, 14 Feb 2019 02:26:05 +0000 (11:26 +0900)]
Merge pull request #3401 from topecongiro/rustcap
Cargo update
topecongiro [Thu, 14 Feb 2019 02:08:05 +0000 (11:08 +0900)]
Cargo update
Update `rustc-ap-*` crates to 373.0.0.
topecongiro [Tue, 12 Feb 2019 16:34:34 +0000 (01:34 +0900)]
1.0.2
rchaser53 [Fri, 8 Feb 2019 12:39:11 +0000 (21:39 +0900)]
version/2: Align loop and while formatting
The loop and while formatting was diverting as `loop`
was not being moved to a new, indented block, as `while`
was.
This commit fixes this inconsistency but pins it to version 2
to avoid changing existing code.
Stéphane Campinas [Wed, 13 Feb 2019 23:11:25 +0000 (00:11 +0100)]
point unstable options to tracking issues
Seiichi Uchida [Tue, 12 Feb 2019 16:29:41 +0000 (01:29 +0900)]
Merge pull request #3342 from topecongiro/visibility-on-trait-alias
Format visibility on trait alias
topecongiro [Tue, 12 Feb 2019 01:16:12 +0000 (10:16 +0900)]
Format visibility on trait alias
Seiichi Uchida [Sun, 10 Feb 2019 16:12:38 +0000 (01:12 +0900)]
Merge pull request #3335 from h-michael/rust-2018
Rust 2018 idioms
Seiichi Uchida [Sun, 10 Feb 2019 15:45:13 +0000 (00:45 +0900)]
Merge pull request #3333 from topecongiro/macro-arg-single-keyword
Handle a macro argument with a single keyword
topecongiro [Fri, 8 Feb 2019 03:28:35 +0000 (12:28 +0900)]
Handle a macro argument with a single keyword
Closes #3331.
Seiichi Uchida [Sun, 10 Feb 2019 15:32:06 +0000 (00:32 +0900)]
Merge pull request #3326 from scampi/issue-3302
fix formatting of strings within a macro
Stéphane Campinas [Sat, 9 Feb 2019 13:23:54 +0000 (14:23 +0100)]
remove unneeded Version import
Hirokazu Hata [Sat, 9 Feb 2019 07:20:38 +0000 (16:20 +0900)]
cargo fmt
Hirokazu Hata [Sat, 9 Feb 2019 07:14:30 +0000 (16:14 +0900)]
Fix rust_2018_idioms warnings
Hirokazu Hata [Sat, 9 Feb 2019 06:55:17 +0000 (15:55 +0900)]
deny rust_2018_idioms
Hirokazu Hata [Sat, 9 Feb 2019 06:53:12 +0000 (15:53 +0900)]
cargo +nightly fix --edition-idioms
Stéphane Campinas [Fri, 8 Feb 2019 08:35:27 +0000 (09:35 +0100)]
Merge pull request #3328 from topecongiro/edition-2018
Use edition 2018
Seiichi Uchida [Fri, 8 Feb 2019 03:35:50 +0000 (12:35 +0900)]
Merge pull request #3332 from rchaser53/issue-3234
add issue-3234 test
Seiichi Uchida [Thu, 7 Feb 2019 15:24:57 +0000 (00:24 +0900)]
Merge pull request #3325 from topecongiro/rustcap
Update rustc-ap-* crates to 366.0.0
topecongiro [Thu, 7 Feb 2019 15:22:34 +0000 (00:22 +0900)]
Use edition 2018
rchaser53 [Thu, 7 Feb 2019 15:05:54 +0000 (00:05 +0900)]
add issue-3234 test
this issue is already resolved
Stéphane Campinas [Thu, 7 Feb 2019 09:51:08 +0000 (10:51 +0100)]
Merge pull request #3322 from fyrchik/fix/3304
calculate statement first line properly
Evgenii [Thu, 7 Feb 2019 09:12:36 +0000 (12:12 +0300)]
add more tests
Evgenii [Thu, 7 Feb 2019 07:55:52 +0000 (10:55 +0300)]
fix review comments
Stéphane Campinas [Wed, 6 Feb 2019 23:05:05 +0000 (00:05 +0100)]
fix formatting of strings within a macro
Seiichi Uchida [Wed, 6 Feb 2019 14:10:27 +0000 (23:10 +0900)]
Add a test for #3313
Seiichi Uchida [Wed, 6 Feb 2019 14:04:44 +0000 (23:04 +0900)]
Fix how we get span of the PathSegment separator
topecongiro [Tue, 29 Jan 2019 15:55:52 +0000 (00:55 +0900)]
Cargo update
- Update `rustc-ap-*` crates to 366.0.0
- Update the other crates to the latest stable
Seiichi Uchida [Wed, 6 Feb 2019 11:23:25 +0000 (20:23 +0900)]
Merge pull request #3323 from scampi/failure-repo
silence testing on the failure repo until it's fixed
Stéphane Campinas [Wed, 6 Feb 2019 09:12:32 +0000 (10:12 +0100)]
silence testing on the failure repo until it's fixed
Evgenii [Wed, 6 Feb 2019 06:34:50 +0000 (09:34 +0300)]
calculate statement first line properly