Nick Cameron
81a4235c7f
Merge pull request #3000 from dimbleby/dch/typo
...
Fix typo in usage text
2018-09-12 15:33:18 +12:00
Nick Cameron
f5f64b3b4a
Merge pull request #2998 from ReapOmen/fix-rustfmt-diff-output
...
Change `print_diff` to output the correct line number.
2018-09-12 15:32:27 +12:00
Nick Cameron
e39bd35ae1
Merge pull request #3010 from topecongiro/issue-3009
...
Refactor the corner case of handling long function
2018-09-12 13:55:41 +12:00
Nick Cameron
bba7dbf2d7
Merge pull request #3011 from topecongiro/rustc-ap-syntax
...
Cargo update
2018-09-12 13:55:06 +12:00
Ivan Molodetskikh
11435c5954
Don't insert a new line when fn has no return type
2018-09-11 12:34:33 +03:00
Seiichi Uchida
e06f16a0a5
Cargo update
2018-09-11 13:52:46 +09:00
Seiichi Uchida
d8357484ac
Refactor the corner case of handling long function
2018-09-11 13:31:37 +09:00
Nick Cameron
77824a24ef
Merge pull request #2988 from YaLTeR/fix-issue-2922
...
Use correct indent in rewrite_bare_fn with Visual style
2018-09-11 15:50:13 +12:00
Alex Crichton
46e2a2e7c7
Support platforms without a timer
...
I've dabbled recently in seeing how hard it would be to compile rustfmt to wasm
and then run it in a web browser, and it turns out that it's [not too
hard][wasm]! In addition to patching a few dependencies which already have a
number of patches out rustfmt also needed some modifications to get it to work,
namely avoiding the usage of `Instant::now()` on the "happy path" which doesn't
work on wasm (it just panics).
This commit is an attempt to add a support for this by avoiding using
`Instant::now()` on the wasm target, but panicking if the actual time elapsed is
requested (which doesn't happen unless verbosely logging I believe).
[wasm]: https://alexcrichton.github.io/rustfmt-wasm/
2018-09-09 11:13:15 -07:00
David Hotham
90ec5a226f
Fix typo in usage text
2018-09-07 09:01:44 +01:00
Robert Bartlensky
992b179d33
Change print_diff
to output the correct line number.
2018-09-06 17:18:33 +01: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
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
Ivan Molodetskikh
54f8bcb5a2
Use correct fn args indent for Visual
2018-08-31 16:53:18 +03:00
Ivan Molodetskikh
05b6aaa130
Add debug logging to fn-related functions
2018-08-31 16:52:45 +03:00
Ivan Molodetskikh
6a029974de
Fix shape in rewrite_tuple_in_visual_indent_style
2018-08-31 15:50:41 +03: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
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
Seiichi Uchida
ad903e08fd
Keep formatting fn even if there is an unformattable argument
2018-08-30 23:39:39 +09:00
Nick Cameron
1a6f215fb5
Merge pull request #2975 from max-sixty/clippy
...
Some clippy changes
2018-08-30 16:43:04 +12: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
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
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
Seiichi Uchida
0d60f6715d
Use span_ends_with_comma to find a trailing comma in an attribute
2018-08-27 16:37:58 +09:00
Nick Cameron
97d29ff2e1
Merge pull request #2942 from crw5996/fix-ellipsis-bug
...
Fix Issue with ellipsis matching in pattern.rs
2018-08-27 09:44:28 +12:00
Nick Cameron
d456161b67
Merge pull request #2966 from topecongiro/issue-2953
...
Format in-place expression like assignment
2018-08-27 09:39:08 +12:00
Nick Cameron
454a20ac01
Merge pull request #2948 from CAD97/patch-2
...
Consider "dev" as nightly for feature (un)gating
2018-08-27 09:23:16 +12:00
Seiichi Uchida
78a0cde5bf
Format in-place expression like assignment
2018-08-26 13:20:25 +09:00
Seiichi Uchida
6aae9d870f
Remove an unnecessary attribute
2018-08-26 13:20:07 +09:00
Zach Lute
ca19c9a35a
Fix build with rust nightly by updating try block syntax. ( #2965 )
2018-08-26 13:02:24 +09:00
Maximilian Roos
10512a59d0
Impl only use ( #2951 )
2018-08-24 14:39:05 +09:00
chris
4e748a269e
Fixed ellipsis bug where rustfmt was creating code that could not be parsed
2018-08-24 00:58:21 -04:00
cad97
fc1909d311
Reformat
2018-08-23 17:14:19 -04:00
cad97
04d804c365
Rename CodeMap/FileMap to SourceMap/SourceFile
...
#2946
2018-08-23 17:10:46 -04:00
Christopher Durham
8cc4200b7d
Consider "dev" as nightly for feature (un)gating
2018-08-23 04:28:44 -04:00