topecongiro
405360a3fd
Refactoring: use methods from libsyntax attr module
2018-01-04 12:49:37 +09:00
topecongiro
75cb236711
Compare extern crate items with its name instead of span
...
When we use span, bugs easily sneak in.
2018-01-04 12:49:37 +09:00
topecongiro
19d6a3c786
Put the opening brace of impl on the next line
...
We put the opening brace on the next line if the following conditions hold:
1. the result before '{' ends with comments or contains newline
2. the last line of the result before '{' is not extendable (i.e. consists of
'>' and whitespaces).
2018-01-04 12:46:55 +09:00
topecongiro
c355f3854c
Use correct budget when rewriting generics of trait
2018-01-04 12:46:05 +09:00
topecongiro
a6d609b45e
Add and update tests for #2320 and #2331
2018-01-04 12:46:05 +09:00
Nick Cameron
0f24bc0d44
Merge pull request #2330 from topecongiro/issue-2329
...
Issue 2329
2018-01-04 15:07:05 +13:00
Seiichi Uchida
d3c2523c32
Merge pull request #2335 from Hopman/rename_git-fmt
...
Rename git-fmt to git-rustfmt
2018-01-04 10:32:43 +09:00
Nick Cameron
fca007427f
Merge pull request #2313 from LukasKalbertodt/patch-1
...
Add options `blank_lines_{lower|upper}_bound` to `Configurations.md`
2018-01-04 14:09:20 +13:00
Nick Cameron
9368de276c
Merge pull request #2327 from nrc/macro-defs
...
Some macros 2.0 macro defs
2018-01-04 14:02:37 +13:00
Nick Cameron
e52b383a57
Merge pull request #2306 from dtwood/assert-eq-on-one-line
...
Add assert_eq! to special-cased macros
2018-01-04 13:42:24 +13:00
Joost Hopmans
361a30b159
Rename git-fmt to git-rustfmt
2018-01-03 14:15:45 +01:00
Nick Cameron
aa758d671f
Better handling of comments in macro defs
2018-01-03 20:36:52 +13:00
Lukas Kalbertodt
5de87bdbc0
Add options blank_lines_{lower|upper}_bound
to Configurations.md
2018-01-02 21:54:58 +01:00
topecongiro
12ddaf93e2
Remove trim_newlines()
...
We call `trim_newlines()` after the `trim()`ed buffer, which is unnecessary.
2018-01-02 13:04:39 +09:00
topecongiro
7c9686f349
Add a test for #2329
2018-01-02 13:04:26 +09:00
Nick Cameron
f86f6dcd9c
Format some macros 2.0 macro defs
...
cc #1539
2018-01-01 19:51:54 +13:00
Nick Cameron
47d9ccd6a1
Tests for formatting macro 2.0 defs
2018-01-01 19:51:54 +13:00
Nick Cameron
9a7242c7d4
Merge pull request #2326 from davidalber/indent-bullet-text
...
Aligning text with its bullet
2018-01-01 19:38:11 +13:00
David Alber
bdda477956
Aligning text with its bullet
2017-12-31 18:41:46 -08:00
Seiichi Uchida
b6271539d2
Merge pull request #2318 from davidalber/config-option-subdirectories
...
Moving config option tests to a dedicated subdirectory
2017-12-31 22:22:34 +09:00
David Alber
8b4e9df915
Updating error message
2017-12-28 10:29:48 -08:00
David Alber
aa70bbe377
Moving test files to satisfy verify_config_test_names
test
2017-12-28 10:29:48 -08:00
David Alber
72dc52ec2c
Testing that config option tests use the expected config option
2017-12-28 10:29:48 -08:00
David Alber
6939e21f43
Moving config option tests to subdirectory
...
This was done by running the following.
```sh
for f in `find . -name "configs-*.rs"`; do
topdir=`echo $f | cut -d/ -f2`;
configname=`echo $f | cut -d/ -f3 | cut -d- -f2`;
testname=`echo $f | cut -d/ -f3 | cut -d- -f3`;
mkdir -p $topdir/configs/$configname;
git mv $f $topdir/configs/$configname/$testname;
done
```
2017-12-28 10:29:48 -08:00
David Alber
8fb3342ca2
Renaming tests to match existing convention
2017-12-28 10:29:48 -08:00
David Alber
6a583399ff
Renaming test to match existing convention
2017-12-28 10:29:48 -08:00
Seiichi Uchida
e0d30682a1
Merge pull request #2317 from vishalsodani/master
...
Fix sentence structure
2017-12-29 01:08:21 +09:00
Vishal Sodani
cf6c4e87ec
Fix sentence structure
2017-12-28 20:13:33 +05:30
David Wood
39e2f43f91
Split assert_eq! if any arguments are not simple
2017-12-27 21:19:42 +00:00
Nick Cameron
6e30df0524
Merge pull request #2314 from hcpl/fix-readme-ci-instructions
...
Fix version replacement notes for CI in README.md
2017-12-28 10:14:22 +13:00
Nick Cameron
e95541c7d2
Make the import of Config pub
2017-12-28 10:08:27 +13:00
hcpl
202f23ce02
Fix version replacement notes for CI in README.md
2017-12-27 19:41:42 +02:00
Seiichi Uchida
5160b49e67
Merge pull request #2308 from davidalber/recursive-test-files
...
Adding ability to recursively find test files
2017-12-27 19:16:01 +09:00
Marcus Klaas
656edbf0f0
Use std time
2017-12-27 16:34:09 +13:00
Marcus Klaas
dc356ffef7
Add rudimentary timing of parsing and formatting phases
2017-12-27 16:33:21 +13:00
Nick Cameron
9feb4988f2
Merge pull request #2310 from topecongiro/issue-2309
...
Do not give up rewriting struct field when attribute is long
2017-12-27 14:12:45 +13:00
Nick Cameron
a6244c2f58
Merge pull request #2311 from topecongiro/format-code-block
...
Format code block in comment
2017-12-27 13:32:14 +13:00
David Alber
65a48da02d
Updating error message
2017-12-24 13:31:46 -08:00
Seiichi Uchida
4604fea0a0
Refactoring
...
1. Cargo clippy
2. Run 'cargo fmt' with import reordering options set to `true`.
3. Factor out `rewrite_lifetime_param()`.
2017-12-25 00:13:59 +09:00
Seiichi Uchida
27167cbbaa
Format code block in comment
...
Closes #554 .
Closes #1695 .
2017-12-24 23:56:51 +09:00
David Wood
212a8a3c29
Slightly simplify write_list
for DefinitiveListTactic::SpecialMacro
2017-12-24 12:29:54 +00:00
David Wood
0291331203
Add documentation to expr::SPECIAL_MACRO_WHITELIST
2017-12-24 12:27:07 +00:00
David Wood
3320b400ae
Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt
2017-12-24 12:01:59 +00:00
Seiichi Uchida
f523ec58ab
Do not give up rewriting struct field when attribute is long
2017-12-24 13:57:29 +09:00
David Alber
9405e05d83
Adding ability to recursively find test files
...
Part of #1492 .
2017-12-23 11:40:37 -08:00
Seiichi Uchida
939a6c5820
Get rid of GenericsArg wrapper type
...
`GenericsArg` is basically identical to `ast::GenericParam`.
Just use the latter.
2017-12-24 00:29:59 +09:00
Seiichi Uchida
1ef6bccea3
Cargo fmt
...
Run 'cargo fmt' with the following setting:
```
reorder_imports = true
reorder_imports_in_group = true
```
2017-12-24 00:28:58 +09:00
Seiichi Uchida
6714a447d0
0.3.4
2017-12-23 12:25:42 +09:00
Seiichi Uchida
0ef2b99b74
Remove workspace membership check
2017-12-23 12:24:58 +09:00
Seiichi Uchida
02bb1c8c97
Rustup to rustc 1.24.0-nightly ( 5165ee9e2
2017-12-22)
2017-12-23 11:58:19 +09:00