]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoHandle 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.

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

5 years agoremove unneeded Version import
Stéphane Campinas [Sat, 9 Feb 2019 13:23:54 +0000 (14:23 +0100)]
remove unneeded Version import

5 years agoMerge pull request #3328 from topecongiro/edition-2018
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

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

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

5 years agoUse edition 2018
topecongiro [Thu, 7 Feb 2019 15:22:34 +0000 (00:22 +0900)]
Use edition 2018

5 years agoadd issue-3234 test
rchaser53 [Thu, 7 Feb 2019 15:05:54 +0000 (00:05 +0900)]
add issue-3234 test

this issue is already resolved

5 years agoMerge pull request #3322 from fyrchik/fix/3304
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

5 years agoadd more tests
Evgenii [Thu, 7 Feb 2019 09:12:36 +0000 (12:12 +0300)]
add more tests

5 years agofix review comments
Evgenii [Thu, 7 Feb 2019 07:55:52 +0000 (10:55 +0300)]
fix review comments

5 years agofix formatting of strings within a macro
Stéphane Campinas [Wed, 6 Feb 2019 23:05:05 +0000 (00:05 +0100)]
fix formatting of strings within a macro

5 years agoAdd a test for #3313
Seiichi Uchida [Wed, 6 Feb 2019 14:10:27 +0000 (23:10 +0900)]
Add a test for #3313

5 years agoFix how we get span of the PathSegment separator
Seiichi Uchida [Wed, 6 Feb 2019 14:04:44 +0000 (23:04 +0900)]
Fix how we get span of the PathSegment separator

5 years agoCargo update
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

5 years agoMerge pull request #3323 from scampi/failure-repo
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

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

5 years agocalculate statement first line properly
Evgenii [Wed, 6 Feb 2019 06:34:50 +0000 (09:34 +0300)]
calculate statement first line properly

5 years agoMerge pull request #3320 from scampi/unecessary-source-test
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

5 years agoremove unecessary source test file
Stéphane Campinas [Tue, 5 Feb 2019 20:19:41 +0000 (21:19 +0100)]
remove unecessary source test file

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

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

5 years agoMerge pull request #3317 from fyrchik/fix/edition
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

5 years agotransition to Rust 2018
Evgenii [Mon, 4 Feb 2019 10:30:43 +0000 (13:30 +0300)]
transition to Rust 2018

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

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

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

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

5 years agoPrioritize single_line_fn and empty_item_single_line over brace_style
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.

5 years agoDo not force trailing comma when using mixed layout
topecongiro [Thu, 31 Jan 2019 14:44:58 +0000 (23:44 +0900)]
Do not force trailing comma when using mixed layout

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

5 years agoUse the same rule with macro and function calls with a single chain
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

5 years agoAvoid putting a long macro call in a single line
topecongiro [Sun, 27 Jan 2019 11:50:16 +0000 (20:50 +0900)]
Avoid putting a long macro call in a single line

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

5 years agoMerge pull request #3280 from m-ou-se/global-config
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.

5 years agoAlso look in home directory for global config.
Mara Bos [Mon, 14 Jan 2019 10:20:46 +0000 (11:20 +0100)]
Also look in home directory for global config.

5 years agoDocument the global rustfmt.toml feature.
Mara Bos [Mon, 7 Jan 2019 19:57:02 +0000 (20:57 +0100)]
Document the global rustfmt.toml feature.

5 years agoLook for a global rustfmt.toml.
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.

5 years agofix glob and nested global imports
Stéphane Campinas [Sun, 27 Jan 2019 11:46:14 +0000 (12:46 +0100)]
fix glob and nested global imports

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

