rust/clippy_lints/src
Michael Sproul 23df4a0183
Disallow bit-shifting in integer_arithmetic lint
With this change, the lint checks all operations that are defined as
being capable of overflow in the Rust Reference.
2020-04-13 13:23:59 +10:00
..
methods Auto merge of #5441 - rabisg0:fix/clone-on-copy, r=phansch 2020-04-10 21:49:26 +00:00
utils rustup https://github.com/rust-lang/rust/pull/69745 2020-04-11 01:51:25 +02:00
approx_const.rs
arithmetic.rs Disallow bit-shifting in integer_arithmetic lint 2020-04-13 13:23:59 +10:00
as_conversions.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
assertions_on_constants.rs
assign_ops.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
atomic_ordering.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
attrs.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
bit_mask.rs verbose_bit_mask: fix bit mask used in docs 2020-04-12 13:11:14 +02:00
blacklisted_name.rs
block_in_if_condition.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
booleans.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
bytecount.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
cargo_common_metadata.rs
checked_conversions.rs Use int assoc consts in checked_conversions lint 2020-04-08 00:43:27 +02:00
cognitive_complexity.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
collapsible_if.rs
comparison_chain.rs
consts.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
copies.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
copy_iterator.rs
dbg_macro.rs
default_trait_access.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
deprecated_lints.rs Deprecate REPLACE_CONSTS lint 2020-03-29 12:59:35 +07:00
derive.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
doc.rs rustup https://github.com/rust-lang/rust/pull/70986 2020-04-11 10:01:23 +02:00
double_comparison.rs
double_parens.rs
drop_bounds.rs
drop_forget_ref.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
duration_subsec.rs
else_if_without_else.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
empty_enum.rs
entry.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
enum_clike.rs rustup https://github.com/rust-lang/rust/pull/70986 2020-04-11 10:01:23 +02:00
enum_variants.rs
eq_op.rs
erasing_op.rs
escape.rs Rustup to rust-lang/rust#70634 2020-04-02 22:29:41 +02:00
eta_reduction.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
eval_order_dependence.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
excessive_bools.rs
exit.rs
explicit_write.rs
fallible_impl_from.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
float_literal.rs Don't import primitive type modules 2020-04-08 00:43:27 +02:00
floating_point_arithmetic.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
format.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
formatting.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
functions.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
get_last_with_len.rs
identity_conversion.rs
identity_op.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
if_let_some_result.rs remove redundant import 2020-03-27 20:47:34 +01:00
if_not_else.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
implicit_return.rs rustup https://github.com/rust-lang/rust/pull/70986 2020-04-11 10:01:23 +02:00
indexing_slicing.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
infinite_iter.rs
inherent_impl.rs
inherent_to_string.rs
inline_fn_without_body.rs
int_plus_one.rs
integer_division.rs
items_after_statements.rs Remove dependency on matches crate 2020-03-25 07:50:08 +01:00
large_enum_variant.rs compare with the second largest instead of the smallest variant 2020-04-10 17:01:56 +02:00
large_stack_arrays.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
len_zero.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
let_if_seq.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
let_underscore.rs Format clippy_lints/src/let_underscore.rs 2020-04-07 22:19:20 +02:00
lib.rs Revert "Downgrade new_ret_no_self to pedantic" 2020-04-09 19:38:20 +02:00
lifetimes.rs don't emit lifetime lints for code inside macros. 2020-03-30 23:22:50 +02:00
literal_representation.rs Allow UUID style formatting for inconsistent_digit_grouping lint 2020-04-12 01:24:37 +01:00
loops.rs Rollup merge of #5425 - xiongmao86:issue5367, r=flip1995 2020-04-08 15:50:28 +02:00
macro_use.rs
main_recursion.rs
map_clone.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
map_unit_fn.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
matches.rs Move matches test in matches module 2020-04-03 22:02:27 +02:00
mem_discriminant.rs
mem_forget.rs
mem_replace.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
minmax.rs
misc_early.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
misc.rs Fix float cmp to use assoc fxx::EPSILON 2020-04-08 00:43:27 +02:00
missing_const_for_fn.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
missing_doc.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
missing_inline.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
modulo_arithmetic.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
multiple_crate_versions.rs
mut_key.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
mut_mut.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
mut_reference.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
mutable_debug_assertion.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
mutex_atomic.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
needless_bool.rs Update clippy_lints/src/needless_bool.rs 2020-03-30 12:19:30 -07:00
needless_borrow.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
needless_borrowed_ref.rs
needless_continue.rs
needless_pass_by_value.rs rustup https://github.com/rust-lang/rust/pull/69745 2020-04-11 01:51:25 +02:00
needless_update.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
neg_cmp_op_on_partial_ord.rs Use integer assoc consts in more lint example code 2020-04-08 00:43:27 +02:00
neg_multiply.rs
new_without_default.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
no_effect.rs
non_copy_const.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
non_expressive_names.rs
open_options.rs
option_env_unwrap.rs
overflow_check_conditional.rs
panic_unimplemented.rs
partialeq_ne_impl.rs
path_buf_push_overwrite.rs
precedence.rs
ptr_offset_with_cast.rs
ptr.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
question_mark.rs
ranges.rs
redundant_clone.rs rustup https://github.com/rust-lang/rust/pull/70986 2020-04-11 10:01:23 +02:00
redundant_field_names.rs
redundant_pattern_matching.rs
redundant_pub_crate.rs move redundant_pub_crate to nursery 2020-03-25 18:14:11 +01:00
redundant_static_lifetimes.rs
reference.rs
regex.rs
returns.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
serde_api.rs
shadow.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
single_component_path_imports.rs
slow_vector_initialization.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
strings.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
suspicious_trait_impl.rs Include OpAssign in suspicious_op_assign_impl 2020-04-05 22:25:51 +02:00
swap.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
tabs_in_doc_comments.rs
temporary_assignment.rs
to_digit_is_some.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
trait_bounds.rs rustup https://github.com/rust-lang/rust/pull/70344 2020-03-27 20:41:35 +01:00
transmute.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
transmuting_null.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
trivially_copy_pass_by_ref.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
try_err.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
types.rs Rustup to https://github.com/rust-lang/rust/pull/70913 2020-04-10 19:03:34 +02:00
unicode.rs
unnamed_address.rs Lint unnamed address comparisons 2020-03-30 21:42:16 +02:00
unsafe_removed_from_name.rs
unused_io_amount.rs
unused_self.rs Auto merge of #5387 - jpospychala:useless_self_fp, r=yaahc 2020-03-30 18:10:21 +00:00
unwrap.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
use_self.rs use_self: switch to hir_ty_to_ty. 2020-04-07 19:53:02 +00:00
vec.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
verbose_file_reads.rs Move verbose_file_reads to restriction 2020-03-26 15:01:03 +01:00
wildcard_dependencies.rs
wildcard_imports.rs
write.rs
zero_div_zero.rs Use assoc const NAN for zero_div_zero lint 2020-04-08 00:43:27 +02:00