Skip to content

Commit aca1b81

Browse files
committed
Auto merge of #3691 - phansch:update_changelog, r=oli-obk
Update changelog with all changes since 0.0.212 This updates the changelog with all notable and user-facing changes since 0.0.212 has been released. I decided to group the changes by the Rust version they are included in, as that's what makes the most sense to users. Whenever a new rust version is released, we will have to go through the list of commits and then update the changelog with the relevant changes. [Rendered](https://github.com/rust-lang/rust-clippy/pull/3691/files?short_path=4ac32a7#diff-4ac32a78649ca5bdd8e0ba38b7006a1e)
2 parents c532506 + 1adc357 commit aca1b81

File tree

2 files changed

+143
-2
lines changed

2 files changed

+143
-2
lines changed

CHANGELOG.md

+123-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,128 @@
11
# Change Log
2+
23
All notable changes to this project will be documented in this file.
34

4-
## 0.0.212
5+
## Unreleased / In Rust Beta or Nightly
6+
7+
[b2601be...master](https://github.com/rust-lang/rust-clippy/compare/b2601be...master)
8+
9+
## Rust 1.32 (2019-01-17)
10+
11+
[2e26fdc2...b2601be](https://github.com/rust-lang/rust-clippy/compare/2e26fdc2...b2601be)
12+
13+
* New lints: [`slow_vector_initialization`], [`unsafe_vector_initialization`],
14+
[`mem_discriminant_non_enum`], [`redundant_clone`], [`wildcard_dependencies`],
15+
[`into_iter_on_ref`], [`into_iter_on_array`], [`deprecated_cfg_attr`],
16+
[`mem_discriminant_non_enum`], [`cargo_common_metadata`]
17+
* Add support for `u128` and `i128` to integer related lints
18+
* Add float support to `mistyped_literal_suffixes`
19+
* Fix false positives in `use_self`
20+
* Fix false positives in `missing_comma`
21+
* Fix false positives in `new_ret_no_self`
22+
* Fix false positives in `possible_missing_comma`
23+
* Fix false positive in `integer_arithmetic` in constant items
24+
* Fix false positive in `needless_borrow`
25+
* Fix false positive in `out_of_bounds_indexing`
26+
* Fix false positive in `new_without_default_derive`
27+
* Fix false positive in `string_lit_as_bytes`
28+
* Fix false negative in `out_of_bounds_indexing`
29+
* Fix false negative in `use_self`. It will now also check existential types
30+
* Fix incorrect suggestion for `redundant_closure_call`
31+
* Fix various suggestions that contained expanded macros
32+
* Fix `bool_comparison` triggering 3 times on on on the same code
33+
* Expand `trivially_copy_pass_by_ref` to work on trait methods
34+
* Improve suggestion for `needless_range_loop`
35+
* Move `needless_pass_by_value` from `pedantic` group to `style`
36+
37+
## Rust 1.31 (2018-12-06)
38+
39+
[125907ad..2e26fdc2](https://github.com/rust-lang/rust-clippy/compare/125907ad..2e26fdc2)
40+
41+
* Clippy has been relicensed under a dual MIT / Apache license.
42+
See [#3093](https://github.com/rust-lang/rust-clippy/issues/3093) for more
43+
information.
44+
* With Rust 1.31, Clippy is no longer available via crates.io. The recommended
45+
installation method is via `rustup component add clippy`.
46+
* New lints: [`redundant_pattern_matching`], [`unnecessary_filter_map`],
47+
[`unused_unit`], [`map_flatten`], [`mem_replace_option_with_none`]
48+
* Fix ICE in `if_let_redundant_pattern_matching`
49+
* Fix ICE in `needless_pass_by_value` when encountering a generic function
50+
argument with a lifetime parameter
51+
* Fix ICE in `needless_range_loop`
52+
* Fix ICE in `single_char_pattern` when encountering a constant value
53+
* Fix false positive in `assign_op_pattern`
54+
* Fix false positive in `boxed_local` on trait implementations
55+
* Fix false positive in `cmp_owned`
56+
* Fix false positive in `collapsible_if` when conditionals have comments
57+
* Fix false positive in `double_parens`
58+
* Fix false positive in `excessive_precision`
59+
* Fix false positive in `explicit_counter_loop`
60+
* Fix false positive in `fn_to_numeric_cast_with_truncation`
61+
* Fix false positive in `map_clone`
62+
* Fix false positive in `new_ret_no_self`
63+
* Fix false positive in `new_without_default` when `new` is unsafe
64+
* Fix false positive in `type_complexity` when using extern types
65+
* Fix false positive in `useless_format`
66+
* Fix false positive in `wrong_self_convention`
67+
* Fix incorrect suggestion for `excessive_precision`
68+
* Fix incorrect suggestion for `expect_fun_call`
69+
* Fix incorrect suggestion for `get_unwrap`
70+
* Fix incorrect suggestion for `useless_format`
71+
* `fn_to_numeric_cast_with_truncation` lint can be disabled again
72+
* Improve suggestions for `manual_memcpy`
73+
* Improve help message for `needless_lifetimes`
74+
75+
## Rust 1.30 (2018-10-25)
76+
77+
[14207503...125907ad](https://github.com/rust-lang/rust-clippy/compare/14207503...125907ad)
78+
79+
* Deprecate `assign_ops` lint
80+
* New lints: [`mistyped_literal_suffixes`], [`ptr_offset_with_cast`],
81+
[`needless_collect`], [`copy_iterator`]
82+
* `cargo clippy -V` now includes the Clippy commit hash of the Rust
83+
Clippy component
84+
* Fix ICE in `implicit_hasher`
85+
* Fix ICE when encountering `println!("{}" a);`
86+
* Fix ICE when encountering a macro call in match statements
87+
* Fix false positive in `default_trait_access`
88+
* Fix false positive in `trivially_copy_pass_by_ref`
89+
* Fix false positive in `similar_names`
90+
* Fix false positive in `redundant_field_name`
91+
* Fix false positive in `expect_fun_call`
92+
* Fix false negative in `identity_conversion`
93+
* Fix false negative in `explicit_counter_loop`
94+
* Fix `range_plus_one` suggestion and false negative
95+
* `print_with_newline` / `write_with_newline`: don't warn about string with several `\n`s in them
96+
* Fix `useless_attribute` to also whitelist `unused_extern_crates`
97+
* Fix incorrect suggestion for `single_char_pattern`
98+
* Improve suggestion for `identity_conversion` lint
99+
* Move `explicit_iter_loop` and `explicit_into_iter_loop` from `style` group to `pedantic`
100+
* Move `range_plus_one` and `range_minus_one` from `nursery` group to `complexity`
101+
* Move `shadow_unrelated` from `restriction` group to `pedantic`
102+
* Move `indexing_slicing` from `pedantic` group to `restriction`
103+
104+
## Rust 1.29 (2018-09-13)
105+
106+
[v0.0.212...14207503](https://github.com/rust-lang/rust-clippy/compare/v0.0.212...14207503)
107+
108+
* :tada: :tada: **Rust 1.29 is the first stable Rust that includes a bundled Clippy** :tada:
109+
:tada:
110+
You can now run `rustup component add clippy-preview` and then `cargo
111+
clippy` to run Clippy. This should put an end to the continuous nightly
112+
upgrades for Clippy users.
113+
* Clippy now follows the Rust versioning scheme instead of its own
114+
* Fix ICE when encountering a `while let (..) = x.iter()` construct
115+
* Fix false positives in `use_self`
116+
* Fix false positive in `trivially_copy_pass_by_ref`
117+
* Fix false positive in `useless_attribute` lint
118+
* Fix false positive in `print_literal`
119+
* Fix `use_self` regressions
120+
* Improve lint message for `neg_cmp_op_on_partial_ord`
121+
* Improve suggestion highlight for `single_char_pattern`
122+
* Improve suggestions for various print/write macro lints
123+
* Improve website header
124+
125+
## 0.0.212 (2018-07-10)
5126
* Rustup to *rustc 1.29.0-nightly (e06c87544 2018-07-06)*
6127

7128
## 0.0.211
@@ -31,7 +152,7 @@ All notable changes to this project will be documented in this file.
31152

32153
## 0.0.203
33154
* Rustup to *rustc 1.28.0-nightly (a3085756e 2018-05-19)*
34-
* clippy attributes are now of the form `clippy::cyclomatic_complexity` instead of `clippy(cyclomatic_complexity)`
155+
* Clippy attributes are now of the form `clippy::cyclomatic_complexity` instead of `clippy(cyclomatic_complexity)`
35156

36157
## 0.0.202
37158
* Rustup to *rustc 1.28.0-nightly (952f344cd 2018-05-18)*

util/fetch_prs_between

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/sh
2+
3+
# Fetches the merge commits between two git commits and prints the PR URL
4+
# together with the full commit message
5+
#
6+
# If you want to use this to update the Clippy changelog, be sure to manually
7+
# exclude the non-user facing changes like 'rustup' PRs, typo fixes, etc.
8+
9+
first=$1
10+
last=$2
11+
12+
IFS='
13+
'
14+
for pr in $(git log --oneline --grep "Merge #" --grep "Merge pull request" --grep "Auto merge of" "$first...$last" | sort -rn | uniq); do
15+
id=$(echo $pr | rg -o '#[0-9]{3,5}' | cut -c 2-)
16+
commit=$(echo $pr | cut -d' ' -f 1)
17+
echo "URL: https://github.com/rust-lang/rust-clippy/pull/$id"
18+
echo "$(git --no-pager show --pretty=medium $commit)"
19+
echo "---------------------------------------------------------\n"
20+
done

0 commit comments

Comments
 (0)