rust/tests/ui
bors e3b8c41d0d Auto merge of #5536 - rail-rain:fix_manual_memcpy, r=phansch
Fix the bugs of `manual_memcpy`, simplify the suggestion and refactor it

While I’m working on the long procrastinated work to expand `manual_memcpy`(#1670), I found a few minor bugs and probably unidiomatic or old coding style. There is a brief explanation of changes to the behaviour this PR will make below. And, I have a questoin: do I need to add tests for the first and second fixed bugs? I thought it might be too rare cases to include the tests for those. I added for the last one though.

* Bug fix
  * It negates resulted offsets (`src/dst_offset`) when `offset` is subtraction by 0. This PR will remove any subtraction by 0 as a part of minification.

    ```rust
    for i in 0..5 {
        dst[i - 0] = src[i];
    }
    ```

    ```diff
     warning: it looks like you're manually copying between slices
       --> src/main.rs:2:14
        |
    LL  |     for i in 0..5 {
    -   |              ^^^^ help: try replacing the loop by: `dst[..-5].clone_from_slice(&src[..5])`
    +   |              ^^^^ help: try replacing the loop by: `dst[..5].clone_from_slice(&src[..5])`
        |
    ```
  * It prints `RangeTo` or `RangeFull` when both of `end` and `offset` are 0, which have different meaning. This PR will print 0. I could reject the cases `end` is 0, but I thought I won’t catch other cases `reverse_range_loop` will trigger, and it’s over to catch every such cases.

    ```rust
    for i in 0..0 {
        dst[i] = src[i];
    }
    ```

    ```diff
     warning: it looks like you're manually copying between slices
       --> src/main.rs:2:14
        |
     LL |     for i in 0..0 {
    -   |              ^^^^ help: try replacing the loop by: `dst.clone_from_slice(&src[..])`
    +   |              ^^^^ help: try replacing the loop by: `dst[..0].clone_from_slice(&src[..0])`
        |
    ```
  * it prints four dots when `end` is `None`. This PR will ignore any `for` loops without `end` because a `for` loop that takes `RangeFrom` as its argument and contains indexing without the statements or the expressions that end loops such as `break` will definitely panic, and `manual_memcpy` should ignore the loops with such control flow.

    ```rust
    fn manual_copy(src: &[u32], dst: &mut [u32]) {
        for i in 0.. {
            dst[i] = src[i];
        }
    }
    ```

    ```diff
    -warning: it looks like you're manually copying between slices
    -  --> src/main.rs:2:14
    -   |
    -LL |     for i in 0.. {
    -   |              ^^^ help: try replacing the loop by: `dst[....].clone_from_slice(&src[....])`
    -   |
    ```
* Simplification of the suggestion

  * It prints 0 when `start` or `end` and `offset` are same (from #3323). This PR will use `RangeTo`

changelog: fixed the bugs of `manual_memcpy` and also simplify the suggestion.
2020-05-02 08:11:48 +00:00
..
author
auxiliary rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
checked_unwrap
cmp_owned
crashes fix crash on issue-69020-assoc-const-arith-overflow.rs 2020-04-20 23:01:34 +02:00
crate_level_checks
missing_const_for_fn
needless_bool
out_of_bounds_indexing
absurd-extreme-comparisons.rs Use primitive type assoc consts in more tests 2020-04-08 00:43:27 +02:00
absurd-extreme-comparisons.stderr Use primitive type assoc consts in more tests 2020-04-08 00:43:27 +02:00
approx_const.rs Downgrade unreadable_literal to pedantic 2020-04-04 12:52:03 -07:00
approx_const.stderr
as_conversions.rs
as_conversions.stderr
assertions_on_constants.rs
assertions_on_constants.stderr
assign_ops2.rs
assign_ops2.stderr
assign_ops.fixed
assign_ops.rs
assign_ops.stderr
atomic_ordering_bool.rs
atomic_ordering_bool.stderr
atomic_ordering_fence.rs
atomic_ordering_fence.stderr
atomic_ordering_int.rs
atomic_ordering_int.stderr
atomic_ordering_ptr.rs
atomic_ordering_ptr.stderr
atomic_ordering_uint.rs
atomic_ordering_uint.stderr
attrs.rs
attrs.stderr
author.rs
author.stdout
await_holding_lock.rs Make lint also capture blocks and closures, adjust language to mention other mutex types 2020-04-21 21:07:43 -07:00
await_holding_lock.stderr Make lint also capture blocks and closures, adjust language to mention other mutex types 2020-04-21 21:07:43 -07:00
bit_masks.rs
bit_masks.stderr
blacklisted_name.rs
blacklisted_name.stderr
block_in_if_condition_closure.rs
block_in_if_condition_closure.stderr
block_in_if_condition.fixed
block_in_if_condition.rs
block_in_if_condition.stderr
bool_comparison.fixed Code clean-up and formatting 2020-03-23 21:21:18 +01:00
bool_comparison.rs Code clean-up and formatting 2020-03-23 21:21:18 +01:00
bool_comparison.stderr Code clean-up and formatting 2020-03-23 21:21:18 +01:00
borrow_box.rs Fix issue #2907. 2020-04-19 10:56:15 -04:00
borrow_box.stderr Fix issue #2907. 2020-04-19 10:56:15 -04:00
borrow_interior_mutable_const.rs
borrow_interior_mutable_const.stderr
box_vec.rs
box_vec.stderr
builtin-type-shadow.rs
builtin-type-shadow.stderr
bytecount.rs
bytecount.stderr
cast_alignment.rs
cast_alignment.stderr
cast_lossless_float.fixed
cast_lossless_float.rs
cast_lossless_float.stderr
cast_lossless_integer.fixed
cast_lossless_integer.rs
cast_lossless_integer.stderr
cast_ref_to_mut.rs
cast_ref_to_mut.stderr
cast_size_32bit.rs
cast_size_32bit.stderr
cast_size.rs
cast_size.stderr
cast.rs
cast.stderr
cfg_attr_rustfmt.fixed
cfg_attr_rustfmt.rs
cfg_attr_rustfmt.stderr
char_lit_as_u8_suggestions.fixed
char_lit_as_u8_suggestions.rs
char_lit_as_u8_suggestions.stderr
char_lit_as_u8.rs
char_lit_as_u8.stderr
checked_conversions.fixed
checked_conversions.rs
checked_conversions.stderr
checked_conversions.stdout
clone_on_copy_impl.rs
clone_on_copy_mut.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
cmp_nan.rs Fix NAN comparison lint to use assoc NAN 2020-04-08 00:43:27 +02:00
cmp_nan.stderr Fix NAN comparison lint to use assoc NAN 2020-04-08 00:43:27 +02:00
cmp_null.rs
cmp_null.stderr
cognitive_complexity_attr_used.rs
cognitive_complexity_attr_used.stderr
cognitive_complexity.rs
cognitive_complexity.stderr
collapsible_else_if.fixed Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
collapsible_else_if.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
collapsible_else_if.stderr
collapsible_if.fixed Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
collapsible_if.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
collapsible_if.stderr
collapsible_span_lint_calls.fixed Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
collapsible_span_lint_calls.rs Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
collapsible_span_lint_calls.stderr Change note_span argument for span_lint_and_note. 2020-04-18 18:29:36 +08:00
comparison_chain.rs
comparison_chain.stderr
complex_types.rs
complex_types.stderr
copy_iterator.rs
copy_iterator.stderr
cstring.rs
cstring.stderr
custom_ice_message.rs
custom_ice_message.stderr
dbg_macro.rs
dbg_macro.stderr
debug_assert_with_mut_call.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
debug_assert_with_mut_call.stderr
decimal_literal_representation.fixed
decimal_literal_representation.rs
decimal_literal_representation.stderr
declare_interior_mutable_const.rs
declare_interior_mutable_const.stderr
def_id_nocore.rs
def_id_nocore.stderr
default_lint.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
default_lint.stderr
default_trait_access.rs
default_trait_access.stderr
deprecated_old.rs
deprecated_old.stderr
deprecated.rs
deprecated.stderr
deref_addrof_double_trigger.rs
deref_addrof_double_trigger.stderr
deref_addrof_macro.rs
deref_addrof.fixed
deref_addrof.rs
deref_addrof.stderr
dereference.fixed Better precedence case management + more tests 2020-04-15 17:18:12 +02:00
dereference.rs Better precedence case management + more tests 2020-04-15 17:18:12 +02:00
dereference.stderr Better precedence case management + more tests 2020-04-15 17:18:12 +02:00
derive_hash_xor_eq.rs
derive_hash_xor_eq.stderr
derive.rs
derive.stderr
diverging_sub_expression.rs
diverging_sub_expression.stderr
dlist.rs
dlist.stderr
doc_errors.rs
doc_errors.stderr
doc_unsafe.rs Downgrade let_unit_value to pedantic 2020-04-02 18:31:31 -07:00
doc_unsafe.stderr
doc.rs
doc.stderr
double_comparison.fixed
double_comparison.rs
double_comparison.stderr
double_must_use.rs
double_must_use.stderr
double_neg.rs
double_neg.stderr
double_parens.rs
double_parens.stderr
drop_bounds.rs
drop_bounds.stderr
drop_forget_copy.rs
drop_forget_copy.stderr
drop_ref.rs
drop_ref.stderr
duplicate_underscore_argument.rs
duplicate_underscore_argument.stderr
duration_subsec.fixed
duration_subsec.rs
duration_subsec.stderr
else_if_without_else.rs
else_if_without_else.stderr
empty_enum.rs
empty_enum.stderr Update empty_enum.stderr 2020-04-19 21:00:25 +02:00
empty_line_after_outer_attribute.rs
empty_line_after_outer_attribute.stderr
empty_loop.rs
empty_loop.stderr
entry_fixable.fixed
entry_fixable.rs
entry_fixable.stderr
entry_unfixable.rs
entry_unfixable.stderr
enum_clike_unportable_variant.rs Use primitive type assoc consts in more tests 2020-04-08 00:43:27 +02:00
enum_clike_unportable_variant.stderr Use primitive type assoc consts in more tests 2020-04-08 00:43:27 +02:00
enum_glob_use.fixed
enum_glob_use.rs
enum_glob_use.stderr
enum_variants.rs
enum_variants.stderr
eq_op.rs
eq_op.stderr
erasing_op.rs
erasing_op.stderr
escape_analysis.rs
escape_analysis.stderr
eta.fixed Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
eta.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
eta.stderr Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
eval_order_dependence.rs
eval_order_dependence.stderr
excessive_precision.fixed
excessive_precision.rs
excessive_precision.stderr
exit1.rs
exit1.stderr
exit2.rs
exit2.stderr
exit3.rs
expect_fun_call.fixed
expect_fun_call.rs
expect_fun_call.stderr
expect.rs
expect.stderr
explicit_counter_loop.rs
explicit_counter_loop.stderr
explicit_write_non_rustfix.rs
explicit_write_non_rustfix.stderr
explicit_write.fixed
explicit_write.rs
explicit_write.stderr
extra_unused_lifetimes.rs Run fmt and update test 2020-04-08 16:00:03 +02:00
extra_unused_lifetimes.stderr Run fmt and update test 2020-04-08 16:00:03 +02:00
fallible_impl_from.rs
fallible_impl_from.stderr
filetype_is_file.rs
filetype_is_file.stderr
filter_map_next.rs
filter_map_next.stderr
filter_methods.rs
filter_methods.stderr
find_map.rs
find_map.stderr
float_arithmetic.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
float_arithmetic.stderr Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
float_cmp_const.rs Add float cmp const tests for arrays 2020-04-09 08:08:36 +02:00
float_cmp_const.stderr Make the epsilon note spanless 2020-04-09 08:18:52 +02:00
float_cmp.rs Add float cmp tests for arrays 2020-04-09 08:08:36 +02:00
float_cmp.stderr Make the epsilon note spanless 2020-04-09 08:18:52 +02:00
floating_point_abs.fixed
floating_point_abs.rs
floating_point_abs.stderr
floating_point_exp.fixed
floating_point_exp.rs
floating_point_exp.stderr
floating_point_log.fixed
floating_point_log.rs
floating_point_log.stderr
floating_point_mul_add.fixed
floating_point_mul_add.rs
floating_point_mul_add.stderr
floating_point_powf.fixed
floating_point_powf.rs
floating_point_powf.stderr
fn_address_comparisons.rs Lint unnamed address comparisons 2020-03-30 21:42:16 +02:00
fn_address_comparisons.stderr Lint unnamed address comparisons 2020-03-30 21:42:16 +02:00
fn_params_excessive_bools.rs
fn_params_excessive_bools.stderr
fn_to_numeric_cast_32bit.rs
fn_to_numeric_cast_32bit.stderr
fn_to_numeric_cast.rs
fn_to_numeric_cast.stderr
for_kv_map.rs
for_kv_map.stderr
for_loop_fixable.fixed Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
for_loop_fixable.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
for_loop_fixable.stderr Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
for_loop_over_option_result.rs
for_loop_over_option_result.stderr
for_loop_unfixable.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
for_loop_unfixable.stderr Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
forget_ref.rs
forget_ref.stderr
format.fixed
format.rs
format.stderr
formatting.rs
formatting.stderr
functions_maxlines.rs
functions_maxlines.stderr
functions.rs
functions.stderr
future_not_send.rs add lint futures_not_send 2020-04-17 13:54:05 +02:00
future_not_send.stderr add lint futures_not_send 2020-04-17 13:54:05 +02:00
get_last_with_len.fixed
get_last_with_len.rs
get_last_with_len.stderr
get_unwrap.fixed
get_unwrap.rs
get_unwrap.stderr
identity_conversion.fixed
identity_conversion.rs
identity_conversion.stderr
identity_op.rs
identity_op.stderr
if_let_mutex.rs factor ifs into function, add differing mutex test 2020-04-20 15:08:44 -04:00
if_let_mutex.stderr update stderr file 2020-04-20 15:47:08 -04:00
if_let_some_result.fixed
if_let_some_result.rs
if_let_some_result.stderr
if_not_else.rs
if_not_else.stderr
if_same_then_else2.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
if_same_then_else2.stderr Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
if_same_then_else.rs Use primitive type assoc consts in more tests 2020-04-08 00:43:27 +02:00
if_same_then_else.stderr
ifs_same_cond.rs
ifs_same_cond.stderr
impl.rs
impl.stderr
implicit_hasher.rs Downgrade implicit_hasher to pedantic 2020-04-08 08:43:20 -07:00
implicit_hasher.stderr Downgrade implicit_hasher to pedantic 2020-04-08 08:43:20 -07:00
implicit_return.fixed Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
implicit_return.rs Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
implicit_return.stderr Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
implicit_saturating_sub.fixed Rustup to rust-lang/rust#71518 2020-04-29 15:48:43 +02:00
implicit_saturating_sub.rs Rustup to rust-lang/rust#71518 2020-04-29 15:48:43 +02:00
implicit_saturating_sub.stderr Polished lint and tests 2020-04-18 12:03:52 +05:30
inconsistent_digit_grouping.fixed Allow UUID style formatting for inconsistent_digit_grouping lint 2020-04-12 01:24:37 +01:00
inconsistent_digit_grouping.rs Allow UUID style formatting for inconsistent_digit_grouping lint 2020-04-12 01:24:37 +01:00
inconsistent_digit_grouping.stderr Downgrade unreadable_literal to pedantic 2020-04-04 12:52:03 -07:00
indexing_slicing_index.rs
indexing_slicing_index.stderr
indexing_slicing_slice.rs
indexing_slicing_slice.stderr
inefficient_to_string.fixed
inefficient_to_string.rs
inefficient_to_string.stderr
infallible_destructuring_match.fixed Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
infallible_destructuring_match.rs Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
infallible_destructuring_match.stderr Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
infinite_iter.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
infinite_iter.stderr Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
infinite_loop.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
infinite_loop.stderr Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
inherent_to_string.rs
inherent_to_string.stderr
inline_fn_without_body.fixed
inline_fn_without_body.rs
inline_fn_without_body.stderr
int_plus_one.fixed
int_plus_one.rs
int_plus_one.stderr
integer_arithmetic.rs Disallow bit-shifting in integer_arithmetic lint 2020-04-13 13:23:59 +10:00
integer_arithmetic.stderr Disallow bit-shifting in integer_arithmetic lint 2020-04-13 13:23:59 +10:00
integer_division.rs
integer_division.stderr
into_iter_on_ref.fixed
into_iter_on_ref.rs
into_iter_on_ref.stderr
invalid_upcast_comparisons.rs
invalid_upcast_comparisons.stderr
issue_2356.rs
issue_2356.stderr Update issue_2356.stderr reference file 2020-04-25 20:11:15 +02:00
issue_4266.rs
issue_4266.stderr
issue-3145.rs
issue-3145.stderr
issue-3746.rs
item_after_statement.rs
item_after_statement.stderr
iter_cloned_collect.fixed
iter_cloned_collect.rs
iter_cloned_collect.stderr
iter_nth_zero.fixed
iter_nth_zero.rs
iter_nth_zero.stderr
iter_nth.rs
iter_nth.stderr
iter_skip_next.rs
iter_skip_next.stderr
iterator_step_by_zero.rs
iterator_step_by_zero.stderr
large_const_arrays.fixed Add lint on large const arrays 2020-04-09 09:09:39 +02:00
large_const_arrays.rs Add lint on large const arrays 2020-04-09 09:09:39 +02:00
large_const_arrays.stderr Add lint on large const arrays 2020-04-09 09:09:39 +02:00
large_digit_groups.fixed
large_digit_groups.rs
large_digit_groups.stderr
large_enum_variant.rs
large_enum_variant.stderr large_enum_variant: Report sizes of variants 2020-04-15 09:56:32 +02:00
large_stack_arrays.rs
large_stack_arrays.stderr
len_without_is_empty.rs
len_without_is_empty.stderr
len_zero.fixed
len_zero.rs
len_zero.stderr
let_if_seq.rs
let_if_seq.stderr
let_return.rs
let_return.stderr
let_underscore_lock.rs
let_underscore_lock.stderr
let_underscore_must_use.rs Test for ignoring let_underscore_must_use 2020-04-02 00:44:09 +05:30
let_underscore_must_use.stderr
let_unit.fixed
let_unit.rs
let_unit.stderr
lint_without_lint_pass.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
lint_without_lint_pass.stderr
literals.rs
literals.stderr
logic_bug.rs
logic_bug.stderr
lossy_float_literal.fixed
lossy_float_literal.rs
lossy_float_literal.stderr
macro_use_imports.rs
macro_use_imports.stderr
manual_memcpy.rs Add missing tests 2020-04-30 17:32:37 +12:00
manual_memcpy.stderr Add missing tests 2020-04-30 17:32:37 +12:00
manual_saturating_arithmetic.fixed
manual_saturating_arithmetic.rs
manual_saturating_arithmetic.stderr
many_single_char_names.rs
many_single_char_names.stderr
map_clone.fixed map_clone: avoid suggesting copied() for &mut 2020-04-25 22:52:19 +02:00
map_clone.rs map_clone: avoid suggesting copied() for &mut 2020-04-25 22:52:19 +02:00
map_clone.stderr map_clone: avoid suggesting copied() for &mut 2020-04-25 22:52:19 +02:00
map_flatten.fixed Add test to map_flatten with an Option 2020-04-16 08:00:32 +02:00
map_flatten.rs Add test to map_flatten with an Option 2020-04-16 08:00:32 +02:00
map_flatten.stderr Add test to map_flatten with an Option 2020-04-16 08:00:32 +02:00
map_unit_fn.rs
match_as_ref.fixed
match_as_ref.rs
match_as_ref.stderr
match_bool.rs Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
match_bool.stderr Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
match_on_vec_items.rs Small lint update 2020-04-26 18:00:51 +03:00
match_on_vec_items.stderr Small lint update 2020-04-26 18:00:51 +03:00
match_overlapping_arm.rs
match_overlapping_arm.stderr
match_ref_pats.rs
match_ref_pats.stderr
match_same_arms2.rs
match_same_arms2.stderr
match_same_arms.rs
match_same_arms.stderr
match_single_binding.fixed Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
match_single_binding.rs Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
match_single_binding.stderr Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
match_wild_err_arm.rs
match_wild_err_arm.stderr
mem_discriminant_unfixable.rs
mem_discriminant_unfixable.stderr
mem_discriminant.fixed
mem_discriminant.rs
mem_discriminant.stderr
mem_forget.rs
mem_forget.stderr
mem_replace_macro.rs
mem_replace_macro.stderr
mem_replace.fixed
mem_replace.rs
mem_replace.stderr
methods.rs Check fn header along with decl when suggesting to implement trait 2020-04-08 21:24:20 +05:30
methods.stderr Check fn header along with decl when suggesting to implement trait 2020-04-08 21:24:20 +05:30
min_max.rs
min_max.stderr
mismatched_target_os_non_unix.fixed Split tests in unix/non-unix 2020-04-26 21:27:29 +02:00
mismatched_target_os_non_unix.rs Split tests in unix/non-unix 2020-04-26 21:27:29 +02:00
mismatched_target_os_non_unix.stderr Split tests in unix/non-unix 2020-04-26 21:27:29 +02:00
mismatched_target_os_unix.fixed Split tests in unix/non-unix 2020-04-26 21:27:29 +02:00
mismatched_target_os_unix.rs Split tests in unix/non-unix 2020-04-26 21:27:29 +02:00
mismatched_target_os_unix.stderr Split tests in unix/non-unix 2020-04-26 21:27:29 +02:00
missing_inline.rs
missing_inline.stderr
missing-doc-crate-missing.rs
missing-doc-crate-missing.stderr
missing-doc-crate.rs
missing-doc-crate.stderr
missing-doc-impl.rs
missing-doc-impl.stderr
missing-doc.rs
missing-doc.stderr
mistyped_literal_suffix.fixed
mistyped_literal_suffix.rs
mistyped_literal_suffix.stderr
module_inception.rs
module_inception.stderr
module_name_repetitions.rs
module_name_repetitions.stderr
modulo_arithmetic_float.rs
modulo_arithmetic_float.stderr
modulo_arithmetic_integral_const.rs
modulo_arithmetic_integral_const.stderr
modulo_arithmetic_integral.rs
modulo_arithmetic_integral.stderr
modulo_one.rs
modulo_one.stderr
must_use_candidates.fixed useless Rc<Rc<T>>, Rc<Box<T>>, Rc<&T>, Box<&T> 2020-04-02 00:02:25 +02:00
must_use_candidates.rs useless Rc<Rc<T>>, Rc<Box<T>>, Rc<&T>, Box<&T> 2020-04-02 00:02:25 +02:00
must_use_candidates.stderr
must_use_unit.fixed
must_use_unit.rs
must_use_unit.stderr
mut_from_ref.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
mut_from_ref.stderr
mut_key.rs Downgrade implicit_hasher to pedantic 2020-04-08 08:43:20 -07:00
mut_key.stderr Downgrade implicit_hasher to pedantic 2020-04-08 08:43:20 -07:00
mut_mut.rs
mut_mut.stderr
mut_range_bound.rs
mut_range_bound.stderr
mut_reference.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
mut_reference.stderr
mutex_atomic.rs
mutex_atomic.stderr
needless_borrow.fixed Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
needless_borrow.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
needless_borrow.stderr Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
needless_borrowed_ref.fixed
needless_borrowed_ref.rs
needless_borrowed_ref.stderr
needless_collect.fixed
needless_collect.rs
needless_collect.stderr
needless_continue.rs
needless_continue.stderr
needless_doc_main.rs
needless_doc_main.stderr
needless_lifetimes.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
needless_lifetimes.stderr
needless_pass_by_value_proc_macro.rs
needless_pass_by_value.rs
needless_pass_by_value.stderr
needless_range_loop2.rs
needless_range_loop2.stderr
needless_range_loop.rs
needless_range_loop.stderr
needless_return.fixed Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
needless_return.rs Downgrade match_bool to pedantic 2020-04-23 16:30:06 -07:00
needless_return.stderr
needless_update.rs
needless_update.stderr
neg_cmp_op_on_partial_ord.rs
neg_cmp_op_on_partial_ord.stderr
neg_multiply.rs
neg_multiply.stderr
never_loop.rs
never_loop.stderr
new_ret_no_self.rs Add lifetime test case for new_ret_no_self 2020-04-25 10:43:41 +02:00
new_ret_no_self.stderr
new_without_default.rs
new_without_default.stderr
no_effect.rs
no_effect.stderr
non_expressive_names.rs
non_expressive_names.stderr
non_expressive_names.stdout
nonminimal_bool_methods.rs
nonminimal_bool_methods.stderr
nonminimal_bool.rs
nonminimal_bool.stderr
ok_expect.rs
ok_expect.stderr
op_ref.rs
op_ref.stderr
open_options.rs
open_options.stderr
option_and_then_some.fixed
option_and_then_some.rs
option_and_then_some.stderr
option_as_ref_deref.fixed Lint on opt.as_ref().map(|x| &**x). 2020-04-06 22:53:59 +08:00
option_as_ref_deref.rs Lint on opt.as_ref().map(|x| &**x). 2020-04-06 22:53:59 +08:00
option_as_ref_deref.stderr Refine lint message. 2020-04-07 21:25:07 +08:00
option_env_unwrap.rs
option_env_unwrap.stderr
option_map_or_none.fixed
option_map_or_none.rs
option_map_or_none.stderr
option_map_unit_fn_fixable.fixed
option_map_unit_fn_fixable.rs
option_map_unit_fn_fixable.stderr
option_map_unit_fn_unfixable.rs
option_map_unit_fn_unfixable.stderr
option_map_unwrap_or.rs
option_map_unwrap_or.stderr
option_option.rs Update option_option ui test 2020-04-01 12:15:39 -07:00
option_option.stderr Update option_option ui test 2020-04-01 12:15:39 -07:00
or_fun_call.fixed Rustup to rust-lang/rust#70632 2020-04-01 20:14:05 +02:00
or_fun_call.rs Rustup to rust-lang/rust#70632 2020-04-01 20:14:05 +02:00
or_fun_call.stderr Rustup to rust-lang/rust#70632 2020-04-01 20:14:05 +02:00
outer_expn_data.fixed rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
outer_expn_data.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
outer_expn_data.stderr
overflow_check_conditional.rs
overflow_check_conditional.stderr
panic.rs
panic.stderr
panicking_macros.rs
panicking_macros.stderr
partialeq_ne_impl.rs
partialeq_ne_impl.stderr
path_buf_push_overwrite.fixed
path_buf_push_overwrite.rs
path_buf_push_overwrite.stderr
patterns.fixed
patterns.rs
patterns.stderr
precedence.fixed Fix issue #4892. 2020-04-17 09:27:54 +02:00
precedence.rs Fix issue #4892. 2020-04-17 09:27:54 +02:00
precedence.stderr
print_literal.rs
print_literal.stderr
print_with_newline.rs
print_with_newline.stderr
print.rs
print.stderr
println_empty_string.fixed
println_empty_string.rs
println_empty_string.stderr
proc_macro.rs
proc_macro.stderr
ptr_arg.rs
ptr_arg.stderr
ptr_offset_with_cast.fixed
ptr_offset_with_cast.rs
ptr_offset_with_cast.stderr
question_mark.fixed question_mark: don't add as_ref() for a call expression 2020-04-17 13:09:02 +09:00
question_mark.rs question_mark: don't add as_ref() for a call expression 2020-04-17 13:09:02 +09:00
question_mark.stderr question_mark: don't add as_ref() for a call expression 2020-04-17 13:09:02 +09:00
range_plus_minus_one.fixed
range_plus_minus_one.rs
range_plus_minus_one.stderr
range.rs
range.stderr
redundant_allocation.fixed useless Rc<Rc<T>>, Rc<Box<T>>, Rc<&T>, Box<&T> 2020-04-02 00:02:25 +02:00
redundant_allocation.rs useless Rc<Rc<T>>, Rc<Box<T>>, Rc<&T>, Box<&T> 2020-04-02 00:02:25 +02:00
redundant_allocation.stderr useless Rc<Rc<T>>, Rc<Box<T>>, Rc<&T>, Box<&T> 2020-04-02 00:02:25 +02:00
redundant_clone.fixed Fixes #5405: redundant clone false positive with arrays 2020-04-13 11:43:42 +05:30
redundant_clone.rs Fixes #5405: redundant clone false positive with arrays 2020-04-13 11:43:42 +05:30
redundant_clone.stderr Fixes #5405: redundant clone false positive with arrays 2020-04-13 11:43:42 +05:30
redundant_closure_call_fixable.fixed
redundant_closure_call_fixable.rs
redundant_closure_call_fixable.stderr
redundant_closure_call.rs
redundant_closure_call.stderr
redundant_field_names.fixed
redundant_field_names.rs
redundant_field_names.stderr
redundant_pattern_matching.fixed fix redundant_pattern_matching lint 2020-04-25 23:51:30 +03:00
redundant_pattern_matching.rs fix redundant_pattern_matching lint 2020-04-25 23:51:30 +03:00
redundant_pattern_matching.stderr fix redundant_pattern_matching lint 2020-04-25 23:51:30 +03:00
redundant_pub_crate.fixed Update for PR feedback 2020-03-20 22:52:53 +00:00
redundant_pub_crate.rs Update for PR feedback 2020-03-20 22:52:53 +00:00
redundant_pub_crate.stderr Update for PR feedback 2020-03-20 22:52:53 +00:00
redundant_static_lifetimes_multiple.rs
redundant_static_lifetimes_multiple.stderr
redundant_static_lifetimes.fixed
redundant_static_lifetimes.rs
redundant_static_lifetimes.stderr
regex.rs
regex.stderr
rename.fixed Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
rename.rs Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
rename.stderr Move cognitive_complexity to nursery 2020-04-08 08:37:20 -07:00
renamed_builtin_attr.fixed
renamed_builtin_attr.rs
renamed_builtin_attr.stderr
repl_uninit.rs
repl_uninit.stderr
rest_pat_in_fully_bound_structs.rs Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
rest_pat_in_fully_bound_structs.stderr Do not lint in macros for match lints 2020-04-16 14:57:12 +02:00
result_map_or_into_option.fixed result_map_or_into_option: add opt.map_or(None, |_| Some(y)) test 2020-04-04 14:16:26 -07:00
result_map_or_into_option.rs result_map_or_into_option: add opt.map_or(None, |_| Some(y)) test 2020-04-04 14:16:26 -07:00
result_map_or_into_option.stderr result_map_or_into_option: add lint to catch manually adpating Result -> Option 2020-04-04 03:17:13 -07:00
result_map_unit_fn_fixable.fixed
result_map_unit_fn_fixable.rs
result_map_unit_fn_fixable.stderr
result_map_unit_fn_unfixable.rs result_map_unit_fn: Fix incorrect UI tests 2020-04-13 15:26:53 +02:00
result_map_unit_fn_unfixable.stderr result_map_unit_fn: Fix incorrect UI tests 2020-04-13 15:26:53 +02:00
result_map_unwrap_or_else.rs
result_map_unwrap_or_else.stderr
same_functions_in_if_condition.rs
same_functions_in_if_condition.stderr
serde.rs
serde.stderr
shadow.rs
shadow.stderr
short_circuit_statement.fixed
short_circuit_statement.rs
short_circuit_statement.stderr
similar_names.rs
similar_names.stderr
single_char_pattern.fixed
single_char_pattern.rs
single_char_pattern.stderr
single_component_path_imports.fixed
single_component_path_imports.rs
single_component_path_imports.stderr
single_match_else.rs Added test for single_match_else in macro 2020-03-31 15:49:49 +05:30
single_match_else.stderr
single_match.rs Small formatting change 2020-03-31 16:13:51 +05:30
single_match.stderr
skip_while_next.rs
skip_while_next.stderr
slow_vector_initialization.rs
slow_vector_initialization.stderr
starts_ends_with.fixed
starts_ends_with.rs
starts_ends_with.stderr
string_add_assign.fixed
string_add_assign.rs
string_add_assign.stderr
string_add.rs
string_add.stderr
string_extend.fixed
string_extend.rs
string_extend.stderr
string_lit_as_bytes.fixed
string_lit_as_bytes.rs
string_lit_as_bytes.stderr
struct_excessive_bools.rs
struct_excessive_bools.stderr
suspicious_arithmetic_impl.rs Include OpAssign in suspicious_op_assign_impl 2020-04-05 22:25:51 +02:00
suspicious_arithmetic_impl.stderr Include OpAssign in suspicious_op_assign_impl 2020-04-05 22:25:51 +02:00
suspicious_map.rs
suspicious_map.stderr
suspicious_unary_op_formatting.rs
suspicious_unary_op_formatting.stderr
swap.fixed
swap.rs
swap.stderr
tabs_in_doc_comments.fixed
tabs_in_doc_comments.rs
tabs_in_doc_comments.stderr
temporary_assignment.rs
temporary_assignment.stderr
to_digit_is_some.fixed
to_digit_is_some.rs
to_digit_is_some.stderr
toplevel_ref_arg_non_rustfix.rs
toplevel_ref_arg_non_rustfix.stderr
toplevel_ref_arg.fixed Don't trigger toplevel_ref_arg for for loops 2020-04-19 22:56:47 +09:00
toplevel_ref_arg.rs Don't trigger toplevel_ref_arg for for loops 2020-04-19 22:56:47 +09:00
toplevel_ref_arg.stderr
trailing_zeros.rs
trailing_zeros.stderr
transmute_32bit.rs
transmute_32bit.stderr
transmute_64bit.rs
transmute_64bit.stderr
transmute_collection.rs
transmute_collection.stderr
transmute_float_to_int.rs
transmute_float_to_int.stderr
transmute_ptr_to_ptr.rs
transmute_ptr_to_ptr.stderr Move useless_transmute to nursery 2020-03-23 20:32:04 +01:00
transmute_ptr_to_ref.rs
transmute_ptr_to_ref.stderr
transmute.rs
transmute.stderr
transmuting_null.rs
transmuting_null.stderr
trivially_copy_pass_by_ref.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
trivially_copy_pass_by_ref.stderr Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
try_err.fixed
try_err.rs
try_err.stderr
ty_fn_sig.rs
type_repetition_in_bounds.rs
type_repetition_in_bounds.stderr
types.fixed
types.rs
types.stderr
unicode.rs
unicode.stderr
uninit.rs Downgrade let_unit_value to pedantic 2020-04-02 18:31:31 -07:00
uninit.stderr Downgrade let_unit_value to pedantic 2020-04-02 18:31:31 -07:00
unit_arg.fixed Rustup to rust-lang/rust#70081 2020-04-01 20:12:36 +02:00
unit_arg.rs Rustup to rust-lang/rust#70081 2020-04-01 20:12:36 +02:00
unit_arg.stderr
unit_cmp.rs
unit_cmp.stderr
unknown_attribute.rs
unknown_attribute.stderr
unknown_clippy_lints.fixed
unknown_clippy_lints.rs
unknown_clippy_lints.stderr
unnecessary_cast_fixable.fixed
unnecessary_cast_fixable.rs
unnecessary_cast_fixable.stderr
unnecessary_cast.rs
unnecessary_cast.stderr
unnecessary_clone.rs Fixed incorrect suggestion of clone_double_ref lint 2020-04-29 22:40:57 +03:00
unnecessary_clone.stderr Fixed incorrect suggestion of clone_double_ref lint 2020-04-29 22:40:57 +03:00
unnecessary_filter_map.rs
unnecessary_filter_map.stderr
unnecessary_flat_map.fixed
unnecessary_flat_map.rs
unnecessary_flat_map.stderr
unnecessary_fold.fixed
unnecessary_fold.rs
unnecessary_fold.stderr
unnecessary_operation.fixed
unnecessary_operation.rs
unnecessary_operation.stderr
unnecessary_ref.fixed
unnecessary_ref.rs
unnecessary_ref.stderr
unneeded_field_pattern.rs
unneeded_field_pattern.stderr
unneeded_wildcard_pattern.fixed
unneeded_wildcard_pattern.rs
unneeded_wildcard_pattern.stderr
unreadable_literal.fixed
unreadable_literal.rs
unreadable_literal.stderr
unsafe_derive_deserialize.rs Implement unsafe_derive_deserialize lint 2020-04-19 23:26:17 +02:00
unsafe_derive_deserialize.stderr Implement unsafe_derive_deserialize lint 2020-04-19 23:26:17 +02:00
unsafe_removed_from_name.rs
unsafe_removed_from_name.stderr
unseparated_prefix_literals.fixed
unseparated_prefix_literals.rs
unseparated_prefix_literals.stderr
unused_io_amount.rs
unused_io_amount.stderr
unused_self.rs unused_self false positive 2020-03-29 22:22:36 +02:00
unused_self.stderr
unused_unit.fixed
unused_unit.rs
unused_unit.stderr
unwrap_or.rs
unwrap_or.stderr
unwrap.rs
unwrap.stderr
update-all-references.sh
update-references.sh
use_self_trait.fixed
use_self_trait.rs
use_self_trait.stderr
use_self.fixed
use_self.rs
use_self.stderr
used_underscore_binding.rs Test that we lint the awaited expression 2020-04-27 21:29:31 +02:00
used_underscore_binding.stderr Test that we lint the awaited expression 2020-04-27 21:29:31 +02:00
useful_asref.rs
useless_asref.fixed Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
useless_asref.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
useless_asref.stderr Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
useless_attribute.fixed rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
useless_attribute.rs rustup https://github.com/rust-lang/rust/pull/70536 2020-03-30 11:17:58 +02:00
useless_attribute.stderr
vec_box_sized.fixed
vec_box_sized.rs
vec_box_sized.stderr
vec.fixed
vec.rs
vec.stderr
verbose_file_reads.rs
verbose_file_reads.stderr
vtable_address_comparisons.rs Lint unnamed address comparisons 2020-03-30 21:42:16 +02:00
vtable_address_comparisons.stderr Lint unnamed address comparisons 2020-03-30 21:42:16 +02:00
while_let_loop.rs
while_let_loop.stderr
while_let_on_iterator.fixed Add tests for #1654 2020-04-25 20:51:23 +02:00
while_let_on_iterator.rs Add tests for #1654 2020-04-25 20:51:23 +02:00
while_let_on_iterator.stderr Add tests for #1654 2020-04-25 20:51:23 +02:00
wild_in_or_pats.rs
wild_in_or_pats.stderr
wildcard_enum_match_arm.fixed
wildcard_enum_match_arm.rs
wildcard_enum_match_arm.stderr
wildcard_imports.fixed move redundant_pub_crate to nursery 2020-03-25 18:14:11 +01:00
wildcard_imports.rs move redundant_pub_crate to nursery 2020-03-25 18:14:11 +01:00
wildcard_imports.stderr nursery group -> style 2020-03-23 16:45:31 +00:00
write_literal.rs
write_literal.stderr
write_with_newline.rs
write_with_newline.stderr
writeln_empty_string.fixed
writeln_empty_string.rs
writeln_empty_string.stderr
wrong_self_convention.rs Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
wrong_self_convention.stderr
zero_div_zero.rs
zero_div_zero.stderr Use assoc const NAN for zero_div_zero lint 2020-04-08 00:43:27 +02:00
zero_offset.rs
zero_offset.stderr
zero_ptr.fixed
zero_ptr.rs
zero_ptr.stderr