]>
git.lizzy.rs Git - rust.git/log
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
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`.
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
Nick Cameron [Tue, 1 May 2018 22:28:46 +0000 (10:28 +1200)]
Merge pull request #2666 from topecongiro/issue-2634
Avoid flip-flopping impl items when reordering them
Nick Cameron [Tue, 1 May 2018 22:26:49 +0000 (10:26 +1200)]
Merge pull request #2665 from topecongiro/issue-2647
Use correct one line width for list attribute
Nick Cameron [Tue, 1 May 2018 22:18:14 +0000 (10:18 +1200)]
Suppress warning about unused attribute
Nick Cameron [Tue, 1 May 2018 21:49:47 +0000 (09:49 +1200)]
0.6.1
topecongiro [Mon, 30 Apr 2018 07:24:01 +0000 (16:24 +0900)]
Run cargo fmt with reorder_impl_items set to true
topecongiro [Mon, 30 Apr 2018 07:22:28 +0000 (16:22 +0900)]
Add a test for #2634
topecongiro [Mon, 30 Apr 2018 07:19:52 +0000 (16:19 +0900)]
Use bytepos to compare impl items
topecongiro [Mon, 30 Apr 2018 07:13:51 +0000 (16:13 +0900)]
Factor out visit_impl_items
topecongiro [Mon, 30 Apr 2018 06:49:32 +0000 (15:49 +0900)]
Use correct one line width for list attribute
Closes #2647.
Nick Cameron [Mon, 30 Apr 2018 01:21:17 +0000 (13:21 +1200)]
Fix broken test
Nick Cameron [Sun, 29 Apr 2018 23:51:03 +0000 (11:51 +1200)]
Merge pull request #2662 from csmoe/imports_indent
Change the default value of imports_indent to IndentStyle::Block
Nick Cameron [Sun, 29 Apr 2018 23:50:53 +0000 (11:50 +1200)]
Merge branch 'master' into imports_indent
Nick Cameron [Sun, 29 Apr 2018 23:20:04 +0000 (11:20 +1200)]
Merge pull request #2663 from csmoe/config_curr
set stdin default config path to current dir
Nick Cameron [Sun, 29 Apr 2018 23:10:48 +0000 (11:10 +1200)]
Merge pull request #2661 from topecongiro/issue-2645
Preserve comments between attribute and use item
Nick Cameron [Sun, 29 Apr 2018 23:07:33 +0000 (11:07 +1200)]
Merge pull request #2659 from topecongiro/issue-2652
Do not add a trailing comma on array inside macro
Nick Cameron [Sun, 29 Apr 2018 23:06:33 +0000 (11:06 +1200)]
Merge pull request #2656 from topecongiro/issue-2594
Use consistent formatting for empty enum and struct
csmoe [Sun, 29 Apr 2018 13:40:37 +0000 (21:40 +0800)]
set stdin default config path to curr
csmoe [Sun, 29 Apr 2018 13:03:49 +0000 (21:03 +0800)]
update tests
csmoe [Sun, 29 Apr 2018 12:22:48 +0000 (20:22 +0800)]
update self format
csmoe [Sun, 29 Apr 2018 11:57:49 +0000 (19:57 +0800)]
import_indent to Block
Ryan Leung [Sat, 28 Apr 2018 07:08:58 +0000 (15:08 +0800)]
add rustc_target to dependencies (#2660)
topecongiro [Sat, 28 Apr 2018 07:05:02 +0000 (16:05 +0900)]
Use correct span for UseTree
topecongiro [Sat, 28 Apr 2018 07:04:09 +0000 (16:04 +0900)]
Preserve comments between attribute and use item
topecongiro [Sat, 28 Apr 2018 07:03:26 +0000 (16:03 +0900)]
Add tests for #2645
topecongiro [Sat, 28 Apr 2018 06:09:54 +0000 (15:09 +0900)]
Preserve trailing comma inside array
Closes #2652.
topecongiro [Sat, 28 Apr 2018 06:09:36 +0000 (15:09 +0900)]
Add an test for #2652
topecongiro [Sat, 28 Apr 2018 05:07:10 +0000 (14:07 +0900)]
Temporarily fix tests
cc #2655.
topecongiro [Sat, 28 Apr 2018 05:03:14 +0000 (14:03 +0900)]
Use format_empty_struct_or_tuple over format_missing_no_indent
Closes #2594.
topecongiro [Sat, 28 Apr 2018 04:59:54 +0000 (13:59 +0900)]
Use format_empty_struct_or_tuple
topecongiro [Sat, 28 Apr 2018 04:59:03 +0000 (13:59 +0900)]
Factor out a formatting routine for empty struct and tuple
topecongiro [Sat, 28 Apr 2018 04:24:05 +0000 (13:24 +0900)]
Use a glob import for import utils
topecongiro [Sat, 28 Apr 2018 04:23:50 +0000 (13:23 +0900)]
Add tests for #2594
Nick Cameron [Fri, 27 Apr 2018 03:14:47 +0000 (15:14 +1200)]
Merge pull request #2650 from thibaultdelor/useFailureCrate
Use failure crate
Nick Cameron [Thu, 26 Apr 2018 23:12:25 +0000 (11:12 +1200)]
Harden tests to not rely on CWD
Nick Cameron [Thu, 26 Apr 2018 22:41:29 +0000 (10:41 +1200)]
Merge pull request #2653 from Xanewok/dont-rerun-on-git
Ignore checking inexistent .git/HEAD in build.rs
Igor Matuszewski [Thu, 26 Apr 2018 22:09:01 +0000 (00:09 +0200)]
Ignore checking inexistent .git/HEAD in build.rs
Tibo [Thu, 26 Apr 2018 04:20:06 +0000 (14:20 +1000)]
Allow `io::Error` to live longer before being wrapped in a `failure::Error`
Tibo [Thu, 26 Apr 2018 03:48:48 +0000 (13:48 +1000)]
Replace completely std::error with failure crate
Tibo [Tue, 24 Apr 2018 08:10:09 +0000 (18:10 +1000)]
Use failure for FormattingError
Tibo [Tue, 24 Apr 2018 05:45:28 +0000 (15:45 +1000)]
Replace std::Error with failure for FormatDiff
Seiichi Uchida [Tue, 24 Apr 2018 22:21:23 +0000 (07:21 +0900)]
Cargo update and clippy (#2643)
Nick Cameron [Mon, 23 Apr 2018 04:32:36 +0000 (16:32 +1200)]
Merge pull request #2640 from rizakrko/master
keep auto trait
Roman Stoliar [Sun, 22 Apr 2018 22:31:21 +0000 (01:31 +0300)]
added test for #2637
Roman Stoliar [Fri, 20 Apr 2018 14:31:31 +0000 (17:31 +0300)]
keep auto trait
Nick Cameron [Fri, 20 Apr 2018 10:10:48 +0000 (22:10 +1200)]
Make some more stuff private
0.6
Nick Cameron [Fri, 20 Apr 2018 09:08:20 +0000 (21:08 +1200)]
Refactor to make a sensible public API
0.5 - lots of breaking changes
cc #2639
Nick Cameron [Fri, 20 Apr 2018 02:17:56 +0000 (14:17 +1200)]
Get exit codes right
Nick Cameron [Fri, 20 Apr 2018 02:02:44 +0000 (14:02 +1200)]
Add a verbose-diff option
And don't print end of line characters by default in diffs
cc #2536
Nick Cameron [Fri, 20 Apr 2018 01:42:27 +0000 (13:42 +1200)]
Refactoring around write mode in main
Nick Cameron [Fri, 20 Apr 2018 01:24:45 +0000 (13:24 +1200)]
Trivial refactoring in bin
David Barsky [Thu, 19 Apr 2018 23:14:11 +0000 (19:14 -0400)]
Implemented rough draft of `check` write mode. (#2539)
* Add rough draft of `check` mode. Not unit tested.
* Added assert-cli; simple test case for `--write-mode=check`
* Lightly documented `check` WriteMode
* wrote clearer phrasing for config::options::WriteMode::Check
* Implemented default for WriteMode where default is Overwrite
* Simplified exit code handling
* updated README.md as per @nrc' comment
* collapsed exit-code handling
* Removed write_mode from Summary, introduced partial option parsing earlier
* Handle write-mode parsing in a slightly better way.
Nick Cameron [Thu, 19 Apr 2018 18:56:03 +0000 (06:56 +1200)]
Merge pull request #2632 from phansch/master
Link to official nightly documentation
Philipp Hansch [Thu, 19 Apr 2018 06:22:13 +0000 (08:22 +0200)]
Link to official nightly documentation
Since https://github.com/rust-lang/rust-central-station/pull/40 has been
merged, we have a stable location for the nightly docs.
Nick Cameron [Tue, 17 Apr 2018 20:19:57 +0000 (08:19 +1200)]
Update rustc_ap_syntax
Mateusz Mikuła [Tue, 17 Apr 2018 14:04:15 +0000 (16:04 +0200)]
Fix example for reorder_imports (#2628)
Default value changed in #2605
Nick Cameron [Tue, 17 Apr 2018 08:16:48 +0000 (20:16 +1200)]
Merge pull request #2624 from sinkuu/dots
Add spaces between consecutive `..` `..=`
Shotaro Yamada [Mon, 16 Apr 2018 08:11:50 +0000 (17:11 +0900)]
Add spaces between consecutive `..` `..=`
csmoe [Sun, 15 Apr 2018 09:49:47 +0000 (17:49 +0800)]
update rustc-ap-syntax (#2622)
* update rustc-ap-syntax-100.0.0
Nick Cameron [Fri, 13 Apr 2018 22:20:08 +0000 (10:20 +1200)]
Fix tests
Nick Cameron [Fri, 13 Apr 2018 22:15:39 +0000 (10:15 +1200)]
Fallout from removing TupField
Nick Cameron [Fri, 13 Apr 2018 21:47:13 +0000 (09:47 +1200)]
Update rustc-ap-syntax
Nick Cameron [Thu, 12 Apr 2018 22:34:23 +0000 (10:34 +1200)]
Update rustc_ap_syntax
Nick Cameron [Thu, 12 Apr 2018 05:06:30 +0000 (17:06 +1200)]
nightly-0.4.2