Rémy Rakic
cbc58410d9
add tests interleaving doc attrib comments and regular comments
2018-09-13 02:27:09 +02:00
Rémy Rakic
6c96ab7c9a
address review comment in Attribute rewrite fn
2018-09-13 01:13:07 +02:00
Rémy Rakic
171e656f64
add non-regression test to existing attributes
...
when `normalize_doc_attributes` is on, they shouldn't be affected
2018-09-13 01:10:57 +02:00
Rémy Rakic
4af0888648
add non-regression test to existing doc attributes
...
when `normalize_doc_attributes` is off, they shouldn't be normalized to a doc comment
2018-09-13 01:06:02 +02:00
Rémy Rakic
43f813867c
add test with multiple levels of indents
2018-09-13 01:02:11 +02:00
Rémy Rakic
9f6cf7b72c
move config attribute
2018-09-13 00:37:31 +02:00
lqd
4b7130dfa1
normalize_doc_attributes option: convert doc attributes to comments
...
Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments.
2018-09-07 21:58:35 +02:00
Nick Cameron
6ada5b51cc
Merge pull request #2997 from matthiaskrgr/cargo_test_release
...
fix cargo test --release
2018-09-06 17:40:08 +12:00
Matthias Krüger
e058a3f7e7
fix cargo test --release.
...
test::verify_check_works was failing in relase mode on my machine.
The problem was it would check for target/debug/rustfmt in release mode instead of
target/release/rustfmt and fail an assert.
This commit fixes it so that cargo check looks for target/debug/rustfmt and
cargo check --release looks for target/release/rustfmt
2018-09-06 02:07:09 +02:00
Nick Cameron
f655671e12
Merge pull request #2983 from topecongiro/issue-2642
...
Handle raw string literals in CharClasses
2018-09-04 19:11:49 +12:00
Nick Cameron
414f98e775
Merge pull request #2993 from topecongiro/rustc-ap
...
Cargo update
2018-09-04 19:11:23 +12:00
topecongiro
1704e24956
Cargo update
2018-09-04 00:17:26 +09:00
Nick Cameron
2291be7fa1
Merge pull request #2992 from max-sixty/clippy2
...
Clippy 2/2
2018-09-03 13:25:35 +12:00
Nick Cameron
a67208f212
Merge pull request #2986 from topecongiro/issue-2907
...
Handle chain w/ try operators with spaces
2018-09-03 13:10:50 +12:00
Nick Cameron
5fb9418aec
Merge pull request #2991 from topecongiro/raw-identifier-in-chain
...
Handle raw identifiers in chain
2018-09-03 13:08:19 +12:00
Maximilian Roos
968affc3e0
final clippy changes
2018-09-01 16:32:38 -04:00
Seiichi Uchida
08e282877a
Handle raw identifiers in chain
2018-09-01 16:18:27 +09:00
Seiichi Uchida
627780864f
Merge pull request #2987 from YaLTeR/fix-issue-2930
...
Use correct shape in Visual tuple rewriting
2018-09-01 16:04:14 +09:00
Ivan Molodetskikh
6a029974de
Fix shape in rewrite_tuple_in_visual_indent_style
2018-08-31 15:50:41 +03:00
Ivan Molodetskikh
098a5391f0
Add a test for #2930
2018-08-31 15:25:08 +03:00
Seiichi Uchida
ec6086b802
Merge pull request #2984 from mehcode/feature/edition-option
...
Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option
2018-08-31 18:26:19 +09:00
Seiichi Uchida
ba9e159722
Update tests
2018-08-31 18:20:28 +09:00
Seiichi Uchida
20aac086d6
Simplify post-comment extraction
2018-08-31 18:20:28 +09:00
Seiichi Uchida
9df1dbe1ac
Use trim_tries to extract post comment over simple trim_matches
2018-08-31 18:20:28 +09:00
Seiichi Uchida
612f1af734
Use trim_tries to extract pre-comments over simple trim_matches
2018-08-31 18:20:28 +09:00
Seiichi Uchida
2880d59ec0
Add trim_tries
2018-08-31 18:20:25 +09:00
Seiichi Uchida
1b8f0ff1b6
Add a test for #2907
2018-08-31 18:10:47 +09:00
Ryan Leckey
eec74360dc
Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option
2018-08-31 00:04:23 -07:00
Maximilian Roos
b1da2a53b4
Merge branch 'master' into clippy2
2018-08-31 00:19:12 -04:00
topecongiro
67480422b9
Handle raw string literal without any sharps
2018-08-31 10:49:39 +09:00
topecongiro
309be479b2
Handle raw string literals in CharClasses
2018-08-31 10:37:46 +09:00
topecongiro
c903119d8d
Add a test for #2642
2018-08-31 10:37:22 +09:00
Nick Cameron
d88139893f
Merge pull request #2981 from topecongiro/issue-2956
...
Keep formatting fn even if there is an unformattable argument
2018-08-31 10:43:06 +12:00
Seiichi Uchida
ad903e08fd
Keep formatting fn even if there is an unformattable argument
2018-08-30 23:39:39 +09:00
Seiichi Uchida
d8301050a5
Add a test for #2956
2018-08-30 23:38:40 +09:00
Nick Cameron
68015ecf52
Merge pull request #2980 from davidalber/use-stable-in-travis
...
Use stable Rust in Travis CI config snippet
2018-08-30 20:23:00 +12:00
David Alber
c69b9601c2
Use stable Rust in Travis CI config snippet
...
In #2725 the Travis CI config snippet was changed to use nightly
Rust because the stable rustfmt of the time (rustfmt 0.4.1-stable)
did not contain the `--check` flag, which is used in the Travis
config snippet. The current stable rustfmt (rustfmt 0.8.2-stable)
does contain the `--check` flag, so it is now possible to use the
Travis config in the README with stable rustfmt.
2018-08-29 21:59:12 -07:00
Nick Cameron
1a6f215fb5
Merge pull request #2975 from max-sixty/clippy
...
Some clippy changes
2018-08-30 16:43:04 +12:00
Nick Cameron
b784f23484
Merge pull request #2952 from crw5996/fix-use-bug
...
Fixed modsep operator for various rustlang editions
2018-08-30 11:18:04 +12:00
Maximilian Roos
af7b341a50
Merge branch 'master' into clippy2
2018-08-28 21:57:15 -04:00
Maximilian Roos
7d60e3a1ad
more clippy
2018-08-28 21:57:08 -04:00
Maximilian Roos
df72570b58
set of clippy changes
2018-08-28 00:33:51 -04:00
Seiichi Uchida
4f3c20c6b1
Merge pull request #2974 from max-sixty/readme
...
Remove old readme content
2018-08-28 13:08:25 +09:00
crw5996
18cd0c4986
Fixed overly complicated code as requested in the code review
2018-08-27 23:08:37 -04:00
crw5996
d832525809
Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt into fix-use-bug
2018-08-27 23:04:55 -04:00
crw5996
20075306f7
Fixed Issues brought up in PR
2018-08-27 22:59:44 -04:00
Maximilian Roos
2e75f23de8
remove old readme content
2018-08-27 22:53:47 -04:00
Nick Cameron
c4d845f998
Merge pull request #2972 from crw5996/fix-optional-arg-condensing
...
Fix optional arg condensing
2018-08-28 14:09:31 +12:00
crw5996
8c7afaf03b
Refactored to not use a mutable variable
2018-08-27 15:33:49 -04:00
crw5996
5d642e8b23
Fixed #2955 . Added value to determine whether or not rustfmt has condensed a tuple-struct
...
Refactored to not use a mutable variable
2018-08-27 15:25:40 -04:00