Connor Brewster
7a6eb2197e
Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt into add-trait-formatting
2016-03-14 20:49:14 -06:00
Connor Brewster
54a9f0ebd0
Readded spaces to source test
2016-03-14 20:11:39 -06:00
Connor Brewster
2793b4090c
Added tests
2016-03-14 20:05:20 -06:00
Connor Brewster
7ba43ff06e
Finished implementing impl and trait type/const
2016-03-14 19:52:07 -06:00
Nick Cameron
9d8ce54428
Don't apply the function args heuristic to tuple lits.
...
Closes #450
Closes #510
2016-03-14 20:51:06 +13:00
Nick Cameron
96a2f25788
Keep empty extern blocks on one line
...
Closes #462
2016-03-14 18:55:55 +13:00
Nick Cameron
204e732c1b
cargo update
2016-03-14 18:19:57 +13:00
Nick Cameron
da65090050
Merge pull request #857 from kamalmarhubi/codemap-ext
...
utils: Add CodeMapExt extension trait for span_* methods
2016-03-14 18:00:51 +13:00
Ari Koivula
8d299210a6
Add independent test for Vertical rustfmt-fn_args_density
2016-03-14 04:03:33 +02:00
Ari Koivula
0c8640a84f
Fix last comment turning into block comment
...
This fixes the comment after the last argument in an argument list
being turned into a block comment when it's not necessary.
2016-03-14 02:02:52 +02:00
Ari Koivula
f4171e97eb
Add test for vertical fn_args_density
2016-03-14 02:02:37 +02:00
Ari Koivula
db9d129025
Add Vertical fn_args_density
...
This adds new option Vertical to fn_args_density, which formats the
list vertically no matter what.
2016-03-14 02:00:21 +02:00
Kamal Marhubi
d82d9fc808
utils: Add CodeMapSpanUtils trait for span_* methods
...
This commit adds a CodeMapSpanUtils extension trait on CodeMap, and
moves some functions to methods there:
- span_after
- span_after_last
- span_before
This better reflects them being lookup methods on the codemap.
2016-03-13 18:14:07 -04:00
Nick Cameron
17856e8d56
Merge pull request #859 from solidsnack/master
...
Write non-output to stderr when there is output
2016-03-14 11:13:46 +13:00
Connor Brewster
3163071c75
Updated to latest rustfmt
2016-03-12 11:09:27 -07:00
Connor Brewster
87a5d88aeb
Uncommented missed spans check
2016-03-12 10:53:47 -07:00
Connor Brewster
de95b4cefb
Removed unneeded pattern matching
2016-03-11 22:50:30 -07:00
Connor Brewster
34651c4f78
Fixed formatting
2016-03-11 22:41:22 -07:00
Connor Brewster
d24c31f74c
Added support for associated type rewriting
2016-03-11 22:32:08 -07:00
Connor Brewster
9e583ce7a7
Added where clause formatting
2016-03-11 14:49:11 -07:00
Connor Brewster
35dfcc0078
Adding trait formatting
...
trait header formatting finished
generic formatting finished
added basic trait bounds formatting
2016-03-11 14:18:30 -07:00
Marcus Klaas de Vries
3fddb98149
Merge pull request #851 from Amanieu/const_unsafe
...
Fix ordering of "const unsafe fn"
2016-03-11 10:50:14 +01:00
Jason Dusek
867b5074aa
Use braces, not parens, for macro def
2016-03-11 00:41:11 -08:00
Jason Dusek
223df90c81
Align arguments
2016-03-11 00:15:26 -08:00
Jason Dusek
d216c358ef
Write non-output to stderr when there is output
2016-03-11 00:15:26 -08:00
Amanieu d'Antras
ef03dcaa7f
Add a test for #850
2016-03-09 02:44:01 -08:00
Amanieu d'Antras
698027c4c4
Fix ordering of "const unsafe fn"
2016-03-09 02:44:01 -08:00
Nick Cameron
93029638a0
Merge pull request #847 from kamalmarhubi/update-syntex_syntax
...
deps: Update syntex_syntax to 0.29.1
2016-03-09 18:31:02 +08:00
Marcus Klaas de Vries
80db099558
Merge pull request #841 from kamalmarhubi/operation-struct-like-enum
...
rustfmt: Use struct-like enum variants for Operation
2016-03-03 10:27:42 +01:00
Kamal Marhubi
589dabda2f
deps: Update syntex_syntax to 0.29.1
2016-03-02 13:08:21 -05:00
Kamal Marhubi
de1fc319c1
rustfmt: Use struct-like enum variants for Operation
2016-03-02 13:08:08 -05:00
Marcus Klaas de Vries
684596fcdd
Merge pull request #846 from kamalmarhubi/update-design-doc
...
doc: Update Design.md to mention syntex_syntax and config
2016-03-02 14:34:36 +01:00
Marcus Klaas de Vries
c018a972ae
Merge pull request #845 from regexident/fix_811
...
Fix for issue #811
2016-03-02 14:30:49 +01:00
Marcus Klaas de Vries
25ca0dcaee
Merge pull request #843 from Manishearth/rustup
...
Upgrade deps to make it compile again
2016-03-02 13:10:34 +01:00
Kamal Marhubi
1a26a32f8c
doc: Update Design.md to mention syntex_syntax and config
2016-03-01 12:19:37 -05:00
Vincent Esche
a0567d4063
Fix for issue #811 (falsely inserted "::" in paths with parameterized trait cast).
2016-03-01 16:39:43 +01:00
Manish Goregaokar
23ba7e7b4b
Upgrade deps to make it compile again
2016-02-27 00:58:31 +05:30
Nick Cameron
65bc5c242d
Merge pull request #798 from kamalmarhubi/default-no-todo-warnings
...
config: Disable report_todo by default
2016-02-15 16:36:58 +13:00
Nick Cameron
c66aae74a8
Merge pull request #820 from rust-lang-nursery/patterns
...
Format all patterns (well, except macros)
2016-02-15 10:17:11 +13:00
Nick Cameron
160eb73baa
reviewer changes
2016-02-15 10:07:19 +13:00
Nick Cameron
d86cfb357a
Format all patterns (well, except macros)
...
Fixes #18
Fixes #672
2016-02-12 14:59:13 +13:00
Nick Cameron
c906b656e6
Merge pull request #818 from kamalmarhubi/cargo-lock
...
Bump version in Cargo.lock
2016-02-11 08:55:27 +13:00
Kamal Marhubi
09425ddc35
Bump version in Cargo.lock
...
This was missed in 82a177e
.
Refs #805
2016-02-10 13:15:01 -05:00
Nick Cameron
82a177e486
Version bump
...
Fixes #805
2016-02-09 17:28:45 +13:00
Nick Cameron
347cbb1b34
Merge pull request #812 from kamalmarhubi/write-mode-from-config
...
config: Use write_mode from config
2016-02-09 17:16:54 +13:00
Kamal Marhubi
14dbac5fd7
config: Use write_mode from config
...
This commit tidies up handling of `write_mode` by setting it in the
config at the start, and removing the `write_mode` parameter threaded
throughout the formatting process.
2016-02-08 22:52:44 -05:00
Nick Cameron
0fb71d0d7d
Merge pull request #809 from andradei/patch-1
...
Correct command that lists config options
2016-02-05 10:24:09 +13:00
Isaac Andrade
614eb5393e
Correct command that lists config options
...
`cargo run -- --config-help` Simply runs a project without printing the config options.
`rustfmt --config-help` actually prints the config files.
2016-02-03 16:50:39 -07:00
Nick Cameron
a6d70547e0
Merge pull request #799 from kamalmarhubi/const-instead-of-static
...
cleanup: Use const instead of static
2016-02-03 19:26:38 +13:00
Marcus Klaas de Vries
586f525cf1
Merge pull request #780 from sidred/config_path
...
Add support for the config-path option
2016-02-03 06:12:27 +01:00