]>
git.lizzy.rs Git - rust.git/log
Nick Cameron [Sun, 20 May 2018 21:04:23 +0000 (09:04 +1200)]
Merge pull request #2715 from nrc/integr
Fix and tweak integration tests
Nick Cameron [Sat, 19 May 2018 04:44:48 +0000 (16:44 +1200)]
Rationalise result and error types
Nick Cameron [Sat, 19 May 2018 04:11:30 +0000 (16:11 +1200)]
Rationalise error types
cc #2639
Nick Cameron [Sat, 19 May 2018 03:43:29 +0000 (15:43 +1200)]
Make `format_snippet` and `format_code_block` private
cc #2639
Nick Cameron [Fri, 18 May 2018 05:38:30 +0000 (17:38 +1200)]
Fix and tweak integration tests
Nick Cameron [Sun, 20 May 2018 20:04:10 +0000 (08:04 +1200)]
Merge pull request #2725 from davidalber/nightly-travis-snippet
Use nightly Rust in Travis CI config snippet
David Alber [Sat, 19 May 2018 04:18:49 +0000 (21:18 -0700)]
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.
Nick Cameron [Fri, 18 May 2018 05:38:30 +0000 (17:38 +1200)]
Fix and tweak integration tests
Nick Cameron [Fri, 18 May 2018 23:47:36 +0000 (11:47 +1200)]
Merge pull request #2723 from topecongiro/rustc-ap-syntax
Update rustc-ap-syntax
topecongiro [Fri, 18 May 2018 23:38:50 +0000 (08:38 +0900)]
Fix breaking changes from rustc-ap-syntax
cc https://github.com/rust-lang/rust/pull/50045.
topecongiro [Sun, 13 May 2018 08:34:52 +0000 (17:34 +0900)]
Cargo update
Nick Cameron [Fri, 18 May 2018 23:31:59 +0000 (11:31 +1200)]
Merge pull request #2720 from tlively/pub-auto-trait
Fix position of auto in auto trait declaration
Nick Cameron [Fri, 18 May 2018 23:29:25 +0000 (11:29 +1200)]
Merge pull request #2718 from pbougue/doc_remove_write-mode
Remove "write-mode" from doc
Thomas Lively [Fri, 18 May 2018 21:25:33 +0000 (17:25 -0400)]
Fix position of auto in auto trait declaration
Pierre-Etienne Bougue [Fri, 18 May 2018 14:40:58 +0000 (16:40 +0200)]
Remove "write-mode" from doc
"write-mode" param is now deleted
and mentioning it in doc was misleading
Nick Cameron [Fri, 18 May 2018 09:13:17 +0000 (21:13 +1200)]
Merge pull request #2717 from gnzlbg/more_io
try harder to print output
gnzlbg [Fri, 18 May 2018 08:46:14 +0000 (10:46 +0200)]
try harder to print output
Nick Cameron [Fri, 18 May 2018 05:11:02 +0000 (17:11 +1200)]
Fixup integration tests
Nick Cameron [Fri, 18 May 2018 04:56:55 +0000 (16:56 +1200)]
Remove `remove_blank_lines_at_start_or_end_of_block`
cc #1974
Nick Cameron [Fri, 18 May 2018 04:53:08 +0000 (16:53 +1200)]
Unstabilise `unstable_features`
cc #1974
Nick Cameron [Fri, 18 May 2018 04:41:21 +0000 (16:41 +1200)]
stabilise `remove_nested_parens` and set default to true
Nick Cameron [Fri, 18 May 2018 04:37:55 +0000 (16:37 +1200)]
stabilise shorthand options
cc #1974
Nick Cameron [Fri, 18 May 2018 04:35:09 +0000 (16:35 +1200)]
Remove spaces_within_parens_and_brackets
cc #1974
Nick Cameron [Fri, 18 May 2018 04:04:09 +0000 (16:04 +1200)]
Stabilise reorder_imports and reorder_modules
Nick Cameron [Fri, 18 May 2018 04:02:05 +0000 (16:02 +1200)]
Unstabilise comments options
cc #1974
Nick Cameron [Fri, 18 May 2018 03:43:20 +0000 (15:43 +1200)]
Fix example travis config
Closes #2688
Nick Cameron [Fri, 18 May 2018 03:30:32 +0000 (15:30 +1200)]
Exit with 1 for license check in `--check` mode
Closes #2707
Nick Cameron [Thu, 17 May 2018 08:41:13 +0000 (20:41 +1200)]
Merge pull request #2712 from phansch/shallow_clone_in_integration_tests
Shallow clone in integration tests
Philipp Hansch [Wed, 16 May 2018 17:15:51 +0000 (19:15 +0200)]
Shallow clone in integration tests
This should make cloning a bit faster for all the integration tests.
Nick Cameron [Tue, 15 May 2018 21:02:41 +0000 (09:02 +1200)]
Merge pull request #2708 from sinkuu/saturating_sub
Use `saturating_sub` instead of `checked_sub.unwrap_or`
Nick Cameron [Tue, 15 May 2018 21:00:10 +0000 (09:00 +1200)]
Merge pull request #2709 from gnzlbg/cio
output the result of rustfmt on ci
gnzlbg [Tue, 15 May 2018 17:55:56 +0000 (19:55 +0200)]
output the result of rustfmt on ci
Shotaro Yamada [Mon, 14 May 2018 12:58:57 +0000 (21:58 +0900)]
Use saturating_sub
Nick Cameron [Tue, 15 May 2018 09:42:43 +0000 (21:42 +1200)]
Merge pull request #2703 from nrc/attrs
Use scoped attributes for skip attribute
Nick Cameron [Tue, 15 May 2018 08:38:04 +0000 (20:38 +1200)]
Fixup failing integration tests
Nick Cameron [Mon, 14 May 2018 06:01:53 +0000 (18:01 +1200)]
Give a deprecation warning on `rustfmt_skip` and an error on `rustfmt::` other than `skip`
Nick Cameron [Mon, 14 May 2018 04:25:10 +0000 (16:25 +1200)]
Update uses of `rustfmt_skip` to `rustfmt::skip`
Nick Cameron [Mon, 14 May 2018 04:11:55 +0000 (16:11 +1200)]
Skip on `rustfmt::skip` as well as `rustfmt_skip`
Nick Cameron [Mon, 14 May 2018 04:04:15 +0000 (16:04 +1200)]
Format attributes with paths
Nick Cameron [Sun, 13 May 2018 23:09:40 +0000 (11:09 +1200)]
0.7.0
Nick Cameron [Sun, 13 May 2018 23:07:54 +0000 (11:07 +1200)]
Reorder the --help message
Nick Cameron [Sun, 13 May 2018 22:41:15 +0000 (10:41 +1200)]
Make some write modes unstable
Nick Cameron [Sun, 13 May 2018 22:20:51 +0000 (10:20 +1200)]
Support unstable options
cc #1976
Nick Cameron [Sun, 13 May 2018 02:13:24 +0000 (14:13 +1200)]
Replace `--write-mode` with `--emit`
cc #1976
Nick Cameron [Sun, 13 May 2018 01:18:08 +0000 (13:18 +1200)]
Add `--backup` flag
Nick Cameron [Sat, 12 May 2018 22:04:38 +0000 (10:04 +1200)]
Merge pull request #2700 from Pazzaz/master
Remove unnecessary use of Box in `format_function_type`
Nick Cameron [Sat, 12 May 2018 22:03:19 +0000 (10:03 +1200)]
Merge pull request #2702 from andjo403/bump
Update regex, assert_cli, env_logger, rustc-ap-{rustc_target, syntax}
Andreas Jonson [Sat, 12 May 2018 16:58:27 +0000 (18:58 +0200)]
Update regex, assert_cli, env_logger, rustc-ap-{rustc_target, syntax}
this update removes 15 dependencies
Pazzaz [Sat, 12 May 2018 08:53:06 +0000 (10:53 +0200)]
Remove unnecessary use of Box in `format_function_type`
Seiichi Uchida [Sat, 12 May 2018 01:36:34 +0000 (10:36 +0900)]
Fix build failure (#2699)
Seiichi Uchida [Fri, 11 May 2018 13:12:37 +0000 (22:12 +0900)]
Merge pull request #2693 from gnzlbg/integration
Add integration tests against crates in the rust-lang-nursery
Nick Cameron [Fri, 11 May 2018 08:43:08 +0000 (20:43 +1200)]
Replace `--dump-minimal-config` and `--dump-default-config` with `--print-config`
cc #1976
Nick Cameron [Fri, 11 May 2018 08:26:00 +0000 (20:26 +1200)]
Add `--check` flag.
cc #1976
Nick Cameron [Fri, 11 May 2018 08:12:16 +0000 (20:12 +1200)]
`--help` options
cc #1976
Nick Cameron [Fri, 11 May 2018 01:58:34 +0000 (13:58 +1200)]
Remove `--verbose-diff`
Use `--verbose` instead
cc #1976
Nick Cameron [Fri, 11 May 2018 01:50:30 +0000 (13:50 +1200)]
Add `--quiet` flag, remove `Plain` write mode
cc #1976
gnzlbg [Wed, 9 May 2018 09:57:58 +0000 (11:57 +0200)]
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.
Nick Cameron [Wed, 9 May 2018 01:18:27 +0000 (13:18 +1200)]
Merge pull request #2687 from Marwes/issue_2641
fix: Don't insert an extra brace in macros with native newlines
Nick Cameron [Wed, 9 May 2018 01:16:26 +0000 (13:16 +1200)]
Merge pull request #2684 from topecongiro/issue-2175
Apply small parent heuristic only when the chain is at the beginning of the line
Nick Cameron [Wed, 9 May 2018 01:14:59 +0000 (13:14 +1200)]
Merge pull request #2689 from alexcrichton/fix-beta
Ensure tests pass on the beta compiler
Alex Crichton [Wed, 9 May 2018 01:04:43 +0000 (18:04 -0700)]
Ensure tests pass on the beta compiler
Also add a travis matrix entry for emulating the beta tests
Nick Cameron [Tue, 8 May 2018 20:54:11 +0000 (08:54 +1200)]
Merge pull request #2685 from alexcrichton/fix-tests
Fix rustfmt tests in the Rust repo
Markus Westerlind [Tue, 8 May 2018 18:31:33 +0000 (20:31 +0200)]
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
Alex Crichton [Tue, 8 May 2018 14:32:00 +0000 (07:32 -0700)]
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`.
topecongiro [Mon, 7 May 2018 21:25:48 +0000 (06:25 +0900)]
Cargo fmt
topecongiro [Mon, 7 May 2018 21:25:06 +0000 (06:25 +0900)]
Apply small parent rule only when there is small offset
topecongiro [Mon, 7 May 2018 21:23:14 +0000 (06:23 +0900)]
Update tests to use the absolute position for small parent heuristic
Nick Cameron [Sun, 6 May 2018 23:23:14 +0000 (11:23 +1200)]
Merge pull request #2675 from flodiebold/non-modrs-mods
Fix handling of modules in non_modrs_mods style
Nick Cameron [Sun, 6 May 2018 23:21:02 +0000 (11:21 +1200)]
Merge pull request #2682 from topecongiro/issue-2670
Do not duplicate attributes on use items
Nick Cameron [Sun, 6 May 2018 23:20:33 +0000 (11:20 +1200)]
Merge pull request #2681 from topecongiro/issue-2680
Error on self_tests when there are lines that exceed max width
Nick Cameron [Sun, 6 May 2018 22:54:49 +0000 (10:54 +1200)]
Merge pull request #2679 from topecongiro/multi-lined-binary
Put operands on its own line when each fits in a single line
Nick Cameron [Sun, 6 May 2018 22:44:00 +0000 (10:44 +1200)]
Merge pull request #2683 from dzamlo/master
Update README.md to reflect change in #2539
Loïc Damien [Sun, 6 May 2018 16:51:26 +0000 (18:51 +0200)]
Update README.md to reflect change in #2539
Florian Diebold [Sun, 6 May 2018 11:03:11 +0000 (13:03 +0200)]
Turn the nonmodrs-mods test into a standard idempotence test
We need to skip children on foo.rs, since the parser will not find bar from that
file, but with that, the test works fine.
topecongiro [Sun, 6 May 2018 08:01:14 +0000 (17:01 +0900)]
Do not duplicate attributes on use items
topecongiro [Sun, 6 May 2018 08:00:51 +0000 (17:00 +0900)]
Add a test for duplicated attributes on use items
Florian Diebold [Fri, 4 May 2018 18:12:06 +0000 (20:12 +0200)]
Add a test for non-mod.rs mods
Florian Diebold [Fri, 4 May 2018 09:51:06 +0000 (11:51 +0200)]
Fix handling of modules in non_modrs_mods style
We need to keep track of the module relative to which we're resolving paths,
instead of always passing None.
Fixes #2673.
topecongiro [Sun, 6 May 2018 07:17:09 +0000 (16:17 +0900)]
Fix up lines exceeding max width
topecongiro [Sun, 6 May 2018 07:16:58 +0000 (16:16 +0900)]
Use rustfmt.toml when running self_tests
topecongiro [Sun, 6 May 2018 07:16:16 +0000 (16:16 +0900)]
Add rustfmt.toml
topecongiro [Sun, 6 May 2018 06:22:29 +0000 (15:22 +0900)]
Cargo fmt
topecongiro [Sun, 6 May 2018 06:22:17 +0000 (15:22 +0900)]
Put operands on its own line when each fits in a single line
topecongiro [Sun, 6 May 2018 06:14:47 +0000 (15:14 +0900)]
Update tests
topecongiro [Sun, 6 May 2018 06:14:30 +0000 (15:14 +0900)]
Add tests for simple binary expressions
Nick Cameron [Sun, 6 May 2018 04:18:02 +0000 (16:18 +1200)]
Merge pull request #2678 from topecongiro/issue-2676
Do not overflow a long item
topecongiro [Sun, 6 May 2018 03:12:16 +0000 (12:12 +0900)]
Do not overflow a long item
Take the first line's width of a single item into account when
trying to overflow something.
Closes #2676.
Nick Cameron [Sun, 6 May 2018 02:01:17 +0000 (14:01 +1200)]
Merge pull request #2677 from csmoe/remove_nested_parens_opt
Add remove nested parens option
csmoe [Sun, 6 May 2018 01:23:04 +0000 (09:23 +0800)]
add config test
Nick Cameron [Sat, 5 May 2018 21:57:26 +0000 (09:57 +1200)]
Update rustc_ap_syntax
Nick Cameron [Sat, 5 May 2018 20:23:26 +0000 (08:23 +1200)]
Use a different env var for the test directory
csmoe [Sat, 5 May 2018 15:13:49 +0000 (23:13 +0800)]
remove nested parens option
Nick Cameron [Thu, 3 May 2018 23:46:28 +0000 (11:46 +1200)]
Merge pull request #2667 from tspiteri/width-heuristics
Do not scale WidthHeuristics when max_width less than 100
Nick Cameron [Thu, 3 May 2018 21:35:56 +0000 (09:35 +1200)]
Fix test bug (again)
Nick Cameron [Thu, 3 May 2018 08:08:16 +0000 (20:08 +1200)]
Merge pull request #2671 from csmoe/merge_mix
Make imports_layout = "Mixed" addressed
csmoe [Wed, 2 May 2018 14:11:50 +0000 (22:11 +0800)]
fix merge_mix
Nick Cameron [Wed, 2 May 2018 23:14:01 +0000 (11:14 +1200)]
Make test temp files in the Cargo target directory, if known
Trevor Spiteri [Wed, 2 May 2018 09:38:23 +0000 (11:38 +0200)]
Add test for width heuristics
Trevor Spiteri [Wed, 2 May 2018 08:36:12 +0000 (10:36 +0200)]
Add test for issue 2644
Trevor Spiteri [Wed, 2 May 2018 08:36:02 +0000 (10:36 +0200)]
Do not scale WidthHeuristics when max_width less than 100