5 years agoApply rustfmt::skip on imports (#3289)
Seiichi Uchida [Sun, 27 Jan 2019 07:26:09 +0000 (16:26 +0900)]
Apply rustfmt::skip on imports (#3289)

5 years agoadd the version gate to the code and test
rchaser53 [Sun, 27 Jan 2019 05:33:03 +0000 (14:33 +0900)]
add the version gate to the code and test

5 years agoMerge pull request #3297 from matthiaskrgr/deps
Stéphane Campinas [Sun, 27 Jan 2019 01:23:59 +0000 (02:23 +0100)]
Merge pull request #3297 from matthiaskrgr/deps

update dependencies

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

5 years agochange new line point in the case of no args
rchaser53 [Fri, 25 Jan 2019 14:40:12 +0000 (23:40 +0900)]
change new line point in the case of no args

5 years agokeep leading double-colon to respect the 2018 edition of rust's paths
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

5 years agoindicate in the readme that edition may need to be written in rustfmt.toml
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

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

5 years agoversion-gate the formatting of commented strings
Stéphane Campinas [Wed, 16 Jan 2019 22:06:28 +0000 (23:06 +0100)]
version-gate the formatting of commented strings

5 years agoUse Unicode-standard char width to wrap comments or strings. (#3275)
wada314 [Mon, 14 Jan 2019 23:41:09 +0000 (08:41 +0900)]
Use Unicode-standard char width to wrap comments or strings. (#3275)

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

5 years agoMerge pull request #3285 from arnavb/patch-1
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`

5 years agorecognize strings inside comments in order to avoid indenting them
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

5 years agoFix incorrect documentation for `unstable_features`
Arnav Borborah [Thu, 10 Jan 2019 19:54:06 +0000 (14:54 -0500)]
Fix incorrect documentation for `unstable_features`

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

5 years agoMerge pull request #3276 from dten/allow-p
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

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

5 years agosimplify function to create a string from the itemized block
Stéphane Campinas [Tue, 25 Dec 2018 22:15:52 +0000 (23:15 +0100)]
simplify function to create a string from the itemized block

5 years agoFix shape when formatting return or break expr on statement position (#3259)
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)

5 years agoFix issue #3263 (#3264)
wada314 [Tue, 25 Dec 2018 09:03:48 +0000 (18:03 +0900)]
Fix issue #3263 (#3264)

5 years agoMerge pull request #3266 from wada314/fix-2973
Seiichi Uchida [Tue, 25 Dec 2018 09:00:45 +0000 (18:00 +0900)]
Merge pull request #3266 from wada314/fix-2973

Fix issue #3265

5 years agoMerge pull request #3269 from wada314/lc-unreachable
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.

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

5 years agoChange \r detection much simpler.
Shohei Wada [Sun, 23 Dec 2018 22:25:15 +0000 (07:25 +0900)]
Change \r detection much simpler.

5 years agoAdd test cases.
Shohei Wada [Sun, 23 Dec 2018 21:18:00 +0000 (06:18 +0900)]
Add test cases.

5 years agoFix #2973 in Windows CRLF env.
Shohei Wada [Sun, 23 Dec 2018 21:12:28 +0000 (06:12 +0900)]
Fix #2973 in Windows CRLF env.

5 years agoMerge pull request #3258 from scampi/version-gate
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

5 years agoDo not modify original source code inside macro call
topecongiro [Wed, 19 Dec 2018 16:14:14 +0000 (01:14 +0900)]
Do not modify original source code inside macro call

5 years ago Add a test for #3004
topecongiro [Wed, 19 Dec 2018 16:13:18 +0000 (01:13 +0900)]
 Add a test for #3004

5 years agoclarify the version-gate used for the #3229 change
Stéphane Campinas [Wed, 19 Dec 2018 08:25:04 +0000 (09:25 +0100)]
clarify the version-gate used for the #3229 change

5 years agoadd a section to the Contributing.md file about version-gating formatting changes
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

5 years agoMerge pull request #3240 from Xanewok/parser-panic
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

5 years agoMerge pull request #3250 from scampi/issue3229
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

5 years agoFix trim_right/trim_left deprecation warnings (#3252)
Philipp Hansch [Tue, 18 Dec 2018 02:21:31 +0000 (03:21 +0100)]
Fix trim_right/trim_left deprecation warnings (#3252)

5 years agoMerge pull request #3249 from andjo403/assert_cli
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

5 years agouse the rustfmt function to find the bin
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

5 years agoremove deprecated dependency assert_cli
Andreas Jonson [Thu, 13 Dec 2018 21:46:09 +0000 (22:46 +0100)]
remove deprecated dependency assert_cli

5 years agobump the version of formatting rules to Two
Stéphane Campinas [Fri, 14 Dec 2018 08:51:30 +0000 (09:51 +0100)]
bump the version of formatting rules to Two

5 years agoversion-gate the trailing semicolon change of return statements inside a match arm
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

5 years agoDon't ignore parse error when constructing report
Igor Matuszewski [Thu, 13 Dec 2018 12:34:01 +0000 (13:34 +0100)]
Don't ignore parse error when constructing report

5 years agoUse non-panicking maybe_parser_from_source_str
Igor Matuszewski [Sat, 8 Dec 2018 22:22:23 +0000 (23:22 +0100)]
Use non-panicking maybe_parser_from_source_str

5 years agoAdd test asserting we catch Rust parser panics
Igor Matuszewski [Sat, 8 Dec 2018 21:32:35 +0000 (22:32 +0100)]
Add test asserting we catch Rust parser panics

5 years agoMerge pull request #3232 from ForsakenDurian/patch-1
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

5 years ago1.0.1
Nick Cameron [Sun, 9 Dec 2018 21:51:26 +0000 (10:51 +1300)]
1.0.1

5 years agoremove from README.md
Nick Cameron [Sun, 9 Dec 2018 19:36:09 +0000 (08:36 +1300)]
remove  from README.md

5 years agoMerge pull request #3236 from kngwyu/upd-syntax
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

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

5 years agoFix formatting in Configurations.md
Isaac Ng [Fri, 7 Dec 2018 03:58:02 +0000 (14:58 +1100)]
Fix formatting in Configurations.md

fixes #3230

5 years agoMerge pull request #3231 from LucianBuzzo/minor-typo-fixes
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

5 years agoFix 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>
5 years agorewrite_comment: fix block fallback when failing to rewrite an itemized block
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

5 years agoMerge pull request #3223 from scampi/issue3213
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

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

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

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

5 years agoMerge pull request #3221 from alexreg/cosmetic-1
Nick Cameron [Wed, 28 Nov 2018 02:29:18 +0000 (15:29 +1300)]
Merge pull request #3221 from alexreg/cosmetic-1

Cosmetic improvements

5 years agoMerge pull request #3220 from topecongiro/bytecount/simd-accel
Nick Cameron [Wed, 28 Nov 2018 02:28:24 +0000 (15:28 +1300)]
Merge pull request #3220 from topecongiro/bytecount/simd-accel

Cargo update

5 years agoCosmetic improvements
Alexander Regueiro [Tue, 27 Nov 2018 23:03:09 +0000 (23:03 +0000)]
Cosmetic improvements

5 years agoCargo update
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.

5 years agoAdd a version option
Nick Cameron [Tue, 27 Nov 2018 01:04:48 +0000 (14:04 +1300)]
Add a version option