rust-clippy/tests/ui
Oliver Schneider 27aa309b3d Merge pull request #1556 from sinkuu/take_by_value
Lint needless take-by-value
2017-02-21 13:07:25 +01:00
..
absurd-extreme-comparisons.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
absurd-extreme-comparisons.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
approx_const.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
approx_const.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
arithmetic.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
arithmetic.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
array_indexing.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
array_indexing.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
assign_ops.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
assign_ops.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
assign_ops2.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
assign_ops2.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
attrs.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
attrs.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
bit_masks.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
bit_masks.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
blacklisted_name.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
blacklisted_name.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
block_in_if_condition.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
block_in_if_condition.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
bool_comparison.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
bool_comparison.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
booleans.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
booleans.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
box_vec.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
box_vec.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
builtin-type-shadow.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
builtin-type-shadow.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
cast.rs Suppress lint for unsuffixed number casts 2017-02-16 22:55:41 +08:00
cast.stderr Suppress lint for unsuffixed number casts 2017-02-16 22:55:41 +08:00
char_lit_as_u8.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
char_lit_as_u8.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
cmp_nan.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
cmp_nan.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
cmp_null.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
cmp_null.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
cmp_owned.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
cmp_owned.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
collapsible_if.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
collapsible_if.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
complex_types.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
complex_types.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
conf_bad_arg.rs rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
conf_bad_arg.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
conf_french_blacklisted_name.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
conf_french_blacklisted_name.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
conf_path_non_string.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
conf_path_non_string.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
conf_unknown_key.rs rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
conf_unknown_key.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
copies.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
copies.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
cyclomatic_complexity.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
cyclomatic_complexity.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
cyclomatic_complexity_attr_used.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
cyclomatic_complexity_attr_used.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
derive.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
derive.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
diverging_sub_expression.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
diverging_sub_expression.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
dlist.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
dlist.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
doc.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
doc.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
double_neg.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
double_neg.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
double_parens.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
double_parens.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
drop_forget_ref.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
drop_forget_ref.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
duplicate_underscore_argument.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
duplicate_underscore_argument.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
empty_enum.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
empty_enum.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
entry.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
entry.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
enum_glob_use.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
enum_glob_use.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
enum_variants.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
enum_variants.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
enums_clike.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
enums_clike.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
eq_op.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
eq_op.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
escape_analysis.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
escape_analysis.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
eta.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
eta.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
eval_order_dependence.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
eval_order_dependence.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
filter_methods.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
filter_methods.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
float_cmp.rs Add should_assert_eq lint (fixes #641) 2017-02-18 10:13:56 +09:00
float_cmp.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
for_loop.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
for_loop.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
format.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
format.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
formatting.rs typos: coma -> comma 2017-02-16 11:23:28 -05:00
formatting.stderr typos: coma -> comma 2017-02-16 11:23:28 -05:00
functions.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
functions.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
identity_op.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
identity_op.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
if_let_redundant_pattern_matching.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
if_let_redundant_pattern_matching.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
if_not_else.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
if_not_else.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
invalid_upcast_comparisons.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
invalid_upcast_comparisons.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
item_after_statement.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
item_after_statement.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
large_enum_variant.rs Update large_enum_variant test 2017-02-10 21:04:19 -07:00
large_enum_variant.stderr Update large_enum_variant test 2017-02-10 21:04:19 -07:00
len_zero.rs Fix typo 2017-02-19 15:39:40 +00:00
len_zero.stderr Add test that adding allow attribute on impl block containing len silences len_without_is_empty. Add extra impl block to PubOne to check that this doesn't get flagged@ 2017-02-19 15:36:17 +00:00
let_if_seq.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
let_if_seq.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
let_return.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
let_return.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
let_unit.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
let_unit.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
lifetimes.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
lifetimes.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
lint_pass.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
lint_pass.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
literals.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
literals.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
map_clone.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
map_clone.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
matches.rs Lint on panic! only 2017-02-11 21:42:42 +08:00
matches.stderr Lint on panic! only 2017-02-11 21:42:42 +08:00
mem_forget.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
mem_forget.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
methods.rs update via comments 2017-02-12 20:40:38 +08:00
methods.stderr update ui tests 2017-02-13 11:57:14 +01:00
min_max.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
min_max.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
missing-doc.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
missing-doc.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
module_inception.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
module_inception.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
modulo_one.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
modulo_one.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
mut_from_ref.rs fixed multi-span test 2017-02-12 15:10:25 +01:00
mut_from_ref.stderr fixed multi-span test 2017-02-12 15:10:25 +01:00
mut_mut.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
mut_mut.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
mut_reference.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
mut_reference.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
mutex_atomic.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
mutex_atomic.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
needless_bool.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
needless_bool.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
needless_borrow.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
needless_borrow.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
needless_pass_by_value.rs Use multispan_sugg 2017-02-21 18:44:31 +09:00
needless_pass_by_value.stderr Integrate suggestion spans 2017-02-21 19:03:50 +09:00
needless_return.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
needless_return.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
needless_update.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
needless_update.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
neg_multiply.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
neg_multiply.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
never_loop.rs New never loop lint 2017-02-17 04:53:14 +01:00
never_loop.stderr New never loop lint 2017-02-17 04:53:14 +01:00
new_without_default.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
new_without_default.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
no_effect.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
no_effect.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
non_expressive_names.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
non_expressive_names.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
ok_if_let.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
ok_if_let.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
open_options.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
open_options.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
overflow_check_conditional.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
overflow_check_conditional.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
panic.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
panic.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
partialeq_ne_impl.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
partialeq_ne_impl.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
patterns.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
patterns.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
precedence.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
precedence.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
print.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
print.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
print_with_newline.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
print_with_newline.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
ptr_arg.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
ptr_arg.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
range.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
range.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
redundant_closure_call.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
redundant_closure_call.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
reference.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
reference.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
regex.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
regex.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
serde.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
serde.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
shadow.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
shadow.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
short_circuit_statement.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
short_circuit_statement.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
should_assert_eq.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
should_assert_eq.stderr Lint needless take-by-value 2017-02-19 07:59:44 +09:00
strings.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
strings.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
stutter.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
stutter.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
swap.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
swap.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
temporary_assignment.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
temporary_assignment.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
toplevel_ref_arg.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
toplevel_ref_arg.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
transmute.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
transmute.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
transmute_32bit.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
transmute_64bit.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
transmute_64bit.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
unicode.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
unicode.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
unit_cmp.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
unit_cmp.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
unneeded_field_pattern.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
unneeded_field_pattern.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
unsafe_removed_from_name.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
unsafe_removed_from_name.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
unused_io_amount.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
unused_io_amount.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
unused_labels.rs New never loop lint 2017-02-17 04:53:14 +01:00
unused_labels.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
unused_lt.rs Rename lint to needless_take_by_value 2017-02-20 16:02:48 +09:00
unused_lt.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
update-all-references.sh rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
update-references.sh rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
used_underscore_binding.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
used_underscore_binding.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
useless_attribute.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
useless_attribute.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
vec.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
vec.stderr rustup and compile-fail -> ui test move 2017-02-07 21:05:30 +01:00
while_loop.rs New never loop lint 2017-02-17 04:53:14 +01:00
while_loop.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
wrong_macro_span.rs_ remove all //~ from tests 2017-02-08 14:58:07 +01:00
wrong_self_convention.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
wrong_self_convention.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00
zero_div_zero.rs remove all //~ from tests 2017-02-08 14:58:07 +01:00
zero_div_zero.stderr remove all //~ from tests 2017-02-08 14:58:07 +01:00