]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoRun rustfmt
Ruben Schmidmeister [Thu, 9 May 2019 19:13:32 +0000 (21:13 +0200)]
Run rustfmt

5 years agoEnable unreachable_pub lint
Ruben Schmidmeister [Thu, 9 May 2019 18:37:51 +0000 (20:37 +0200)]
Enable unreachable_pub lint

5 years agoMerge pull request #3486 from scampi/issue-3197
Seiichi Uchida [Thu, 9 May 2019 04:37:34 +0000 (13:37 +0900)]
Merge pull request #3486 from scampi/issue-3197

add document describing rustfmt's stabilisation process

5 years agoadd a condition to the stabilisation process of a option on its design being sound
Stéphane Campinas [Wed, 8 May 2019 22:05:53 +0000 (00:05 +0200)]
add a condition to the stabilisation process of a option on its design being sound

5 years agoMerge pull request #3540 from rchaser53/issue-3539
Stéphane Campinas [Mon, 6 May 2019 20:31:38 +0000 (22:31 +0200)]
Merge pull request #3540 from rchaser53/issue-3539

correct to get wrong BytePos

5 years agoMerge pull request #3541 from davidalber/fix-condition-typo
Stéphane Campinas [Mon, 6 May 2019 20:25:10 +0000 (22:25 +0200)]
Merge pull request #3541 from davidalber/fix-condition-typo

Fix condition typo

5 years agoFix condition typo
David Alber [Sun, 5 May 2019 18:55:11 +0000 (11:55 -0700)]
Fix condition typo

5 years agocorrect to get wrong BytePos
rchaser53 [Sun, 5 May 2019 15:01:13 +0000 (00:01 +0900)]
correct to get wrong BytePos

5 years agoMerge pull request #3533 from rchaser53/issue-3532
Stéphane Campinas [Wed, 1 May 2019 07:48:27 +0000 (09:48 +0200)]
Merge pull request #3533 from rchaser53/issue-3532

fix Comma in comment causes no formatting

5 years agofix Comma in comment causes no formatting
rchaser53 [Mon, 29 Apr 2019 12:38:38 +0000 (21:38 +0900)]
fix Comma in comment causes no formatting

5 years agoMerge pull request #3484 from topecongiro/config_derive
Seiichi Uchida [Mon, 29 Apr 2019 02:04:28 +0000 (11:04 +0900)]
Merge pull request #3484 from topecongiro/config_derive

Add config_proc_macro

5 years agoAdd doc comment
topecongiro [Sun, 31 Mar 2019 10:13:15 +0000 (19:13 +0900)]
Add doc comment

5 years agoUse config_type proc macro
topecongiro [Sun, 31 Mar 2019 09:44:35 +0000 (18:44 +0900)]
Use config_type proc macro

5 years agoAdd config_proc_macro
topecongiro [Sun, 31 Mar 2019 09:42:49 +0000 (18:42 +0900)]
Add config_proc_macro

5 years agoMerge pull request #3530 from xiongmao86/issue2941
Seiichi Uchida [Fri, 26 Apr 2019 10:58:12 +0000 (19:58 +0900)]
Merge pull request #3530 from xiongmao86/issue2941

Add a test for #2941.

5 years agoAdd a test for #2941.
xiongmao86 [Fri, 26 Apr 2019 08:04:49 +0000 (16:04 +0800)]
Add a test for #2941.

5 years agoRelease 1.2.2
topecongiro [Wed, 24 Apr 2019 14:25:35 +0000 (23:25 +0900)]
Release 1.2.2

5 years agoMerge pull request #3523 from topecongiro/issue-3515
Seiichi Uchida [Wed, 24 Apr 2019 14:22:55 +0000 (07:22 -0700)]
Merge pull request #3523 from topecongiro/issue-3515

Attempt to format attributes if only they exist

5 years agoMerge pull request #3522 from topecongiro/issue-3521
Seiichi Uchida [Wed, 24 Apr 2019 14:22:40 +0000 (07:22 -0700)]
Merge pull request #3522 from topecongiro/issue-3521

