Skip to content

Commit c3af004

Browse files
committed
Merge remote-tracking branch 'origin/master' into HEAD
2 parents 0386858 + e0e3e22 commit c3af004

File tree

410 files changed

+6058
-4775
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

410 files changed

+6058
-4775
lines changed

.travis.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ addons:
2020

2121
before_script:
2222
- |
23-
pip install 'travis-cargo<0.2' --user &&
24-
export PATH=$HOME/.local/bin:/usr/local/bin:$PATH
23+
if [ $TRAVIS_OS_NAME = 'osx' ]; then
24+
brew install python3 &&
25+
virtualenv env -p python3 &&
26+
source env/bin/activate &&
27+
pip install 'travis-cargo<0.2'
28+
else
29+
pip install 'travis-cargo<0.2' --user &&
30+
export PATH="$(python -m site --user-base)/bin:$PATH"
31+
fi
2532
2633
script:
2734
- |

CHANGELOG.md

+131
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,136 @@
11
# Changelog
22

3+
## [Unreleased]
4+
5+
## [0.3.6] 2018-01-18
6+
7+
### Fixed
8+
9+
- Fix panicking on formatting certain macros (#2371).
10+
11+
## [0.3.5] 2018-01-15
12+
13+
### Changed
14+
15+
- Format code block in comments when `wrap_comments` is set to `true`.
16+
- Remove `same_line_attributes` configuration option.
17+
- Rename `git-fmt` to `git-rustfmt`.
18+
19+
### Fixed
20+
21+
- Rustup to `rustc 1.25.0-nightly (e6072a7b3 2018-01-13)`.
22+
- Fix formatting bugs.
23+
24+
## [0.3.4] 2017-12-23
25+
26+
### Added
27+
28+
- Add `--version` flag to `cargo-fmt`, allow `carfo fmt --version`.
29+
30+
### Fixed
31+
32+
- Rustup to `rustc 1.24.0-nightly (5165ee9e2 2017-12-22)`.
33+
34+
## [0.3.3] 2017-12-22
35+
36+
### Added
37+
38+
- Format trait aliases.
39+
40+
### Changed
41+
42+
- `cargo fmt` will format every workspace member.
43+
44+
### Fixed
45+
46+
- Rustup to `rustc 1.24.0-nightly (250b49205 2017-12-21)`
47+
- Fix formatting bugs.
48+
49+
## [0.3.2] 2017-12-15
50+
51+
### Changed
52+
53+
- Warn when unkown configuration option is used.
54+
55+
### Fixed
56+
57+
- Rustup to `rustc 1.24.0-nightly (0077d128d 2017-12-14)`.
58+
59+
## [0.3.1] 2017-12-11
60+
61+
### Added
62+
63+
- Add `error_on_unformatted` configuration option.
64+
- Add `--error-on-unformatted` command line option.
65+
66+
### Changed
67+
68+
- Do not report formatting errors on comments or strings by default.
69+
- Rename `error_on_line_overflow_comments` to `error_on_unformatted`.
70+
71+
### Fixed
72+
73+
- Fix formatting bugs.
74+
- Fix adding a trailing whitespace inside code block when `wrap_comments = true`.
75+
76+
## [0.3.0] 2017-12-11
77+
78+
### Added
79+
80+
- Support nested imports.
81+
82+
### Changed
83+
84+
- Do not report errors on skipped items.
85+
- Do not format code block inside comments when `wrap_comments = true`.
86+
- Keep vertical spaces between items within range.
87+
- Format `format!` and its variants using compressed style.
88+
- Format `write!` and its variants using compressed style.
89+
- Format **simple** array using compressed style.
90+
91+
### Fixed
92+
93+
- Fix `rustfmt --package package_name` not working properly.
94+
- Fix formatting bugs.
95+
96+
## [0.2.17] 2017-12-03
97+
98+
### Added
99+
100+
- Add `blank_lines_lower_bound` and `blank_lines_upper_bound` configuration options.
101+
102+
### Changed
103+
104+
- Combine configuration options related to width heuristic into `width_heuristic`.
105+
- If the match arm's body is `if` expression, force to use block.
106+
107+
### Fixed
108+
109+
- Fix `cargo fmt --all` being trapped in an infinite loop.
110+
- Fix many formatting bugs.
111+
112+
### Removed
113+
114+
- Remove legacy configuration options.
115+
116+
## [0.2.16] 2017-11-21
117+
118+
### Added
119+
120+
- Remove empty lines at the beginning of the file.
121+
- Soft wrapping on doc comments.
122+
123+
### Changed
124+
125+
- Break before `|` when using multiple lines for match arm patterns.
126+
- Combine `control_style`, `where_style` and `*_indent` config options into `indent_style`.
127+
- Combine `item_brace_style` and `fn_brace_style` config options into `brace_style`.
128+
- Combine config options related spacing around colons into `space_before_colon` and `space_after_colon`.
129+
130+
### Fixed
131+
132+
- Fix many bugs.
133+
3134
## [0.2.15] 2017-11-08
4135

5136
### Added

0 commit comments

Comments
 (0)