David Alber
b4caa875f2
Fixing Travis config for Python 3 installation
2018-03-02 09:22:59 -08:00
Bastien Orivel
64f6372f32
Bump winapi to 0.3
2018-03-02 15:20:26 +01:00
Seiichi Uchida
0325d7aabe
Merge pull request #2501 from Eijebong/log
...
Bump log to 0.4 and env_logger to 0.5
2018-03-02 22:24:19 +09:00
Seiichi Uchida
0bd77f2681
Do not reorder inline modules
2018-03-02 21:53:24 +09:00
Seiichi Uchida
cea5a92a6c
Add a test for #2482
2018-03-02 21:53:13 +09:00
Bastien Orivel
5f4eb0f17e
Bump log to 0.4 and env_logger to 0.5
2018-03-02 13:08:23 +01:00
David Alber
87d3b3c25a
Adding links to the Code of Conduct
2018-03-01 21:58:07 -08:00
Nick Cameron
4f522794ae
Tidy up and pass tests
2018-03-02 15:07:13 +13:00
Nick Cameron
39301ae5f2
Go back to a non-workspace structure
...
Kinda reverts https://github.com/rust-lang-nursery/rustfmt/pull/2419
2018-03-02 14:58:23 +13:00
Nick Cameron
6154f2b3e5
Fix build
2018-03-02 14:25:26 +13:00
Nick Cameron
ab7b4a8bf5
Revert "Remove rustfmt and cargo-fmt"
...
This reverts commit 9d2229f2fd
.
And `cargo updates`
2018-03-02 14:12:33 +13:00
Nick Cameron
f377d1f59c
Revert "Remove cargo-fmt and rustfmt-bin from self_tests()"
...
This reverts commit 93c349a6c1
.
2018-03-02 14:11:28 +13:00
David Alber
73fb380cf1
Adding the Rust Code of Conduct
2018-03-01 12:37:19 -08:00
Nick Cameron
a02b658d2c
Merge pull request #2498 from alexcrichton/update-env-logger
...
Update env_logger to 0.5
2018-03-02 08:24:32 +13:00
Alex Crichton
2ed8baf934
Update env_logger to 0.5
...
Helps unify with some dependencies in rust-lang/rust!
2018-03-01 10:31:57 -08:00
Nick Cameron
01873d5194
Merge pull request #2492 from dlukes/feat/fix-tests
...
Remove cargo-fmt and rustfmt-bin from self_tests()
2018-02-27 21:37:56 +13:00
David Lukes
93c349a6c1
Remove cargo-fmt and rustfmt-bin from self_tests()
2018-02-26 16:22:21 +01:00
Nick Cameron
9d2229f2fd
Remove rustfmt and cargo-fmt
...
Moved them to the rustfmt-bin repo
2018-02-26 16:53:31 +13:00
Nick Cameron
f1281cb440
Add README for rustfmt-core and use rustfmt-config from crates.io
2018-02-26 16:28:04 +13:00
Nick Cameron
7eabc6413d
Add a readme for rustfmt-config
2018-02-26 16:25:19 +13:00
Nick Cameron
ee5cb91602
Merge pull request #2489 from topecongiro/issue-2487
...
Preserve trailing comma on macro in item position
2018-02-25 12:52:27 +13:00
Nick Cameron
2eb57b3897
Merge pull request #2486 from topecongiro/lazy_statics
...
Format `lazy_static!`
2018-02-25 12:48:57 +13:00
Nick Cameron
fd774dbba3
Merge pull request #2485 from topecongiro/attr
...
Add `attr` modules and allow `#[name = value]` to exceed max width
2018-02-25 12:47:32 +13:00
Nick Cameron
4d3b73e075
Merge pull request #2483 from topecongiro/error-on-unknown-config-name-in-configurations
...
Error on outdated Configurations.md
2018-02-25 12:46:07 +13:00
topecongiro
3b79dd9b37
Preserve trailing comma on macro in item position
2018-02-24 11:48:18 +09:00
topecongiro
0f706cd452
Add a test for #2487
2018-02-24 11:48:07 +09:00
topecongiro
b080e79a2f
Cargo fmt
2018-02-24 01:18:53 +09:00
topecongiro
f310b924ea
Format lazy_static! macro
...
Some macros like `lazy_static!` cannot be parsed as a valid AST. Therefore, we
need to parse them manually to be able to format them. Obviously this method
will not scale, we will never be able to cover every macro in the entire
ecosystem. That being said, I think it will not hurt to be able to format macros
that are popular (such as `lazy_static!`) as long as rustfmt will not produce
broken code when the macro has syntax that is not expected.
2018-02-24 01:05:19 +09:00
topecongiro
ebfc3af92a
Update a test for lazy_static!
2018-02-24 01:04:54 +09:00
topecongiro
72e26a12bc
Add a test for formatting lazy_static!
2018-02-24 01:04:36 +09:00
topecongiro
75cf0be87b
Add a test for #2479
2018-02-23 23:18:54 +09:00
topecongiro
0d8636f229
Allow meta item's value to exceed max width
2018-02-23 23:15:29 +09:00
topecongiro
b17c522650
Add doc comment to rewrite_first_group_attrs
2018-02-23 22:58:46 +09:00
topecongiro
eea5dcac46
Add a test for #2414
...
Closes #2414 .
2018-02-23 22:53:16 +09:00
topecongiro
391ed68ad4
Move type punctuation tests under config dir
2018-02-23 22:53:16 +09:00
topecongiro
e2e653bc8f
Remove unused tests
2018-02-23 22:53:16 +09:00
topecongiro
94188f5a28
Remove unused tests
2018-02-23 22:53:16 +09:00
topecongiro
871a18ac13
Mention that doc.rs is a part of multiple.rs
2018-02-23 22:53:16 +09:00
topecongiro
128925dcb4
Use visual indent style in where-clause.rs
2018-02-23 22:53:16 +09:00
topecongiro
758c54e9d5
Update big-impl tests
...
big-impl.rs and big-impl-rfc.rs is identical. One of them should use visual
indent style, and their file name should reflect that.
2018-02-23 22:53:16 +09:00
topecongiro
ecfb9c9526
Move items-related stuffs to item mod from visitor mod
...
Move `rewrite_extern_crate`, is_mod_decl`, `is_use_item` and `is_extern_crate`.
2018-02-23 22:37:10 +09:00
topecongiro
a8852fd787
Move filter_inline_attrs() to attr mod from visitor mod
2018-02-23 22:32:39 +09:00
topecongiro
529fed0c34
Add attr module
2018-02-23 22:30:05 +09:00
topecongiro
34f6408ea2
Update Configurations.md
2018-02-23 21:55:16 +09:00
topecongiro
5f49587a2c
Update configuration tests
...
This commit adds following functionalities to `configuration_snippet_tests`:
1. Error if there is an unknown configuration option in Configuration.md.
2. Error if there are multiple guides for the same configuration option in
Configuration.md.
3. Error if an user-facing configuration option does not have its guide in
Configuration.md.
We will be able to catch outdated Configuration.md. Should prevent issues
like #2459 .
2018-02-23 21:54:59 +09:00
Nick Cameron
cc2c7433e2
Merge pull request #2480 from topecongiro/issue-2476
...
Avoid drifting macro body which is unformattable
2018-02-23 13:39:56 +13:00
topecongiro
8531d70c77
Cargo clippy
2018-02-23 09:07:35 +09:00
topecongiro
9cdac82d42
Cargo fmt and update a test
2018-02-23 08:14:22 +09:00
topecongiro
5ccc23f920
Call wrap_str to make sure that the formatting macro body worked
2018-02-23 08:13:57 +09:00
topecongiro
cb0097f7d8
Use multiple lines for function calls with 0 arg which exceeds max width
...
e.g.
foo(
)
2018-02-23 08:12:48 +09:00