topecongiro
9a7ea6aacb
Handle a macro argument with a single keyword
...
Closes #3331 .
2019-02-11 00:34:23 +09:00
Seiichi Uchida
c4611a0e6b
Merge pull request #3326 from scampi/issue-3302
...
fix formatting of strings within a macro
2019-02-11 00:32:06 +09:00
Stéphane Campinas
b86dd161df
remove unneeded Version import
2019-02-09 14:23:54 +01:00
Stéphane Campinas
e28fae9974
Merge pull request #3328 from topecongiro/edition-2018
...
Use edition 2018
2019-02-08 09:35:27 +01:00
Seiichi Uchida
44d6f7c43e
Merge pull request #3332 from rchaser53/issue-3234
...
add issue-3234 test
2019-02-08 12:35:50 +09:00
Seiichi Uchida
672f352c89
Merge pull request #3325 from topecongiro/rustcap
...
Update rustc-ap-* crates to 366.0.0
2019-02-08 00:24:57 +09:00
topecongiro
d956980de4
Use edition 2018
2019-02-08 00:22:34 +09:00
rchaser53
5e530980b7
add issue-3234 test
...
this issue is already resolved
2019-02-08 00:05:54 +09:00
Stéphane Campinas
4ed31b606d
Merge pull request #3322 from fyrchik/fix/3304
...
calculate statement first line properly
2019-02-07 10:51:08 +01:00
Evgenii
109394536d
add more tests
2019-02-07 12:12:36 +03:00
Evgenii
2502939b60
fix review comments
2019-02-07 10:55:55 +03:00
Stéphane Campinas
813aa79567
fix formatting of strings within a macro
2019-02-07 00:05:05 +01:00
Seiichi Uchida
1ae032652c
Add a test for #3313
2019-02-06 23:10:27 +09:00
Seiichi Uchida
6541f200c9
Fix how we get span of the PathSegment separator
2019-02-06 23:06:47 +09:00
topecongiro
f4f9502ea7
Cargo update
...
- Update `rustc-ap-*` crates to 366.0.0
- Update the other crates to the latest stable
2019-02-06 23:06:15 +09:00
Seiichi Uchida
ecde43e06b
Merge pull request #3323 from scampi/failure-repo
...
silence testing on the failure repo until it's fixed
2019-02-06 20:23:25 +09:00
Stéphane Campinas
4fb8594107
silence testing on the failure repo until it's fixed
2019-02-06 10:12:32 +01:00
Evgenii
da2d8a4c57
calculate statement first line properly
2019-02-06 10:05:51 +03:00
Seiichi Uchida
bc32f9fcf3
Merge pull request #3320 from scampi/unecessary-source-test
...
remove unecessary source test file
2019-02-06 10:28:25 +09:00
Stéphane Campinas
4c5ef9a2f5
remove unecessary source test file
2019-02-05 21:19:41 +01:00
Seiichi Uchida
aec0a7c999
Merge pull request #3318 from rchaser53/issue-3314
...
fix Removed indentation after nested comments error
2019-02-05 14:03:05 +09:00
rchaser53
5fcb7507ca
fix Removed indentation after nested comments error
2019-02-05 13:12:45 +09:00
Seiichi Uchida
81067b11a4
Merge pull request #3317 from fyrchik/fix/edition
...
transition to Rust 2018
2019-02-05 11:24:12 +09:00
Evgenii
ece629b1cc
transition to Rust 2018
2019-02-04 13:30:43 +03:00
Seiichi Uchida
bfcfaf1743
Merge pull request #3308 from topecongiro/issue-2835
...
Prioritize single_line_fn and empty_item_single_line over brace_style
2019-02-04 00:11:01 +09:00
Seiichi Uchida
efd6fda43f
Merge pull request #3311 from rchaser53/issue-3295
...
fix "internal error: left behind trailing whitespace" with long lines
2019-02-04 00:10:42 +09:00
rchaser53
c2534f5324
fix "internal error: left behind trailing whitespace" with long lines
2019-02-01 19:58:38 +09:00
Seiichi Uchida
7c0f59bee3
Merge pull request #3306 from topecongiro/issue-2841
...
Do not force trailing comma when using mixed layout
2019-02-01 00:23:15 +09:00
topecongiro
0142e961ad
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.
2019-02-01 00:22:47 +09:00
topecongiro
154ccf6a02
Do not force trailing comma when using mixed layout
2019-01-31 23:44:58 +09:00
Seiichi Uchida
923da60f72
Merge pull request #3298 from topecongiro/issue-3272
...
Use the same rule between function and macro
2019-01-30 00:36:55 +09:00
topecongiro
181ca427dc
Use the same rule with macro and function calls with a single chain
2019-01-28 23:05:42 +09:00
topecongiro
5df0a18849
Avoid putting a long macro call in a single line
2019-01-28 23:05:39 +09:00
Seiichi Uchida
36c9dc646c
Merge pull request #3293 from scampi/issue-3241
...
Keep leading colons for global paths
2019-01-27 23:14:57 +09:00
Seiichi Uchida
5b6f6431a3
Merge pull request #3280 from m-ou-se/global-config
...
Look for a global rustfmt.toml.
2019-01-27 23:02:54 +09:00
Mara Bos
635a4cdcdc
Also look in home directory for global config.
2019-01-27 13:22:25 +01:00
Mara Bos
13db34fb95
Document the global rustfmt.toml feature.
2019-01-27 13:22:25 +01:00
Mara Bos
24daa174ca
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.
2019-01-27 13:22:25 +01:00
Stéphane Campinas
2125ad272e
fix glob and nested global imports
2019-01-27 12:46:14 +01:00
Seiichi Uchida
203e6d265d
Merge pull request #3294 from rchaser53/issue-3278
...
change new line point in the case of no args
2019-01-27 16:28:28 +09:00
Seiichi Uchida
35d5ef7828
Apply rustfmt::skip on imports ( #3289 )
2019-01-27 16:26:09 +09:00
rchaser53
f92f3e3bda
add the version gate to the code and test
2019-01-27 14:38:57 +09:00
Stéphane Campinas
4e7eda420c
Merge pull request #3297 from matthiaskrgr/deps
...
update dependencies
2019-01-27 02:23:59 +01:00
Matthias Krüger
d44ee75438
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
2019-01-27 00:58:46 +01:00
rchaser53
7b996542cc
change new line point in the case of no args
2019-01-26 00:16:51 +09:00
Stéphane Campinas
a2bfc026e5
keep leading double-colon to respect the 2018 edition of rust's paths
2019-01-23 00:01:53 +01:00
Stéphane Campinas
78d4fca2d7
indicate in the readme that edition may need to be written in rustfmt.toml
2019-01-21 00:53:31 +01:00
Nick Cameron
d2e91b5b68
Merge pull request #3284 from scampi/issue-3270
...
recognize strings inside comments in order to avoid indenting them
2019-01-17 20:22:36 +13:00
Stéphane Campinas
083a20fb1a
version-gate the formatting of commented strings
2019-01-16 23:06:28 +01:00
wada314
a01990c4d0
Use Unicode-standard char width to wrap comments or strings. ( #3275 )
2019-01-15 08:41:09 +09:00