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
Marcus Klaas de Vries
9c969ca6fb
Merge pull request #786 from rust-lang-nursery/str-leave
...
Don't reformat strings if we don't have to.
2016-02-03 06:11:01 +01:00
Marcus Klaas de Vries
e2c8c1cab5
Merge pull request #797 from kamalmarhubi/config-expect
...
config: Make panic messages more useful
2016-02-03 06:08:34 +01:00
Marcus Klaas de Vries
9756c654c9
Merge pull request #800 from kamalmarhubi/gitignore-rust-bk
...
gitignore .rs.bk files
2016-02-03 06:07:53 +01:00
Marcus Klaas de Vries
aabe6e7668
Merge pull request #802 from kamalmarhubi/remove-args-doc
...
cleanup: Remove documentation of deleted parameter
2016-02-03 06:07:07 +01:00
Kamal Marhubi
70c9b55ecb
cleanup: Remove documentation of deleted parameter
...
The `args` parameter was removed in 579fb34
.
2016-02-02 12:37:38 -05:00
sid
46242ed10e
Add support for the config-path option
...
Adds a config-path option for rustfmt. If this argument is provided,
it recursively searches the config-path for a rustfmt.toml file.
If file is not found, reverts to searching the file input path for the
config file or uses default options.
2016-02-02 15:08:44 +05:30
Kamal Marhubi
5ac67adb40
gitignore .rs.bk files
...
These clutter up `git status` output when working on rustfmt.
2016-02-01 23:58:38 -05:00
Kamal Marhubi
8b601812a6
cleanup: Use const instead of static
2016-02-01 23:40:45 -05:00
Kamal Marhubi
52f98c763b
config: Disable report_todo by default
2016-02-01 20:29:44 -05:00
Kamal Marhubi
85d14617ce
config: Make panic messages more useful
2016-02-01 18:40:32 -05:00
Nick Cameron
ee32615df1
Merge pull request #792 from kamalmarhubi/project-file-lookup-error-handling
...
bin: Improve error handling in project file lookup
2016-02-02 08:12:50 +13:00
Kamal Marhubi
0f254bb343
docs: Clarify return type of lookup_project_file
2016-02-01 12:55:12 -05:00
Nick Cameron
86572d455b
Merge pull request #793 from kamalmarhubi/expect-formatting
...
tests: Use Result::expect() throughout
2016-02-01 17:55:30 +13:00
Kamal Marhubi
2b991bc260
tests: Use Result::expect() throughout
...
`Result::expect()` was added in Rust 1.4. Using it tidies up the code,
and also helps by printing error details, eg, printing syntax error
details if a regex fails to compile. It adds a colon followed by the
`Debug` output from any error, making the periods in messages
unnecessary.
2016-01-31 13:10:09 -05:00
Kamal Marhubi
98726d0a53
bin: Improve error handling in project file lookup
...
Previously errors were being silently ignored. Eg, if `rustfmt` did not
have permission to read a `rustfmt.toml` file, the default configuration
was used without informing the user.
2016-01-31 10:28:47 -05:00
Marcus Klaas de Vries
edcc4ec6c0
Merge pull request #787 from rust-lang-nursery/mod-empty
...
Put empty modules on one line
2016-01-31 11:33:49 +01:00
Marcus Klaas de Vries
1d216e1829
Merge pull request #791 from kamalmarhubi/canonicalize-path
...
bin: Canonicalize path before looking for project file
2016-01-31 11:33:05 +01:00
Marcus Klaas de Vries
02f38558cf
Merge pull request #790 from kamalmarhubi/handle-rustfmt-toml-dir
...
bin: Properly handle a directories named rustfmt.toml
2016-01-31 11:32:00 +01:00
Kamal Marhubi
7a0d8be405
bin: Canonicalize path before looking for project file
2016-01-31 02:01:54 -05:00