As discussed in rust-lang/rust#47475 the #[inline] attribute is currently allowed on trait methods without bodies (i.e. without a default implementation). This is misleading as it could be interpreted as affecting the implementations of the trait method. Add a lint for any use of #[inline] on a trait method without a body. Fixes rust-lang/rust#47475
41 KiB
41 KiB
Change Log
All notable changes to this project will be documented in this file.
0.0.180
- Rustup to rustc 1.25.0-nightly (
3f92e8d892018-01-14)
0.0.179
- Rustup to rustc 1.25.0-nightly (
61452e5062018-01-09)
0.0.178
- Rustup to rustc 1.25.0-nightly (
ee220daca2018-01-07)
0.0.177
- Rustup to rustc 1.24.0-nightly (
250b492052017-12-21) - New lint:
match_as_ref
0.0.176
- Rustup to rustc 1.24.0-nightly (
0077d128d2017-12-14)
0.0.175
- Rustup to rustc 1.24.0-nightly (
bb42071f62017-12-01)
0.0.174
- Rustup to rustc 1.23.0-nightly (
63739ab7b2017-11-21)
0.0.173
- Rustup to rustc 1.23.0-nightly (
33374fa9d2017-11-20)
0.0.172
- Rustup to rustc 1.23.0-nightly (
d0f8e29132017-11-16)
0.0.171
- Rustup to rustc 1.23.0-nightly (
ff0f5de3b2017-11-14)
0.0.170
- Rustup to rustc 1.23.0-nightly (
d6b06c63a2017-11-09)
0.0.169
- Rustup to rustc 1.23.0-nightly (
3b82e4c742017-11-05) - New lints:
just_underscores_and_digits,result_map_unwrap_or_else,transmute_bytes_to_str
0.0.168
- Rustup to rustc 1.23.0-nightly (
f0fe716db2017-10-30)
0.0.167
- Rustup to rustc 1.23.0-nightly (
90ef3372e2017-10-29) - New lints:
const_static_lifetime,erasing_op,fallible_impl_from,println_empty_string,useless_asref
0.0.166
- Rustup to rustc 1.22.0-nightly (
b7960878b2017-10-18) - New lints:
explicit_write,identity_conversion,implicit_hasher,invalid_ref,option_map_or_none,range_minus_one,range_plus_one,transmute_int_to_bool,transmute_int_to_char,transmute_int_to_float
0.0.165
- Rust upgrade to rustc 1.22.0-nightly (
0e6f4cf512017-09-27) - New lint:
mut_range_bound
0.0.164
- Update to rustc 1.22.0-nightly (
6c476ce462017-09-25) - New lint:
int_plus_one
0.0.163
- Update to rustc 1.22.0-nightly (
14039a42a2017-09-22)
0.0.162
- Update to rustc 1.22.0-nightly (
0701b37d92017-09-18) - New lint:
chars_last_cmp - Improved suggestions for
needless_borrow,ptr_arg,
0.0.161
- Update to rustc 1.22.0-nightly (
539f2083d2017-09-13)
0.0.160
- Update to rustc 1.22.0-nightly (
dd08c30702017-09-12)
0.0.159
- Update to rustc 1.22.0-nightly (
eba374fb22017-09-11) - New lint:
clone_on_ref_ptr
0.0.158
- New lint:
manual_memcpy cast_losslessno longer has redundant parentheses in its suggestions- Update to rustc 1.22.0-nightly (
dead08cb32017-09-08)
0.0.157 - 2017-09-04
0.0.156 - 2017-09-03
- Update to rustc 1.22.0-nightly (
744dd6c1d2017-09-02)
0.0.155
- Update to rustc 1.21.0-nightly (
c11f689d22017-08-29) - New lint:
infinite_iter,maybe_infinite_iter,cast_lossless
0.0.154
- Update to rustc 1.21.0-nightly (
2c0558f632017-08-24) - Fix
use_selftriggering inside derives - Add support for linting an entire workspace with
cargo clippy --all - New lint:
naive_bytecount
0.0.153
0.0.152
- Update to rustc 1.21.0-nightly (
df511d5542017-08-14)
0.0.151
- Update to rustc 1.21.0-nightly (
13d94d5fa2017-08-10)
0.0.150
- Update to rustc 1.21.0-nightly (
215e0b10e2017-08-08)
0.0.148
- Update to rustc 1.21.0-nightly (
37c7d0ebb2017-07-31) - New lints:
unreadable_literal,inconsistent_digit_grouping,large_digit_groups
0.0.147
- Update to rustc 1.21.0-nightly (
aac223f4f2017-07-30)
0.0.146
- Update to rustc 1.21.0-nightly (
52a3309692017-07-27) - Fixes false positives in
inline_always - Fixes false negatives in
panic_params
0.0.145
- Update to rustc 1.20.0-nightly (
afe145d222017-07-23)
0.0.144
- Update to rustc 1.20.0-nightly (
086eaa78e2017-07-15)
0.0.143
- Update to rustc 1.20.0-nightly (
d84693b932017-07-09) - Fix
cargo clippycrashing ondylibprojects - Fix false positives around
nested_while_letandnever_loop
0.0.142
- Update to rustc 1.20.0-nightly (
0679711392017-07-02)
0.0.141
- Rewrite of the
doc_markdownlint. - Deprecated
range_step_by_zero - New lint:
iterator_step_by_zero - New lint:
needless_borrowed_reference - Update to rustc 1.20.0-nightly (
69c65d2962017-06-28)
0.0.140 - 2017-06-16
- Update to rustc 1.19.0-nightly (
258ae6dd92017-06-15)
0.0.139 — 2017-06-10
- Update to rustc 1.19.0-nightly (
4bf5c99af2017-06-10) - Fix bugs with for loop desugaring
- Check for
AsRef/AsMutarguments inwrong_self_convention
0.0.138 — 2017-06-05
- Update to rustc 1.19.0-nightly (
0418fa9d32017-06-04)
0.0.137 — 2017-06-05
- Update to rustc 1.19.0-nightly (
6684d176c2017-06-03)
0.0.136 — 2017—05—26
- Update to rustc 1.19.0-nightly (
5579677662017-05-26)
0.0.135 — 2017—05—24
- Update to rustc 1.19.0-nightly (
5b13bff522017-05-23)
0.0.134 — 2017—05—19
- Update to rustc 1.19.0-nightly (
0ed1ec9f92017-05-18)
0.0.133 — 2017—05—14
- Update to rustc 1.19.0-nightly (
826d8f3852017-05-13)
0.0.132 — 2017—05—05
- Fix various bugs and some ices
0.0.131 — 2017—05—04
- Update to rustc 1.19.0-nightly (
2d4ed8e0c2017-05-03)
0.0.130 — 2017—05—03
- Update to rustc 1.19.0-nightly (
6a5fc9eec2017-05-02)
0.0.129 — 2017-05-01
- Update to rustc 1.19.0-nightly (
06fb4d2562017-04-30)
0.0.128 — 2017-04-28
- Update to rustc 1.18.0-nightly (
94e884b632017-04-27)
0.0.127 — 2017-04-27
- Update to rustc 1.18.0-nightly (
0369832012017-04-26) - New lint:
needless_continue
0.0.126 — 2017-04-24
- Update to rustc 1.18.0-nightly (
2bd4b5c6d2017-04-23)
0.0.125 — 2017-04-19
- Update to rustc 1.18.0-nightly (
9f2abadca2017-04-18)
0.0.124 — 2017-04-16
- Update to rustc 1.18.0-nightly (
d5cf1cb642017-04-15)
0.0.123 — 2017-04-07
- Fix various false positives
0.0.122 — 2017-04-07
0.0.121 — 2017-03-21
- Rustup to rustc 1.17.0-nightly (
134c4a0f02017-03-20)
0.0.120 — 2017-03-17
- Rustup to rustc 1.17.0-nightly (
0aeb9c1292017-03-15)
0.0.119 — 2017-03-13
- Rustup to rustc 1.17.0-nightly (
824c9ebbd2017-03-12)
0.0.118 — 2017-03-05
- Rustup to rustc 1.17.0-nightly (
b1e31766d2017-03-03)
0.0.117 — 2017-03-01
- Rustup to rustc 1.17.0-nightly (
be760566c2017-02-28)
0.0.116 — 2017-02-28
- Fix
cargo clippyon 64 bit windows systems
0.0.115 — 2017-02-27
- Rustup to rustc 1.17.0-nightly (
60a0edc6c2017-02-26) - New lints:
zero_ptr,never_loop,mut_from_ref
0.0.114 — 2017-02-08
- Rustup to rustc 1.17.0-nightly (
c49d102072017-02-07) - Tests are now ui tests (testing the exact output of rustc)
0.0.113 — 2017-02-04
- Rustup to rustc 1.16.0-nightly (
eedaa94e32017-02-02) - New lint:
large_enum_variant explicit_into_iter_loopprovides suggestions
0.0.112 — 2017-01-27
- Rustup to rustc 1.16.0-nightly (
df8debf6d2017-01-25)
0.0.111 — 2017-01-21
- Rustup to rustc 1.16.0-nightly (
a52da95ce2017-01-20)
0.0.110 — 2017-01-20
- Add badges and categories to
Cargo.toml
0.0.109 — 2017-01-19
- Update to rustc 1.16.0-nightly (
c07a6ae772017-01-17)
0.0.108 — 2017-01-12
- Update to rustc 1.16.0-nightly (
2782e8f8f2017-01-12)
0.0.107 — 2017-01-11
- Update regex dependency
- Fix FP when matching
&&mutby&ref - Reintroduce
for (_, x) in &mut hash_map->for x in hash_map.values_mut() - New lints:
unused_io_amount,forget_ref,short_circuit_statement
0.0.106 — 2017-01-04
- Fix FP introduced by rustup in
wrong_self_convention
0.0.105 — 2017-01-04
- Update to rustc 1.16.0-nightly (
4682271292017-01-03) - New lints:
deref_addrof,double_parens,pub_enum_variant_names - Fix suggestion in
new_without_default - FP fix in
absurd_extreme_comparisons
0.0.104 — 2016-12-15
- Update to rustc 1.15.0-nightly (
8f02c429a2016-12-15)
0.0.103 — 2016-11-25
- Update to rustc 1.15.0-nightly (
d5814b03e2016-11-23)
0.0.102 — 2016-11-24
- Update to rustc 1.15.0-nightly (
3bf2be9ce2016-11-22)
0.0.101 — 2016-11-23
- Update to rustc 1.15.0-nightly (
7b3eeea222016-11-21) - New lint:
string_extend_chars
0.0.100 — 2016-11-20
- Update to rustc 1.15.0-nightly (
ac635aa952016-11-18)
0.0.99 — 2016-11-18
- Update to rustc 1.15.0-nightly (
0ed9519932016-11-14) - New lint:
get_unwrap
0.0.98 — 2016-11-08
- Fixes an issue due to a change in how cargo handles
--sysroot, which brokecargo clippy
0.0.97 — 2016-11-03
- For convenience,
cargo clippydefines acargo-clippyfeature. This was previously added for a short time under the nameclippybut removed for compatibility. cargo clippy --helpis more helping (and less helpful 😄)- Rustup to rustc 1.14.0-nightly (
5665bdf3e2016-11-02) - New lints:
if_let_redundant_pattern_matching,partialeq_ne_impl
0.0.96 — 2016-10-22
- Rustup to rustc 1.14.0-nightly (
f094206852016-10-20) - New lint:
iter_skip_next
0.0.95 — 2016-10-06
- Rustup to rustc 1.14.0-nightly (
3210fd5c22016-10-05)
0.0.94 — 2016-10-04
- Fixes bustage on Windows due to forbidden directory name
0.0.93 — 2016-10-03
- Rustup to rustc 1.14.0-nightly (
144af3e972016-10-02) option_map_unwrap_orandoption_map_unwrap_or_elseare now allowed by default.- New lint:
explicit_into_iter_loop
0.0.92 — 2016-09-30
- Rustup to rustc 1.14.0-nightly (
289f3a4ca2016-09-29)
0.0.91 — 2016-09-28
- Rustup to rustc 1.13.0-nightly (
d0623cf7b2016-09-26)
0.0.90 — 2016-09-09
- Rustup to rustc 1.13.0-nightly (
f1f40f8502016-09-09)
0.0.89 — 2016-09-06
- Rustup to rustc 1.13.0-nightly (
cbe4de78e2016-09-05)
0.0.88 — 2016-09-04
- Rustup to rustc 1.13.0-nightly (
70598e04f2016-09-03) - The following lints are not new but were only usable through the
clippylint groups:filter_next,for_loop_over_option,for_loop_over_resultandmatch_overlapping_arm. You should now be able to#[allow/deny]them individually and they are available directly through [cargo clippy].
0.0.87 — 2016-08-31
- Rustup to rustc 1.13.0-nightly (
eac41469d2016-08-30) - New lints:
builtin_type_shadow - Fix FP in
zero_prefixed_literaland0b/0o
0.0.86 — 2016-08-28
- Rustup to rustc 1.13.0-nightly (
a23064af52016-08-27) - New lints:
missing_docs_in_private_items,zero_prefixed_literal
0.0.85 — 2016-08-19
- Fix ICE with
useless_attribute useless_attributeignores [unused_imports] onusestatements
0.0.84 — 2016-08-18
- Rustup to rustc 1.13.0-nightly (
aef6971ca2016-08-17)
0.0.83 — 2016-08-17
- Rustup to rustc 1.12.0-nightly (
1bf5fa3262016-08-16) - New lints:
print_with_newline,useless_attribute
0.0.82 — 2016-08-17
- Rustup to rustc 1.12.0-nightly (
197be89f32016-08-15) - New lint:
module_inception
0.0.81 — 2016-08-14
- Rustup to rustc 1.12.0-nightly (
1deb02ea62016-08-12) - New lints:
eval_order_dependence,mixed_case_hex_literals,unseparated_literal_suffix - False positive fix in
too_many_arguments - Addition of functionality to
needless_borrow - Suggestions for
clone_on_copy - Bug fix in
wrong_self_convention - Doc improvements
0.0.80 — 2016-07-31
- Rustup to rustc 1.12.0-nightly (
1225e122f2016-07-30) - New lints:
misrefactored_assign_op,serde_api_misuse
0.0.79 — 2016-07-10
- Rustup to rustc 1.12.0-nightly (
f93aaf84c2016-07-09) - Major suggestions refactoring
0.0.78 — 2016-07-02
- Rustup to rustc 1.11.0-nightly (
01411937f2016-07-01) - New lints:
wrong_transmute,double_neg,filter_map - For compatibility,
cargo clippydoes not defines theclippyfeature introduced in 0.0.76 anymore collapsible_ifnow considersif let
0.0.77 — 2016-06-21
0.0.76 — 2016-06-10
- Rustup to rustc 1.11.0-nightly (
7d2f75a952016-06-09) cargo clippynow automatically defines theclippyfeature- New lint:
not_unsafe_ptr_arg_deref
0.0.75 — 2016-06-08
- Rustup to rustc 1.11.0-nightly (
763f9234b2016-06-06)
0.0.74 — 2016-06-07
- Fix bug with
cargo-clippyJSON parsing - Add the
CLIPPY_DISABLE_DOCS_LINKSenvironment variable to deactivate the “for further information visit wiki-link” message.
0.0.73 — 2016-06-05
- Fix false positives in
useless_let_if_seq
0.0.72 — 2016-06-04
- Fix false positives in
useless_let_if_seq
0.0.71 — 2016-05-31
- Rustup to rustc 1.11.0-nightly (
a967611d82016-05-30) - New lint:
useless_let_if_seq
0.0.70 — 2016-05-28
- Rustup to rustc 1.10.0-nightly (
7bddce6932016-05-27) invalid_regexandtrivial_regexcan now warn onRegexSet::new,RegexBuilder::newand byte regexes
0.0.69 — 2016-05-20
- Rustup to rustc 1.10.0-nightly (
476fe6eef2016-05-21) used_underscore_bindinghas been madeAllowtemporarily
0.0.68 — 2016-05-17
- Rustup to rustc 1.10.0-nightly (
cd6a400172016-05-16) - New lint:
unnecessary_operation
0.0.67 — 2016-05-12
- Rustup to rustc 1.10.0-nightly (
22ac88f1a2016-05-11)
0.0.66 — 2016-05-11
- New
cargo clippysubcommand - New lints:
assign_op_pattern,assign_ops,needless_borrow
0.0.65 — 2016-05-08
- Rustup to rustc 1.10.0-nightly (
62e2b2fb72016-05-06) - New lints:
float_arithmetic,integer_arithmetic
0.0.64 — 2016-04-26
- Rustup to rustc 1.10.0-nightly (
645dd013a2016-04-24) - New lints:
temporary_cstring_as_ptr,unsafe_removed_from_name, andmem_forget
0.0.63 — 2016-04-08
- Rustup to rustc 1.9.0-nightly (
7979dd6082016-04-07)
0.0.62 — 2016-04-07
- Rustup to rustc 1.9.0-nightly (
bf5da36f12016-04-06)
0.0.61 — 2016-04-03
- Rustup to rustc 1.9.0-nightly (
5ab11d72c2016-04-02) - New lint:
invalid_upcast_comparisons
0.0.60 — 2016-04-01
- Rustup to rustc 1.9.0-nightly (
e1195c24b2016-03-31)
0.0.59 — 2016-03-31
- Rustup to rustc 1.9.0-nightly (
30a3849f22016-03-30) - New lints:
logic_bug,nonminimal_bool - Fixed:
match_same_armsnow ignores arms with guards - Improved:
useless_vecnow warns onfor … in vec![…]
0.0.58 — 2016-03-27
- Rustup to rustc 1.9.0-nightly (
d5a91e6952016-03-26) - New lint:
doc_markdown
0.0.57 — 2016-03-27
- Update to rustc 1.9.0-nightly (
a1e29daf12016-03-25) - Deprecated lints:
str_to_string,string_to_string,unstable_as_slice,unstable_as_mut_slice - New lint:
crosspointer_transmute
0.0.56 — 2016-03-23
- Update to rustc 1.9.0-nightly (
0dcc413e42016-03-22) - New lints:
many_single_char_namesandsimilar_names
0.0.55 — 2016-03-21
- Update to rustc 1.9.0-nightly (
02310fd312016-03-19)
0.0.54 — 2016-03-16
- Update to rustc 1.9.0-nightly (
c66d2380a2016-03-15)
0.0.53 — 2016-03-15
- Add a configuration file
0.0.52
0.0.51 — 2016-03-13
- Add
strto types considered bylen_zero - New lints:
indexing_slicing
0.0.50 — 2016-03-11
- Update to rustc 1.9.0-nightly (
c9629d61c2016-03-10)
0.0.49 — 2016-03-09
- Update to rustc 1.9.0-nightly (
eabfc160f2016-03-08) - New lints:
overflow_check_conditional,unused_label,new_without_default
0.0.48 — 2016-03-07
- Fixed: ICE in
needless_range_loopwith globals
0.0.47 — 2016-03-07
- Update to rustc 1.9.0-nightly (
998a6720b2016-03-07) - New lint:
redundant_closure_call