Commit Graph

3666 Commits

Author SHA1 Message Date
Pierre-Etienne Bougue
87c56544e2 Remove "write-mode" from doc
"write-mode" param is now deleted
and mentioning it in doc was misleading
2018-05-18 16:40:58 +02:00
Nick Cameron
b0eb899324
Merge pull request #2717 from gnzlbg/more_io
try harder to print output
2018-05-18 21:13:17 +12:00
gnzlbg
c6c654517b try harder to print output 2018-05-18 10:46:14 +02:00
Nick Cameron
5fb987fff8 Fixup integration tests 2018-05-18 17:13:16 +12:00
Nick Cameron
2ee8b0e4c5 Remove remove_blank_lines_at_start_or_end_of_block
cc #1974
2018-05-18 16:56:55 +12:00
Nick Cameron
dd9c15ad01 Unstabilise unstable_features
cc #1974
2018-05-18 16:53:08 +12:00
Nick Cameron
a70f71610c stabilise remove_nested_parens and set default to true 2018-05-18 16:46:22 +12:00
Nick Cameron
8afe367510 stabilise shorthand options
cc #1974
2018-05-18 16:38:09 +12:00
Nick Cameron
d726492e65 Remove spaces_within_parens_and_brackets
cc #1974
2018-05-18 16:35:09 +12:00
Nick Cameron
7b6d2b4699 Stabilise reorder_imports and reorder_modules 2018-05-18 16:04:09 +12:00
Nick Cameron
416bc4c353 Unstabilise comments options
cc #1974
2018-05-18 16:02:05 +12:00
Nick Cameron
223fdfa086 Fix example travis config
Closes #2688
2018-05-18 15:43:20 +12:00
Nick Cameron
1452349966 Exit with 1 for license check in --check mode
Closes #2707
2018-05-18 15:30:32 +12:00
Nick Cameron
bf2581bf77
Merge pull request #2712 from phansch/shallow_clone_in_integration_tests
Shallow clone in integration tests
2018-05-17 20:41:13 +12:00
Philipp Hansch
3ecac79c09
Shallow clone in integration tests
This should make cloning a bit faster for all the integration tests.
2018-05-16 19:15:51 +02:00
Nick Cameron
db8cb0b8d6
Merge pull request #2708 from sinkuu/saturating_sub
Use `saturating_sub` instead of `checked_sub.unwrap_or`
2018-05-16 09:02:41 +12:00
Nick Cameron
cb6cf05446
Merge pull request #2709 from gnzlbg/cio
output the result of rustfmt on ci
2018-05-16 09:00:10 +12:00
gnzlbg
4e8b5a7e6a output the result of rustfmt on ci 2018-05-15 19:55:56 +02:00
Shotaro Yamada
d1e2b80fb9 Use saturating_sub 2018-05-15 20:41:43 +09:00
Nick Cameron
45c0b47e6d
Merge pull request #2703 from nrc/attrs
Use scoped attributes for skip attribute
2018-05-15 21:42:43 +12:00
Nick Cameron
c977c2ce00 Fixup failing integration tests 2018-05-15 20:38:04 +12:00
Nick Cameron
390a284851 Give a deprecation warning on rustfmt_skip and an error on rustfmt:: other than skip 2018-05-14 18:10:46 +12:00
Nick Cameron
51f566062f Update uses of rustfmt_skip to rustfmt::skip 2018-05-14 16:25:10 +12:00
Nick Cameron
de950c2973 Skip on rustfmt::skip as well as rustfmt_skip 2018-05-14 16:13:21 +12:00
Nick Cameron
7eb8bdbbd2 Format attributes with paths 2018-05-14 16:04:15 +12:00
Nick Cameron
634ca02fd8 0.7.0 2018-05-14 11:09:40 +12:00
Nick Cameron
a3c85cdc41 Reorder the --help message 2018-05-14 11:07:54 +12:00
Nick Cameron
6d0695303a Make some write modes unstable 2018-05-14 10:55:16 +12:00
Nick Cameron
3b23a98d00 Support unstable options
cc #1976
2018-05-14 10:20:51 +12:00
Nick Cameron
5d9f5aa05a Replace --write-mode with --emit
cc #1976
2018-05-13 14:13:24 +12:00
Nick Cameron
8396da1882 Add --backup flag 2018-05-13 13:18:08 +12:00
Nick Cameron
a8e7a7c8b8
Merge pull request #2700 from Pazzaz/master
Remove unnecessary use of Box in `format_function_type`
2018-05-13 10:04:38 +12:00
Nick Cameron
c34a387eb7
Merge pull request #2702 from andjo403/bump
Update regex, assert_cli, env_logger, rustc-ap-{rustc_target, syntax}
2018-05-13 10:03:19 +12:00
Andreas Jonson
195395f166 Update regex, assert_cli, env_logger, rustc-ap-{rustc_target, syntax}
this update removes 15 dependencies
2018-05-12 18:58:27 +02:00
Pazzaz
1c1763c7ae Remove unnecessary use of Box in format_function_type 2018-05-12 10:53:06 +02:00
Seiichi Uchida
1b1eccc553
Fix build failure (#2699) 2018-05-12 10:36:34 +09:00
Seiichi Uchida
788c52ae74
Merge pull request #2693 from gnzlbg/integration
Add integration tests against crates in the rust-lang-nursery
2018-05-11 22:12:37 +09:00
Nick Cameron
eca7796fb1 Replace --dump-minimal-config and --dump-default-config with --print-config
cc #1976
2018-05-11 20:43:08 +12:00
Nick Cameron
4d9de48e06 Add --check flag.
cc #1976
2018-05-11 20:26:00 +12:00
Nick Cameron
798bffb8b1 --help options
cc #1976
2018-05-11 20:12:16 +12:00
Nick Cameron
1869888b1a Remove --verbose-diff
Use `--verbose` instead

cc #1976
2018-05-11 13:58:34 +12:00
Nick Cameron
55ac062da0 Add --quiet flag, remove Plain write mode
cc #1976
2018-05-11 13:50:30 +12:00
gnzlbg
c79f39af16 Add integration tests against crates in the rust-lang-nursery
This commit adds integration tests against some crates in the
nursery.

Each integration test is added as a separate build-bot, where
the rust-lang-nursery/${CRATE} is first downloaded and its tests run.
Afterwards, `cargo fmt --all` is applied to the crate, and the tests
are re-run. If the tests fail after formatting, the integration test
fails.

The crates that currently fail are added as allowed-to-fail, but the
intent is that either these crates or rustfmt should be fixed such
that the tests pass.
2018-05-10 00:31:55 +02:00
Nick Cameron
5dba81bbbf
Merge pull request #2687 from Marwes/issue_2641
fix: Don't insert an extra brace in macros with native newlines
2018-05-09 13:18:27 +12:00
Nick Cameron
659d0c9741
Merge pull request #2684 from topecongiro/issue-2175
Apply small parent heuristic only when the chain is at the beginning of the line
2018-05-09 13:16:26 +12:00
Nick Cameron
d98a1ca9f5
Merge pull request #2689 from alexcrichton/fix-beta
Ensure tests pass on the beta compiler
2018-05-09 13:14:59 +12:00
Alex Crichton
47742807f7 Ensure tests pass on the beta compiler
Also add a travis matrix entry for emulating the beta tests
2018-05-08 18:05:08 -07:00
Nick Cameron
f8aed3d71a
Merge pull request #2685 from alexcrichton/fix-tests
Fix rustfmt tests in the Rust repo
2018-05-09 08:54:11 +12:00
Markus Westerlind
4c9ef93df7 fix: Don't insert an extra brace in macros with native newlines
Due to `format_snippet` formatting the input with \r\n the subtraction
would wouldn't give a length that removed the }

Fixes #2641
2018-05-08 20:34:44 +02:00
Alex Crichton
a72be170d7 Fix rustfmt tests in the Rust repo
Two tests were executing `cargo run` but `cargo` is not ambiently available to
execute. Instead it's best to execute the rustfmt binary directly, which is
always assembled as part of `cargo test`.
2018-05-08 07:32:00 -07:00