Add a path to the parent dir of rustfmt.toml as a prefix to paths in ignore

5 years agoSuppress spurious parse error messages on skipped files
topecongiro [Wed, 24 Apr 2019 11:23:02 +0000 (20:23 +0900)]
Suppress spurious parse error messages on skipped files

5 years agoAdd a path to rustfmt.toml to GitIgnore as root path
topecongiro [Wed, 24 Apr 2019 11:22:35 +0000 (20:22 +0900)]
Add a path to rustfmt.toml to GitIgnore as root path

5 years agoleave the comment in parentheses of argumentless Fn (#3518)
rChaser53 [Tue, 23 Apr 2019 23:21:04 +0000 (08:21 +0900)]
leave the comment in parentheses of argumentless Fn (#3518)

5 years agoDisable cargo integration test
topecongiro [Tue, 23 Apr 2019 15:05:15 +0000 (00:05 +0900)]
Disable cargo integration test

5 years agoAttempt to format attributes if only they exist
topecongiro [Mon, 22 Apr 2019 23:50:59 +0000 (08:50 +0900)]
Attempt to format attributes if only they exist

5 years agoAdd and update test for #3515
topecongiro [Mon, 22 Apr 2019 23:50:44 +0000 (08:50 +0900)]
Add and update test for #3515

5 years agoAdd a path to the parent dir of rustfmt.toml as a prefix
topecongiro [Mon, 22 Apr 2019 23:12:02 +0000 (08:12 +0900)]
Add a path to the parent dir of rustfmt.toml as a prefix

Paths users specify in `ignore` configuraiton option is relative to the
directory which contains the rustfmt.toml file. When processing the ignore paths
internally, rustfmt should add a path to the directory as a  prefix since
RealPath passed from libsyntax is a full path.

5 years agoMerge pull request #3520 from rchaser53/improve-gh-page
Seiichi Uchida [Mon, 22 Apr 2019 21:58:40 +0000 (14:58 -0700)]
Merge pull request #3520 from rchaser53/improve-gh-page

use filter by hash when first rendering

5 years agouse filter by hash when first rendering
rchaser53 [Mon, 22 Apr 2019 14:47:50 +0000 (23:47 +0900)]
use filter by hash when first rendering

5 years agoMerge pull request #3519 from oli-obk/patch-1
Seiichi Uchida [Mon, 22 Apr 2019 11:54:06 +0000 (04:54 -0700)]
Merge pull request #3519 from oli-obk/patch-1

"first" element check does nothing

5 years ago"first" element check does nothing
Oliver Scherer [Mon, 22 Apr 2019 11:04:44 +0000 (13:04 +0200)]
"first" element check does nothing

5 years agono need to main the separate wiki page
Stéphane Campinas [Thu, 18 Apr 2019 07:37:53 +0000 (09:37 +0200)]
no need to main the separate wiki page

no need to maintain a separate page for the options given the new configuration browser

5 years agoRelease 1.2.1
topecongiro [Wed, 17 Apr 2019 22:26:52 +0000 (07:26 +0900)]
Release 1.2.1

5 years agoCargo update
topecongiro [Wed, 17 Apr 2019 22:26:22 +0000 (07:26 +0900)]
Cargo update

5 years agoMerge pull request #3511 from topecongiro/issue3498
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

5 years agoMerge pull request #3510 from topecongiro/issue3509
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

5 years agoUse annotate-snippets for emitting errors (#3507)
Ruben Schmidmeister [Wed, 17 Apr 2019 12:33:36 +0000 (14:33 +0200)]
Use annotate-snippets for emitting errors (#3507)

5 years agoMerge pull request #3512 from scampi/issue-2724
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

5 years agoMerge pull request #3506 from rchaser53/issue-3505
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

5 years agofix test_ignore_path_set test when run on beta
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
```

5 years agoadd check for failed tests
Stéphane Campinas [Mon, 15 Apr 2019 10:01:49 +0000 (12:01 +0200)]
add check for failed tests

5 years agoexit integration test successfully if the crate build failed before applying rustfmt
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

5 years agoAvoid overflowing item if it has attributes
topecongiro [Sun, 14 Apr 2019 11:45:04 +0000 (20:45 +0900)]
Avoid overflowing item if it has attributes

5 years agoAdd a test for #3498
topecongiro [Sun, 14 Apr 2019 11:44:52 +0000 (20:44 +0900)]
Add a test for #3498

5 years agonot to use Vec
rchaser53 [Sun, 14 Apr 2019 11:37:29 +0000 (20:37 +0900)]
not to use Vec

5 years agoDisallow putting a body with attributes on the same line
topecongiro [Sun, 14 Apr 2019 11:13:54 +0000 (20:13 +0900)]
Disallow putting a body with attributes on the same line

5 years agoDo not include body's attributes in `arrow_span`
topecongiro [Sun, 14 Apr 2019 11:13:07 +0000 (20:13 +0900)]
Do not include body's attributes in `arrow_span`

5 years agoAdd a test for #3509
topecongiro [Sun, 14 Apr 2019 11:12:58 +0000 (20:12 +0900)]
Add a test for #3509

5 years agoAllow specifying glob pattern to ignore config option (#3488)
rChaser53 [Sun, 14 Apr 2019 10:30:44 +0000 (19:30 +0900)]
Allow specifying glob pattern to ignore config option (#3488)

5 years agoadd the error mapping
rchaser53 [Sun, 14 Apr 2019 08:34:53 +0000 (17:34 +0900)]
add the error mapping

5 years agofix not to emit version
rchaser53 [Sat, 13 Apr 2019 15:23:10 +0000 (00:23 +0900)]
fix not to emit version

5 years agoMerge pull request #3504 from matthiaskrgr/clippy_2
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

5 years agofix 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

5 years agoMerge pull request #3503 from rchaser53/update-readme
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

5 years agoupdate README.md for GitHub page
rchaser53 [Wed, 10 Apr 2019 15:36:28 +0000 (00:36 +0900)]
update README.md for GitHub page

5 years agoMerge pull request #3495 from scampi/issue-1096
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

5 years agocreate GitHub page for Configuration.md (#3485)
rChaser53 [Tue, 9 Apr 2019 20:57:16 +0000 (05:57 +0900)]
create GitHub page for Configuration.md (#3485)

5 years agoMerge pull request #3500 from rchaser53/issue-3499
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

5 years agofix not to delete semicolon
rchaser53 [Sun, 7 Apr 2019 03:31:57 +0000 (12:31 +0900)]
fix not to delete semicolon

5 years agoMerge pull request #3497 from lwshang/master
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

5 years agoFix Travis-CI badge url
lwshang [Fri, 5 Apr 2019 20:32:42 +0000 (16:32 -0400)]
Fix Travis-CI badge url

5 years agokeep missed comments appearing after the struct/enum ident
Stéphane Campinas [Fri, 5 Apr 2019 15:11:11 +0000 (17:11 +0200)]
keep missed comments appearing after the struct/enum ident

5 years agokeep comment appearing between parameter's name and its type (#3491)
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)

5 years agoadd document describing rustfmt's stabilisation process
Stéphane Campinas [Sun, 31 Mar 2019 20:27:15 +0000 (22:27 +0200)]
add document describing rustfmt's stabilisation process

5 years agoMerge pull request #3483 from chrisduerr/master
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

5 years agoEnable 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.

5 years agoMerge pull request #3480 from sinkuu/cleanup
Seiichi Uchida [Fri, 29 Mar 2019 13:07:19 +0000 (22:07 +0900)]
Merge pull request #3480 from sinkuu/cleanup

Cleanups

5 years agoMerge pull request #3479 from sinkuu/issue_2995
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

5 years agoFix indexing panic on unicode whitespaces
Shotaro Yamada [Fri, 29 Mar 2019 11:12:45 +0000 (20:12 +0900)]
Fix indexing panic on unicode whitespaces

5 years agoRemove redundant &
Shotaro Yamada [Fri, 29 Mar 2019 10:17:50 +0000 (19:17 +0900)]
Remove redundant &

5 years agoSimplify iterators
Shotaro Yamada [Fri, 29 Mar 2019 08:54:29 +0000 (17:54 +0900)]
Simplify iterators

5 years agoWrite seperator beforehand
Shotaro Yamada [Fri, 29 Mar 2019 08:30:39 +0000 (17:30 +0900)]
Write seperator beforehand

5 years agoRemove a write of empty string
Shotaro Yamada [Fri, 29 Mar 2019 08:27:56 +0000 (17:27 +0900)]
Remove a write of empty string

5 years agoRemove redundant scopes
Shotaro Yamada [Fri, 29 Mar 2019 07:59:50 +0000 (16:59 +0900)]
Remove redundant scopes

5 years agoUse str::repeat
Shotaro Yamada [Fri, 29 Mar 2019 07:52:29 +0000 (16:52 +0900)]
Use str::repeat

5 years agoMerge pull request #3472 from devinalvaro/add-print-current-config
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

5 years agoRelease 1.2.0
topecongiro [Wed, 27 Mar 2019 01:29:28 +0000 (10:29 +0900)]
Release 1.2.0

5 years agoMerge pull request #3477 from topecongiro/test-with-larger-stack-size
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

5 years agoRemove RUST_MIN_STACK declarations from CI scripts
topecongiro [Tue, 26 Mar 2019 14:35:51 +0000 (23:35 +0900)]
Remove RUST_MIN_STACK declarations from CI scripts

5 years agoRun tests in a thread with larger stack size
topecongiro [Tue, 26 Mar 2019 14:35:07 +0000 (23:35 +0900)]
Run tests in a thread with larger stack size

5 years agoAdd `--print-config current`
Devin Alvaro [Mon, 25 Mar 2019 23:47:18 +0000 (06:47 +0700)]
Add `--print-config current`

5 years agoMerge pull request #3469 from topecongiro/cargo-fmt
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

5 years agoMerge pull request #3470 from topecongiro/issue-3051
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

5 years agoDo 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

5 years agoUse BTreeMap to guarantee consistent ordering
topecongiro [Sun, 24 Mar 2019 22:54:52 +0000 (07:54 +0900)]
Use BTreeMap to guarantee consistent ordering

5 years agoMake sure that we run rustfmt against every edition
topecongiro [Sun, 24 Mar 2019 22:54:31 +0000 (07:54 +0900)]
Make sure that we run rustfmt against every edition

5 years agoMerge pull request #3467 from topecongiro/issue-3465
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

5 years agoMerge pull request #3459 from scampi/issue-3442
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

5 years agoMerge pull request #3468 from topecongiro/refactor-create_config
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

5 years agoMerge pull request #3466 from topecongiro/discard-error-to-sink
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

5 years agoMerge pull request #3454 from rchaser53/issue-3434
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

5 years agoput rustfmt::skip::macro mention together with the rustfmt::skip bullet point
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

5 years agoMove some code out of create_config
topecongiro [Sun, 24 Mar 2019 14:36:07 +0000 (23:36 +0900)]
Move some code out of create_config

5 years agoMove rust-clippy to allow_failures
topecongiro [Sun, 24 Mar 2019 10:00:19 +0000 (19:00 +0900)]
Move rust-clippy to allow_failures

5 years agoIncrease stack size on ci
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.

5 years agoAvoid rewriting pairs mutiple times
topecongiro [Sun, 24 Mar 2019 09:55:11 +0000 (18:55 +0900)]
Avoid rewriting pairs mutiple times

5 years agoAdd a test for #3465
topecongiro [Sun, 24 Mar 2019 09:43:35 +0000 (18:43 +0900)]
Add a test for #3465

5 years agoDiscard every parsing error in silent_emitter
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.

5 years agoadd test for visitor mad from same context
rchaser53 [Fri, 22 Mar 2019 09:20:00 +0000 (18:20 +0900)]
add test for visitor mad from same context

5 years agoreflect scampi review
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

5 years agorefrect topecongiro reviews
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