Commit Graph

4562 Commits

Author SHA1 Message Date
Stéphane Campinas
c7d6dc4963
add a condition to the stabilisation process of a option on its design being sound 2019-05-09 00:05:53 +02:00
xiongmao86
de425f1eb8 Fix docs in Configurations.md. 2019-05-08 16:56:53 +08:00
xiongmao86
97d7216cd4 Revert "Change config option from format_doc_comments to format_code_in_doc_comments."
This reverts commit 6a6924c12b.
2019-05-08 16:51:32 +08:00
Stéphane Campinas
da1e3c9635
Merge pull request #3540 from rchaser53/issue-3539
correct to get wrong BytePos
2019-05-06 22:31:38 +02:00
Stéphane Campinas
467c53febe
Merge pull request #3541 from davidalber/fix-condition-typo
Fix condition typo
2019-05-06 22:25:10 +02:00
xiongmao86
6a6924c12b Change config option from format_doc_comments to format_code_in_doc_comments. 2019-05-06 19:45:34 +08:00
David Alber
bfe5e9c108 Fix condition typo 2019-05-05 11:55:11 -07:00
rchaser53
7a93a26aad correct to get wrong BytePos 2019-05-06 00:01:13 +09:00
xiongmao86
3300bb22a5 Isolate format_doc_comment with normalize_comments and wrap_comments. 2019-05-02 21:11:13 +08:00
Ruben Schmidmeister
703a2eab19
Merge remote-tracking branch 'origin/master' into refactor-apply-newline-style 2019-05-02 06:47:41 +02:00
xiongmao86
a653e30d9f Add tests for #3417. 2019-05-01 16:27:34 +08:00
Stéphane Campinas
8c94e2b104
Merge pull request #3533 from rchaser53/issue-3532
fix Comma in comment causes no formatting
2019-05-01 09:48:27 +02:00
rchaser53
2c58b205d5 fix Comma in comment causes no formatting 2019-04-29 21:38:38 +09:00
Seiichi Uchida
d3ec4609d6
Merge pull request #3484 from topecongiro/config_derive
Add config_proc_macro
2019-04-29 11:04:28 +09:00
topecongiro
3dec18a681 Add doc comment 2019-04-27 18:56:04 +09:00
topecongiro
20bdb2fb9d Use config_type proc macro 2019-04-27 18:56:04 +09:00
topecongiro
ee02cdfb0b Add config_proc_macro 2019-04-27 18:55:13 +09:00
Seiichi Uchida
aa53d2dc42
Merge pull request #3530 from xiongmao86/issue2941
Add a test for #2941.
2019-04-26 19:58:12 +09:00
xiongmao86
174f591134 Add a test for #2941. 2019-04-26 16:04:49 +08:00
Ruben Schmidmeister
7556c420ab
Use more descriptive names 2019-04-24 21:58:50 +02:00
Ruben Schmidmeister
19bd1a44ce
Preserve standalone carriage returns on windows also 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
2e77f2bca7
Split apply with auto detection tests into separate fns 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
0f1d5760ba
Fix auto detection of windows newlines for inputs with multibyte chars 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
20c8d8aabc
Split auto_detect tests into seperate fns 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
764cdf60fa
Extract conversion to windows newlines into fn 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
58d7b2cc66
Extract literals into constants 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
add473667a
Introduce effective newline style 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
8849273efb
Convert to free standing functions 2019-04-24 21:01:09 +02:00
Ruben Schmidmeister
ba5b2e9c9b
Extract applying of newline style into own mod 2019-04-24 21:01:09 +02:00
topecongiro
5274b49caa Release 1.2.2 2019-04-24 23:25:35 +09:00
Seiichi Uchida
a6daccc229
Merge pull request #3523 from topecongiro/issue-3515
Attempt to format attributes if only they exist
2019-04-24 07:22:55 -07:00
Seiichi Uchida
aeb556ecb2
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
2019-04-24 07:22:40 -07:00
topecongiro
f520f7e0f8 Suppress spurious parse error messages on skipped files 2019-04-24 20:46:29 +09:00
topecongiro
a20ffc6d52 Add a path to rustfmt.toml to GitIgnore as root path 2019-04-24 20:22:35 +09:00
rChaser53
05547d90b5 leave the comment in parentheses of argumentless Fn (#3518) 2019-04-23 16:21:04 -07:00
topecongiro
ec0d263117 Disable cargo integration test 2019-04-24 00:05:15 +09:00
topecongiro
af3e940940 Attempt to format attributes if only they exist 2019-04-23 08:50:59 +09:00
topecongiro
8d43ca297a Add and update test for #3515 2019-04-23 08:50:44 +09:00
topecongiro
f8d3aa5908 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.
2019-04-23 08:12:02 +09:00
Seiichi Uchida
1f61286293
Merge pull request #3520 from rchaser53/improve-gh-page
use filter by hash when first rendering
2019-04-22 14:58:40 -07:00
rchaser53
591b562bcf use filter by hash when first rendering 2019-04-22 23:50:44 +09:00
Seiichi Uchida
31a69429ae
Merge pull request #3519 from oli-obk/patch-1
"first" element check does nothing
2019-04-22 04:54:06 -07:00
Oliver Scherer
c60d6ddc02
"first" element check does nothing 2019-04-22 13:04:44 +02:00
Stéphane Campinas
28dfd0ab59
no need to main the separate wiki page
no need to maintain a separate page for the options given the new configuration browser
2019-04-18 09:37:53 +02:00
topecongiro
b860feaffc Release 1.2.1 2019-04-18 07:26:52 +09:00
topecongiro
ebd9ef5c51 Cargo update 2019-04-18 07:26:22 +09:00
Seiichi Uchida
5dd042c152
Merge pull request #3511 from topecongiro/issue3498
Avoid overflowing item with attributes
2019-04-17 11:40:00 -07:00
Seiichi Uchida
760ec07978
Merge pull request #3510 from topecongiro/issue3509
Fix duplication of attributes on a match arm's body
2019-04-17 11:39:44 -07:00
Ruben Schmidmeister
3dc625c661 Use annotate-snippets for emitting errors (#3507) 2019-04-17 05:33:36 -07:00
Seiichi Uchida
efa3a62b56
Merge pull request #3512 from scampi/issue-2724
exit integration test successfully if the crate build failed before applying rustfmt
2019-04-16 00:42:15 -07:00