]>
git.lizzy.rs Git - rust.git/log
Ruben Schmidmeister [Wed, 15 May 2019 16:17:48 +0000 (18:17 +0200)]
Use raw strings
Ruben Schmidmeister [Wed, 15 May 2019 15:37:55 +0000 (17:37 +0200)]
Avoid unnecessary allocation
Ruben Schmidmeister [Tue, 14 May 2019 18:38:28 +0000 (20:38 +0200)]
Return iterator instead of collecting early
Ruben Schmidmeister [Tue, 14 May 2019 18:23:55 +0000 (20:23 +0200)]
Name field more verbosely
This makes the comment above it obsolete
Ruben Schmidmeister [Mon, 13 May 2019 07:40:16 +0000 (09:40 +0200)]
Ignore unstable key when overriding config
Ruben Schmidmeister [Sun, 12 May 2019 21:03:48 +0000 (23:03 +0200)]
Only run test on nightly
Ruben Schmidmeister [Sat, 11 May 2019 13:05:08 +0000 (15:05 +0200)]
Fix normalisation of multi-line doc attributes
Ruben Schmidmeister [Sat, 11 May 2019 13:03:59 +0000 (15:03 +0200)]
Add regression test
xiongmao86 [Fri, 10 May 2019 13:29:08 +0000 (21:29 +0800)]
update CHANGELOG.
xiongmao86 [Fri, 10 May 2019 13:22:52 +0000 (21:22 +0800)]
Revert "Revert "Change config option from format_doc_comments to format_code_in_doc_comments.""
This reverts commit
97d7216cd4ebce511d5707ec5dd8b7b8fe771cba .
Stéphane Campinas [Fri, 10 May 2019 07:59:07 +0000 (09:59 +0200)]
Merge pull request #3546 from bash/unreachable-pub
Enable unreachable_pub lint
Stéphane Campinas [Fri, 10 May 2019 07:48:01 +0000 (09:48 +0200)]
Merge pull request #3526 from bash/refactor-apply-newline-style
Refactor apply newline style
Seiichi Uchida [Fri, 10 May 2019 04:56:25 +0000 (13:56 +0900)]
Merge pull request #3545 from euclio/serde-derive
use `derive` feature over `serde_derive` crate
Ruben Schmidmeister [Thu, 9 May 2019 19:13:32 +0000 (21:13 +0200)]
Run rustfmt
Ruben Schmidmeister [Thu, 9 May 2019 18:37:51 +0000 (20:37 +0200)]
Enable unreachable_pub lint
Andy Russell [Thu, 9 May 2019 17:22:44 +0000 (13:22 -0400)]
use `derive` feature over `serde_derive` crate
Ruben Schmidmeister [Thu, 9 May 2019 15:51:02 +0000 (17:51 +0200)]
Add tests to cover more edge cases
Ruben Schmidmeister [Thu, 9 May 2019 15:44:52 +0000 (17:44 +0200)]
Make sure windows newlines don't gain an extra carriage return
Ruben Schmidmeister [Thu, 9 May 2019 15:22:16 +0000 (17:22 +0200)]
Implement conversion to unix newlines
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
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
xiongmao86 [Wed, 8 May 2019 08:56:53 +0000 (16:56 +0800)]
Fix docs in Configurations.md.
xiongmao86 [Wed, 8 May 2019 08:51:32 +0000 (16:51 +0800)]
Revert "Change config option from format_doc_comments to format_code_in_doc_comments."
This reverts commit
6a6924c12b2ad9a99686df9b3d65fd2dd8647665 .
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
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
xiongmao86 [Mon, 6 May 2019 11:45:34 +0000 (19:45 +0800)]
Change config option from format_doc_comments to format_code_in_doc_comments.
David Alber [Sun, 5 May 2019 18:55:11 +0000 (11:55 -0700)]
Fix condition typo
rchaser53 [Sun, 5 May 2019 15:01:13 +0000 (00:01 +0900)]
correct to get wrong BytePos
xiongmao86 [Thu, 2 May 2019 13:11:13 +0000 (21:11 +0800)]
Isolate format_doc_comment with normalize_comments and wrap_comments.
Ruben Schmidmeister [Thu, 2 May 2019 04:47:41 +0000 (06:47 +0200)]
Merge remote-tracking branch 'origin/master' into refactor-apply-newline-style
xiongmao86 [Wed, 1 May 2019 08:27:34 +0000 (16:27 +0800)]
Add tests for #3417.
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
rchaser53 [Mon, 29 Apr 2019 12:38:38 +0000 (21:38 +0900)]
fix Comma in comment causes no formatting
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
topecongiro [Sun, 31 Mar 2019 10:13:15 +0000 (19:13 +0900)]
Add doc comment
topecongiro [Sun, 31 Mar 2019 09:44:35 +0000 (18:44 +0900)]
Use config_type proc macro
topecongiro [Sun, 31 Mar 2019 09:42:49 +0000 (18:42 +0900)]
Add config_proc_macro
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.
xiongmao86 [Fri, 26 Apr 2019 08:04:49 +0000 (16:04 +0800)]
Add a test for #2941.
Ruben Schmidmeister [Wed, 24 Apr 2019 19:58:50 +0000 (21:58 +0200)]
Use more descriptive names
Ruben Schmidmeister [Wed, 24 Apr 2019 18:52:43 +0000 (20:52 +0200)]
Preserve standalone carriage returns on windows also
Ruben Schmidmeister [Wed, 24 Apr 2019 18:28:14 +0000 (20:28 +0200)]
Split apply with auto detection tests into separate fns
Ruben Schmidmeister [Wed, 24 Apr 2019 18:14:29 +0000 (20:14 +0200)]
Fix auto detection of windows newlines for inputs with multibyte chars
Ruben Schmidmeister [Wed, 24 Apr 2019 18:01:06 +0000 (20:01 +0200)]
Split auto_detect tests into seperate fns
Ruben Schmidmeister [Wed, 24 Apr 2019 17:54:37 +0000 (19:54 +0200)]
Extract conversion to windows newlines into fn
Ruben Schmidmeister [Wed, 24 Apr 2019 17:34:10 +0000 (19:34 +0200)]
Extract literals into constants
Ruben Schmidmeister [Wed, 24 Apr 2019 17:47:05 +0000 (19:47 +0200)]
Introduce effective newline style
Ruben Schmidmeister [Wed, 24 Apr 2019 17:45:11 +0000 (19:45 +0200)]
Convert to free standing functions
Ruben Schmidmeister [Wed, 24 Apr 2019 17:40:21 +0000 (19:40 +0200)]
Extract applying of newline style into own mod
topecongiro [Wed, 24 Apr 2019 14:25:35 +0000 (23:25 +0900)]
Release 1.2.2
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
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
topecongiro [Wed, 24 Apr 2019 11:23:02 +0000 (20:23 +0900)]
Suppress spurious parse error messages on skipped files
topecongiro [Wed, 24 Apr 2019 11:22:35 +0000 (20:22 +0900)]
Add a path to rustfmt.toml to GitIgnore as root path
rChaser53 [Tue, 23 Apr 2019 23:21:04 +0000 (08:21 +0900)]
leave the comment in parentheses of argumentless Fn (#3518)
topecongiro [Tue, 23 Apr 2019 15:05:15 +0000 (00:05 +0900)]
Disable cargo integration test
topecongiro [Mon, 22 Apr 2019 23:50:59 +0000 (08:50 +0900)]
Attempt to format attributes if only they exist
topecongiro [Mon, 22 Apr 2019 23:50:44 +0000 (08:50 +0900)]
Add and update test for #3515
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.
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
rchaser53 [Mon, 22 Apr 2019 14:47:50 +0000 (23:47 +0900)]
use filter by hash when first rendering
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
Oliver Scherer [Mon, 22 Apr 2019 11:04:44 +0000 (13:04 +0200)]
"first" element check does nothing
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
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)
Stéphane Campinas [Sun, 31 Mar 2019 20:27:15 +0000 (22:27 +0200)]
add document describing rustfmt's stabilisation process
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