Nick Cameron
be0000380b
Merge pull request #2350 from topecongiro/issue-2324
...
Issue 2324
2018-01-12 17:27:45 +13:00
Seiichi Uchida
41b14b640a
Merge pull request #2353 from davidalber/merge-print-diff
...
Consolidating the logic for printing output
2018-01-12 08:26:42 +09:00
Seiichi Uchida
1abbd74a7f
Merge pull request #2358 from PSeitz/master
...
case insensitive FIXME and TODO
2018-01-12 08:26:14 +09:00
David Alber
9f5f9d2250
Consolidating the logic for printing output
2018-01-11 08:02:57 -08:00
Pascal Seitz
2e82ad8c36
case insensitive FIXME and TODO
2018-01-11 11:04:28 +01:00
Nick Cameron
3e29fe3330
Use published versions of libsyntax and librustc_errors
...
Rather than the versions shipping with the compiler. These are still unstable,
so nightly is still required, but we can control when we update so breakage should
happen less often.
2018-01-11 18:21:35 +13:00
Nick Cameron
1ced6d1037
Minor refactoring in macros.rs
2018-01-11 17:40:05 +13:00
Seiichi Uchida
727f7b08f2
Fix error message printing wrong file names
...
The error messsages from `self_test` does not display correct file names
(it just prints `src/lib.rs` for every file). This commit fixes it.
2018-01-10 17:17:18 +09:00
Seiichi Uchida
cb0b366b38
Cargo fmt
2018-01-10 17:17:06 +09:00
Seiichi Uchida
590857db37
Reformat a nested function call with a single newline using larger budget
2018-01-10 17:15:02 +09:00
Seiichi Uchida
60256b7f3d
Add a test for #2324
2018-01-10 17:14:50 +09:00
Seiichi Uchida
631bf68037
Merge pull request #2349 from davidalber/configurations-failure-message
...
Modifying failure messages to be consistent with mismatch message
2018-01-10 16:08:44 +09:00
Seiichi Uchida
2744190512
Merge pull request #2348 from davidalber/remove-unused
...
Removing unused name
2018-01-10 16:08:16 +09:00
David Alber
d981fb89c0
Removing unused name
2018-01-09 19:56:46 -08:00
David Alber
873abf01b5
Modifying failure messages to be consistent with mismatch message
2018-01-09 08:36:24 -08:00
Nick Cameron
d60a6958f8
Merge pull request #2292 from davidalber/configurations-checking
...
Configurations checking
2018-01-09 18:39:15 +13:00
David Alber
85ccb98469
Adding test to verify code block idempotency in Configurations.md
2018-01-04 00:01:18 -08:00
Nick Cameron
91a332483b
Merge pull request #2316 from topecongiro/issue-2315
...
Remove trailing comma from extern items snippet before comparing
2018-01-04 17:49:47 +13:00
Nick Cameron
fad9076ec7
Merge pull request #2336 from vishalsodani/master
...
Fix #2300
2018-01-04 17:31:02 +13:00
Vishal Sodani
3345b00952
Fix #2300
2018-01-04 09:50:45 +05:30
Nick Cameron
e343aa24b3
Merge pull request #2332 from topecongiro/impl-and-trait
...
Fix up formatting bugs in impl and trait
2018-01-04 16:51:56 +13:00
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