]>
git.lizzy.rs Git - rust.git/log
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
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
Seiichi Uchida [Wed, 6 Feb 2019 01:28:25 +0000 (10:28 +0900)]
Merge pull request #3320 from scampi/unecessary-source-test
remove unecessary source test file
Stéphane Campinas [Tue, 5 Feb 2019 20:19:41 +0000 (21:19 +0100)]
remove unecessary source test file
Seiichi Uchida [Tue, 5 Feb 2019 05:03:05 +0000 (14:03 +0900)]
Merge pull request #3318 from rchaser53/issue-3314
fix Removed indentation after nested comments error
rchaser53 [Tue, 5 Feb 2019 04:12:45 +0000 (13:12 +0900)]
fix Removed indentation after nested comments error
Seiichi Uchida [Tue, 5 Feb 2019 02:24:12 +0000 (11:24 +0900)]
Merge pull request #3317 from fyrchik/fix/edition
transition to Rust 2018
Evgenii [Mon, 4 Feb 2019 10:30:43 +0000 (13:30 +0300)]
transition to Rust 2018
Seiichi Uchida [Sun, 3 Feb 2019 15:11:01 +0000 (00:11 +0900)]
Merge pull request #3308 from topecongiro/issue-2835
Prioritize single_line_fn and empty_item_single_line over brace_style
Seiichi Uchida [Sun, 3 Feb 2019 15:10:42 +0000 (00:10 +0900)]
Merge pull request #3311 from rchaser53/issue-3295
fix "internal error: left behind trailing whitespace" with long lines
rchaser53 [Fri, 1 Feb 2019 10:58:38 +0000 (19:58 +0900)]
fix "internal error: left behind trailing whitespace" with long lines
Seiichi Uchida [Thu, 31 Jan 2019 15:23:15 +0000 (00:23 +0900)]
Merge pull request #3306 from topecongiro/issue-2841
Do not force trailing comma when using mixed layout
topecongiro [Thu, 31 Jan 2019 15:16:33 +0000 (00:16 +0900)]
Prioritize single_line_fn and empty_item_single_line over brace_style
When either one of these two options are set to `true`, each should take
precedence over the brace_style option.
This commit does not introduce any formatting change to the default
configuration, so no version gate is required.
topecongiro [Thu, 31 Jan 2019 14:44:58 +0000 (23:44 +0900)]
Do not force trailing comma when using mixed layout
Seiichi Uchida [Tue, 29 Jan 2019 15:36:55 +0000 (00:36 +0900)]
Merge pull request #3298 from topecongiro/issue-3272
Use the same rule between function and macro
topecongiro [Sun, 27 Jan 2019 12:01:12 +0000 (21:01 +0900)]
Use the same rule with macro and function calls with a single chain
topecongiro [Sun, 27 Jan 2019 11:50:16 +0000 (20:50 +0900)]
Avoid putting a long macro call in a single line
Seiichi Uchida [Sun, 27 Jan 2019 14:14:57 +0000 (23:14 +0900)]
Merge pull request #3293 from scampi/issue-3241
Keep leading colons for global paths
Seiichi Uchida [Sun, 27 Jan 2019 14:02:54 +0000 (23:02 +0900)]
Merge pull request #3280 from m-ou-se/global-config
Look for a global rustfmt.toml.
Mara Bos [Mon, 14 Jan 2019 10:20:46 +0000 (11:20 +0100)]
Also look in home directory for global config.
Mara Bos [Mon, 7 Jan 2019 19:57:02 +0000 (20:57 +0100)]
Document the global rustfmt.toml feature.
Mara Bos [Mon, 7 Jan 2019 19:38:56 +0000 (20:38 +0100)]
Look for a global rustfmt.toml.
If no rustfmt.toml is found in the usual way, the directory 'rustfmt' in
the user's config directory is checked.
- $XDG_CONFIG_HOME/rustfmt/ (or $HOME/.config/rustfmt/), or
- $HOME/Library/Preferences/rustfmt/ on Mac, or
- %AppData%\rustfmt\ on Windows.
Stéphane Campinas [Sun, 27 Jan 2019 11:46:14 +0000 (12:46 +0100)]
fix glob and nested global imports
Seiichi Uchida [Sun, 27 Jan 2019 07:28:28 +0000 (16:28 +0900)]
Merge pull request #3294 from rchaser53/issue-3278
change new line point in the case of no args
Seiichi Uchida [Sun, 27 Jan 2019 07:26:09 +0000 (16:26 +0900)]
Apply rustfmt::skip on imports (#3289)
rchaser53 [Sun, 27 Jan 2019 05:33:03 +0000 (14:33 +0900)]
add the version gate to the code and test
Stéphane Campinas [Sun, 27 Jan 2019 01:23:59 +0000 (02:23 +0100)]
Merge pull request #3297 from matthiaskrgr/deps
update dependencies
Matthias Krüger [Fri, 25 Jan 2019 23:17:36 +0000 (00:17 +0100)]
update dependencies
update itertools from 0.7 to 0.8
update env_logger from 0.5 to 0.6
update cargo_metadata from 0.6 to 0.7
update bytecount from 0.4 to 0.5
rchaser53 [Fri, 25 Jan 2019 14:40:12 +0000 (23:40 +0900)]
change new line point in the case of no args
Stéphane Campinas [Tue, 22 Jan 2019 23:01:53 +0000 (00:01 +0100)]
keep leading double-colon to respect the 2018 edition of rust's paths
Stéphane Campinas [Sun, 20 Jan 2019 23:53:31 +0000 (00:53 +0100)]
indicate in the readme that edition may need to be written in rustfmt.toml
Nick Cameron [Thu, 17 Jan 2019 07:22:36 +0000 (20:22 +1300)]
Merge pull request #3284 from scampi/issue-3270
recognize strings inside comments in order to avoid indenting them
Stéphane Campinas [Wed, 16 Jan 2019 22:06:28 +0000 (23:06 +0100)]
version-gate the formatting of commented strings
wada314 [Mon, 14 Jan 2019 23:41:09 +0000 (08:41 +0900)]
Use Unicode-standard char width to wrap comments or strings. (#3275)
Stéphane Campinas [Mon, 14 Jan 2019 13:41:00 +0000 (14:41 +0100)]
Merge pull request #3225 from scampi/issue-3224
rewrite_comment: fix block fallback when failing to rewrite an itemized block
Stéphane Campinas [Thu, 10 Jan 2019 20:10:34 +0000 (21:10 +0100)]
Merge pull request #3285 from arnavb/patch-1
Fix incorrect documentation for `unstable_features`
Stéphane Campinas [Thu, 10 Jan 2019 13:25:07 +0000 (14:25 +0100)]
recognize strings inside comments in order to avoid indenting them
Close #3270
Arnav Borborah [Thu, 10 Jan 2019 19:54:06 +0000 (14:54 -0500)]
Fix incorrect documentation for `unstable_features`
Nick Cameron [Mon, 7 Jan 2019 04:39:05 +0000 (17:39 +1300)]
Merge pull request #3260 from topecongiro/issue-3004
Do not modify original source code inside macro call
Nick Cameron [Mon, 7 Jan 2019 04:28:13 +0000 (17:28 +1300)]
Merge pull request #3276 from dten/allow-p
allow specifying package with -p
David Hewson [Tue, 1 Jan 2019 17:49:55 +0000 (17:49 +0000)]
allow specifying package with -p
currently `cargo fmt -p blah` is rejected but `cargo fmt --package blah` is allowed. both should be allowed
Stéphane Campinas [Tue, 25 Dec 2018 22:15:52 +0000 (23:15 +0100)]
simplify function to create a string from the itemized block
Seiichi Uchida [Tue, 25 Dec 2018 09:20:29 +0000 (18:20 +0900)]
Fix shape when formatting return or break expr on statement position (#3259)
wada314 [Tue, 25 Dec 2018 09:03:48 +0000 (18:03 +0900)]
Fix issue #3263 (#3264)
Seiichi Uchida [Tue, 25 Dec 2018 09:00:45 +0000 (18:00 +0900)]
Merge pull request #3266 from wada314/fix-2973
Fix issue #3265
Seiichi Uchida [Tue, 25 Dec 2018 08:58:27 +0000 (17:58 +0900)]
Merge pull request #3269 from wada314/lc-unreachable
Remove a trivial redundant code.
Shohei Wada [Mon, 24 Dec 2018 08:48:42 +0000 (17:48 +0900)]
Remove a trivial redundant code.
self.base.peek().is_none() case is already catched by the line above.
Shohei Wada [Sun, 23 Dec 2018 22:25:15 +0000 (07:25 +0900)]
Change \r detection much simpler.
Shohei Wada [Sun, 23 Dec 2018 21:18:00 +0000 (06:18 +0900)]
Add test cases.
Shohei Wada [Sun, 23 Dec 2018 21:12:28 +0000 (06:12 +0900)]
Fix #2973 in Windows CRLF env.
Seiichi Uchida [Thu, 20 Dec 2018 04:30:58 +0000 (13:30 +0900)]
Merge pull request #3258 from scampi/version-gate
Clarify version gate used for #3229
topecongiro [Wed, 19 Dec 2018 16:14:14 +0000 (01:14 +0900)]
Do not modify original source code inside macro call
topecongiro [Wed, 19 Dec 2018 16:13:18 +0000 (01:13 +0900)]
Add a test for #3004
Stéphane Campinas [Wed, 19 Dec 2018 08:25:04 +0000 (09:25 +0100)]
clarify the version-gate used for the #3229 change
Stéphane Campinas [Wed, 19 Dec 2018 08:24:02 +0000 (09:24 +0100)]
add a section to the Contributing.md file about version-gating formatting changes
Seiichi Uchida [Tue, 18 Dec 2018 02:30:08 +0000 (11:30 +0900)]
Merge pull request #3240 from Xanewok/parser-panic
Catch possible tokenizer panics
Seiichi Uchida [Tue, 18 Dec 2018 02:22:45 +0000 (11:22 +0900)]
Merge pull request #3250 from scampi/issue3229
version-gate the trailing semicolon change of return statements inside a match arm
Philipp Hansch [Tue, 18 Dec 2018 02:21:31 +0000 (03:21 +0100)]
Fix trim_right/trim_left deprecation warnings (#3252)
Nick Cameron [Mon, 17 Dec 2018 07:52:18 +0000 (20:52 +1300)]
Merge pull request #3249 from andjo403/assert_cli
remove deprecated dependency assert_cli
Andreas Jonson [Thu, 13 Dec 2018 21:49:22 +0000 (22:49 +0100)]
use the rustfmt function to find the bin
makes it possible to execute the test after a release build
Andreas Jonson [Thu, 13 Dec 2018 21:46:09 +0000 (22:46 +0100)]
remove deprecated dependency assert_cli
Stéphane Campinas [Fri, 14 Dec 2018 08:51:30 +0000 (09:51 +0100)]
bump the version of formatting rules to Two
Stéphane Campinas [Fri, 14 Dec 2018 08:48:20 +0000 (09:48 +0100)]
version-gate the trailing semicolon change of return statements inside a match arm
Igor Matuszewski [Thu, 13 Dec 2018 12:34:01 +0000 (13:34 +0100)]
Don't ignore parse error when constructing report
Igor Matuszewski [Sat, 8 Dec 2018 22:22:23 +0000 (23:22 +0100)]
Use non-panicking maybe_parser_from_source_str
Igor Matuszewski [Sat, 8 Dec 2018 21:32:35 +0000 (22:32 +0100)]
Add test asserting we catch Rust parser panics
Seiichi Uchida [Wed, 12 Dec 2018 05:42:21 +0000 (14:42 +0900)]
Merge pull request #3232 from ForsakenDurian/patch-1
Fix formatting in Configurations.md
Nick Cameron [Sun, 9 Dec 2018 21:51:26 +0000 (10:51 +1300)]
1.0.1
Nick Cameron [Sun, 9 Dec 2018 19:36:09 +0000 (08:36 +1300)]
remove from README.md
Nick Cameron [Sat, 8 Dec 2018 18:15:55 +0000 (13:15 -0500)]
Merge pull request #3236 from kngwyu/upd-syntax
Update rustc-ap-syntax to 306.0
kngwyu [Sat, 8 Dec 2018 05:39:52 +0000 (14:39 +0900)]
Update rustc-ap-syntax to 306.0
Isaac Ng [Fri, 7 Dec 2018 03:58:02 +0000 (14:58 +1100)]
Fix formatting in Configurations.md
fixes #3230
Nick Cameron [Thu, 6 Dec 2018 16:15:28 +0000 (11:15 -0500)]
Merge pull request #3231 from LucianBuzzo/minor-typo-fixes
Fix minor typos and grammar
Lucian [Thu, 6 Dec 2018 15:31:43 +0000 (15:31 +0000)]
Fix minor typos and grammar
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
Stéphane Campinas [Sat, 1 Dec 2018 22:28:08 +0000 (23:28 +0100)]
rewrite_comment: fix block fallback when failing to rewrite an itemized block
Close #3224
Seiichi Uchida [Fri, 30 Nov 2018 00:15:31 +0000 (09:15 +0900)]
Merge pull request #3223 from scampi/issue3213
end expressions like return/continue/break with a semicolon
Stéphane Campinas [Thu, 29 Nov 2018 19:39:07 +0000 (20:39 +0100)]
end expressions like return/continue/break with a semicolon
Close #3213
Nick Cameron [Wed, 28 Nov 2018 22:48:46 +0000 (11:48 +1300)]
Merge pull request #3222 from scampi/issue-3217
fix the visitor's starting position when visiting a labelled block
Stéphane Campinas [Wed, 28 Nov 2018 21:49:09 +0000 (22:49 +0100)]
fix the visitor's starting position when visiting a labelled block
Close #3217
Nick Cameron [Wed, 28 Nov 2018 02:29:18 +0000 (15:29 +1300)]
Merge pull request #3221 from alexreg/cosmetic-1
Cosmetic improvements
Nick Cameron [Wed, 28 Nov 2018 02:28:24 +0000 (15:28 +1300)]
Merge pull request #3220 from topecongiro/bytecount/simd-accel
Cargo update
Alexander Regueiro [Tue, 27 Nov 2018 23:03:09 +0000 (23:03 +0000)]
Cosmetic improvements
Seiichi Uchida [Tue, 27 Nov 2018 09:25:57 +0000 (18:25 +0900)]
Cargo update
Update bytecount to 0.4, and use its generic feature.
Closes #3216.
Nick Cameron [Tue, 27 Nov 2018 01:04:48 +0000 (14:04 +1300)]
Add a version option
Nick Cameron [Mon, 26 Nov 2018 20:13:27 +0000 (09:13 +1300)]
Merge pull request #3215 from scampi/issue3214
allow to run a rustfmt command from cargo-fmt even when there is no target
Stéphane Campinas [Mon, 26 Nov 2018 19:39:12 +0000 (20:39 +0100)]
allow to run a rustfmt command from cargo-fmt even when there is no target
Nick Cameron [Mon, 19 Nov 2018 03:45:11 +0000 (16:45 +1300)]
1.0.0
Nick Cameron [Mon, 19 Nov 2018 01:09:29 +0000 (14:09 +1300)]
fixup minor bugs
Nick Cameron [Mon, 19 Nov 2018 00:35:09 +0000 (13:35 +1300)]
Merge pull request #3177 from kestred/kstenerson/preserve-brace-leading-ws
Format brace-delimited macros with a space after the name
Seiichi Uchida [Sun, 18 Nov 2018 12:31:40 +0000 (21:31 +0900)]
Prefer to break arguments over putting output type on the next line (#3190)
Kevin Stenerson [Sat, 17 Nov 2018 18:53:11 +0000 (11:53 -0700)]
Always enforce exactly one space between `macro!` and braces (`{}`)
Nick Cameron [Sat, 17 Nov 2018 03:45:04 +0000 (16:45 +1300)]
Merge pull request #3205 from matthiaskrgr/clippy
fix a few clippy warnings
Kevin Stenerson [Tue, 6 Nov 2018 05:48:49 +0000 (22:48 -0700)]
Preserve possibly one whitespace for brace macros
Matthias Krüger [Fri, 16 Nov 2018 21:25:33 +0000 (22:25 +0100)]
fix a few clippy warnings
types.rs:
fix single_char_pattern (use character patters instead of string for .ends_with() and .starts_with()
patterns.rs
expr.rs
file_lines.rs:
fix into_iter_on_ref_ptr (use iter() or iter_mut() instead of into_iter()
tests/mod.rs:
check_files(): take Option<PathBuf> by reference
Nick Cameron [Thu, 15 Nov 2018 09:37:31 +0000 (22:37 +1300)]
0.99.9
Nick Cameron [Thu, 15 Nov 2018 08:44:30 +0000 (21:44 +1300)]
Update rustc_ap_syntax