Commit Graph

3490 Commits

Author SHA1 Message Date
topecongiro d0980655b3 Add tests for #2704. 2018-05-23 07:22:30 +09:00
Seiichi Uchida 1b3257df8b Merge pull request #2726 from csmoe/label_break
Format label break
2018-05-22 07:16:05 +09:00
csmoe 64768cf932 fix label prefix 2018-05-21 22:37:55 +08:00
csmoe 150765d755 format label break 2018-05-21 13:30:07 +08:00
Nick Cameron 632fab4c95 documentation 2018-05-21 15:54:56 +12:00
Nick Cameron 6541be3c6f Replace use_colored_tty with iatty crate 2018-05-21 15:32:27 +12:00
Nick Cameron 9a7fac63c8 Remove format_and_emit_report from the API
Also changes the header/footer stuff
2018-05-21 15:09:17 +12:00
Nick Cameron 95d6b64829 Replace WriteMode with EmitMode and backup bool 2018-05-21 14:14:09 +12:00
Nick Cameron 843c12601a Use our own FileName struct rather than exporting libsyntax's 2018-05-21 12:08:39 +12:00
Nick Cameron 539d4d9665 Refactor CliOptions 2018-05-21 11:27:25 +12:00
Nick Cameron 26586d9de8 Merge pull request #2715 from nrc/integr
Fix and tweak integration tests
2018-05-21 09:04:23 +12:00
Nick Cameron abb253df8b Rationalise result and error types 2018-05-21 08:58:53 +12:00
Nick Cameron 432b1cb253 Rationalise error types
cc #2639
2018-05-21 08:58:53 +12:00
Nick Cameron 760af6cfc9 Make format_snippet and format_code_block private
cc #2639
2018-05-21 08:58:53 +12:00
Nick Cameron 9226a50b14 Fix and tweak integration tests 2018-05-21 08:58:53 +12:00
Nick Cameron ab13c455a4 Merge pull request #2725 from davidalber/nightly-travis-snippet
Use nightly Rust in Travis CI config snippet
2018-05-21 08:04:10 +12:00
David Alber 390ae7940a Use nightly Rust in Travis CI config snippet
The current stable rustfmt (rustfmt 0.4.1-stable) does not contain
the `--check` flag, which is used in the Travis config snippet.
Once a new stable version is released, the snippet can be switched
back to stable Rust.
2018-05-18 21:18:49 -07:00
Nick Cameron 89f453ceba Fix and tweak integration tests 2018-05-19 12:58:22 +12:00
Nick Cameron e83c7ff005 Merge pull request #2723 from topecongiro/rustc-ap-syntax
Update rustc-ap-syntax
2018-05-19 11:47:36 +12:00
topecongiro 912e4bdc90 Fix breaking changes from rustc-ap-syntax
cc https://github.com/rust-lang/rust/pull/50045.
2018-05-19 08:43:00 +09:00
topecongiro 82e81d7ed1 Cargo update 2018-05-19 08:39:40 +09:00
Nick Cameron dab99b65f5 Merge pull request #2720 from tlively/pub-auto-trait
Fix position of auto in auto trait declaration
2018-05-19 11:31:59 +12:00
Nick Cameron 348a6e3063 Merge pull request #2718 from pbougue/doc_remove_write-mode
Remove "write-mode" from doc
2018-05-19 11:29:25 +12:00
Thomas Lively 5d56adb10c Fix position of auto in auto trait declaration 2018-05-18 17:25:33 -04:00
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