rust-clippy/clippy_lints/src
Shea Newton c479b3bc28
Removing lint for constant usize array indexing
This commit removes the logic in this PR that linted out-of-bounds constant `usize` indexing on arrays. That case is already handled by rustc's `const_err` lint. Beyond removing the linting logic, the test file and its associated stderr were updated to verify that const `usize` indexing operations on arrays are no longer handled by this `indexing_slicing` lint.
2018-06-19 21:30:43 +00:00
..
utils Merge pull request #2844 from illicitonion/default_trait_access 2018-06-19 10:10:20 +02:00
approx_const.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
arithmetic.rs Formatting 2018-06-07 22:01:46 +02:00
assign_ops.rs Formatting 2018-06-07 22:01:46 +02:00
attrs.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
bit_mask.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
blacklisted_name.rs Run rustfix 2018-05-30 10:15:50 +02:00
block_in_if_condition.rs Run rustfix 2018-05-30 10:15:50 +02:00
booleans.rs Cleaned implements_ord helper function in boolean lint file. 2018-06-03 22:56:17 +02:00
bytecount.rs Run rustfix 2018-05-30 10:15:50 +02:00
collapsible_if.rs Run rustfix 2018-05-30 10:15:50 +02:00
const_static_lifetime.rs Run rustfix 2018-05-30 10:15:50 +02:00
consts.rs Run rustfix 2018-05-30 10:15:50 +02:00
copies.rs Run rustfix 2018-05-30 10:15:50 +02:00
cyclomatic_complexity.rs Run rustfix 2018-05-30 10:15:50 +02:00
default_trait_access.rs Exclude generated code 2018-06-18 10:29:25 +01:00
deprecated_lints.rs Deprecate misaligned_transmute 2018-04-11 02:50:04 -07:00
derive.rs Run rustfix 2018-05-30 10:15:50 +02:00
doc.rs Run rustfix 2018-05-30 10:15:50 +02:00
double_comparison.rs Run rustfix 2018-05-30 10:15:50 +02:00
double_parens.rs Categorize all the lints! 2018-03-28 15:24:26 +02:00
drop_forget_ref.rs Run rustfix 2018-05-30 10:15:50 +02:00
duration_subsec.rs duration_subsec: Add check for subsec_micros 2018-06-12 08:25:10 +02:00
else_if_without_else.rs Run rustfix 2018-05-30 10:15:50 +02:00
empty_enum.rs Run rustfix 2018-05-30 10:15:50 +02:00
entry.rs Run rustfix 2018-05-30 10:15:50 +02:00
enum_clike.rs Run rustfix 2018-05-30 10:15:50 +02:00
enum_glob_use.rs Run rustfix 2018-05-30 10:15:50 +02:00
enum_variants.rs Run rustfix 2018-05-30 10:15:50 +02:00
eq_op.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
erasing_op.rs Run rustfix 2018-05-30 10:15:50 +02:00
escape.rs Run rustfix 2018-05-30 10:15:50 +02:00
eta_reduction.rs Run rustfix 2018-05-30 10:15:50 +02:00
eval_order_dependence.rs Run rustfix 2018-05-30 10:15:50 +02:00
excessive_precision.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
explicit_write.rs Run rustfix 2018-05-30 10:15:50 +02:00
fallible_impl_from.rs Run rustfix 2018-05-30 10:15:50 +02:00
format.rs Run rustfix 2018-05-30 10:15:50 +02:00
formatting.rs Run rustfix 2018-05-30 10:15:50 +02:00
functions.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
identity_conversion.rs Run rustfix 2018-05-30 10:15:50 +02:00
identity_op.rs Run rustfix 2018-05-30 10:15:50 +02:00
if_let_redundant_pattern_matching.rs Doc fix syntax 2018-06-15 00:19:19 -07:00
if_not_else.rs Run rustfix 2018-05-30 10:15:50 +02:00
indexing_slicing.rs Removing lint for constant usize array indexing 2018-06-19 21:30:43 +00:00
infallible_destructuring_match.rs Implement lint for destructuring tuple structs with a let and a match (closes #2671) 2018-04-24 17:56:13 +01:00
infinite_iter.rs Run rustfix 2018-05-30 10:15:50 +02:00
inherent_impl.rs move lint to restriction group 2018-05-29 21:28:52 +02:00
inline_fn_without_body.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
int_plus_one.rs Run rustfix 2018-05-30 10:15:50 +02:00
invalid_ref.rs Run rustfix 2018-05-30 10:15:50 +02:00
items_after_statements.rs Run rustfix 2018-05-30 10:15:50 +02:00
large_enum_variant.rs Run rustfix 2018-05-30 10:15:50 +02:00
len_zero.rs Run rustfix 2018-05-30 10:15:50 +02:00
let_if_seq.rs Run rustfix 2018-05-30 10:15:50 +02:00
lib.rs This commit represents an attempt to address changes requested in the process of reviewing PR #2790. 2018-06-19 16:28:10 +00:00
lifetimes.rs Check lifetimes in Fn traits in generic bounds. 2018-06-19 21:25:38 +08:00
literal_representation.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
loops.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
map_clone.rs Run rustfix 2018-05-30 10:15:50 +02:00
map_unit_fn.rs Run rustfix 2018-05-30 10:15:50 +02:00
matches.rs Run rustfix 2018-05-30 10:15:50 +02:00
mem_forget.rs Run rustfix 2018-05-30 10:15:50 +02:00
methods.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
minmax.rs Run rustfix 2018-05-30 10:15:50 +02:00
misc.rs Run rustfix 2018-05-30 10:15:50 +02:00
misc_early.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
missing_doc.rs Version bump 2018-06-19 09:56:37 +02:00
multiple_crate_versions.rs Lint for multiple versions of dependencies 2018-04-30 06:20:39 +07:00
mut_mut.rs Run rustfix 2018-05-30 10:15:50 +02:00
mut_reference.rs Run rustfix 2018-05-30 10:15:50 +02:00
mutex_atomic.rs Run rustfix 2018-05-30 10:15:50 +02:00
needless_bool.rs Run rustfix 2018-05-30 10:15:50 +02:00
needless_borrow.rs Run rustfix 2018-05-30 10:15:50 +02:00
needless_borrowed_ref.rs Run rustfix 2018-05-30 10:15:50 +02:00
needless_continue.rs Run rustfix 2018-05-30 10:15:50 +02:00
needless_pass_by_value.rs Run rustfix 2018-05-30 10:15:50 +02:00
needless_update.rs Run rustfix 2018-05-30 10:15:50 +02:00
neg_cmp_op_on_partial_ord.rs Reduced scope of nonminimal_bool so that it doesn't evaluate only partially orded types. 2018-06-03 21:46:09 +02:00
neg_multiply.rs Run rustfix 2018-05-30 10:15:50 +02:00
new_without_default.rs Run rustfix 2018-05-30 10:15:50 +02:00
no_effect.rs Run rustfix 2018-05-30 10:15:50 +02:00
non_expressive_names.rs Run rustfix 2018-05-30 10:15:50 +02:00
ok_if_let.rs Run rustfix 2018-05-30 10:15:50 +02:00
open_options.rs Run rustfix 2018-05-30 10:15:50 +02:00
overflow_check_conditional.rs Run rustfix 2018-05-30 10:15:50 +02:00
panic_unimplemented.rs Run rustfix 2018-05-30 10:15:50 +02:00
partialeq_ne_impl.rs Run rustfix 2018-05-30 10:15:50 +02:00
precedence.rs Run rustfix 2018-05-30 10:15:50 +02:00
ptr.rs Run rustfix 2018-05-30 10:15:50 +02:00
question_mark.rs Run rustfix 2018-05-30 10:15:50 +02:00
ranges.rs Run rustfix 2018-05-30 10:15:50 +02:00
redundant_field_names.rs Merge pull request #2821 from mati865/rust-2018-migration 2018-05-30 15:55:11 +02:00
reference.rs Run rustfix 2018-05-30 10:15:50 +02:00
regex.rs Run rustfix 2018-05-30 10:15:50 +02:00
replace_consts.rs Run rustfix 2018-05-30 10:15:50 +02:00
returns.rs Run rustfix 2018-05-30 10:15:50 +02:00
serde_api.rs Run rustfix 2018-05-30 10:15:50 +02:00
shadow.rs Run rustfix 2018-05-30 10:15:50 +02:00
strings.rs Run rustfix 2018-05-30 10:15:50 +02:00
suspicious_trait_impl.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
swap.rs Run rustfix 2018-05-30 10:15:50 +02:00
temporary_assignment.rs Run rustfix 2018-05-30 10:15:50 +02:00
transmute.rs Merge pull request #2821 from mati865/rust-2018-migration 2018-05-30 15:55:11 +02:00
trivially_copy_pass_by_ref.rs Allow configuring the trivial copy size limit 2018-06-15 16:53:34 +02:00
types.rs Dogfood new trivially_copy_pass_by_ref lint 2018-06-15 16:53:34 +02:00
unicode.rs Run rustfix 2018-05-30 10:15:50 +02:00
unsafe_removed_from_name.rs Version bump 2018-06-18 09:56:58 +02:00
unused_io_amount.rs Run rustfix 2018-05-30 10:15:50 +02:00
unused_label.rs Run rustfix 2018-05-30 10:15:50 +02:00
unwrap.rs More doc fixes 2018-06-15 00:20:46 -07:00
use_self.rs Run rustfix 2018-05-30 10:15:50 +02:00
vec.rs Run rustfix 2018-05-30 10:15:50 +02:00
write.rs Merge pull request #2821 from mati865/rust-2018-migration 2018-05-30 15:55:11 +02:00
zero_div_zero.rs Run rustfix 2018-05-30 10:15:50 +02:00