rust/clippy_lints/src
Yuki Okushi 299ff49667 Rollup merge of #81277 - flip1995:from_diag_items, r=matthewjasper
Make more traits of the From/Into family diagnostic items

Following traits are now diagnostic items:
- `From` (unchanged)
- `Into`
- `TryFrom`
- `TryInto`

This also adds symbols for those items:
- `into_trait`
- `try_from_trait`
- `try_into_trait`

Related: https://github.com/rust-lang/rust-clippy/pull/6620#discussion_r562482587
2021-01-28 15:09:08 +09:00
..
methods Rollup merge of #81038 - flip1995:clippyup, r=Manishearth 2021-01-18 21:53:22 +10:00
utils Rollup merge of #81277 - flip1995:from_diag_items, r=matthewjasper 2021-01-28 15:09:08 +09:00
approx_const.rs
arithmetic.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
as_conversions.rs
asm_syntax.rs Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup 2020-10-09 12:45:29 +02:00
assertions_on_constants.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
assign_ops.rs
async_yields_async.rs
atomic_ordering.rs
attrs.rs Rollup merge of #81038 - flip1995:clippyup, r=Manishearth 2021-01-18 21:53:22 +10:00
await_holding_invalid.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
bit_mask.rs
blacklisted_name.rs
blocks_in_if_conditions.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
booleans.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
bytecount.rs Use ty::{IntTy,UintTy,FloatTy} in rustdoc and clippy 2021-01-18 21:10:36 +01:00
cargo_common_metadata.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00
checked_conversions.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
cognitive_complexity.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
collapsible_if.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
collapsible_match.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
comparison_chain.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
consts.rs Use ty::{IntTy,UintTy,FloatTy} in rustdoc and clippy 2021-01-18 21:10:36 +01:00
copies.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
copy_iterator.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
create_dir.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
dbg_macro.rs
default.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
deprecated_lints.rs Deprecate unknown_clippy_lints 2021-01-16 19:44:46 +01:00
dereference.rs
derive.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
disallowed_method.rs Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup 2020-10-09 12:45:29 +02:00
doc.rs Force token collection to run when parsing nonterminals 2021-01-20 18:09:32 -05:00
double_comparison.rs
double_parens.rs
drop_forget_ref.rs
duration_subsec.rs
else_if_without_else.rs
empty_enum.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
entry.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
enum_clike.rs Use ty::{IntTy,UintTy,FloatTy} in rustdoc and clippy 2021-01-18 21:10:36 +01:00
enum_variants.rs
eq_op.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
erasing_op.rs
escape.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
eta_reduction.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
eval_order_dependence.rs clippy: fold by value 2020-11-16 22:42:09 +01:00
excessive_bools.rs
exit.rs
explicit_write.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
fallible_impl_from.rs Make more traits of the From/Into family diagnostic items 2021-01-22 18:07:00 +01:00
float_equality_without_abs.rs Merge commit '645ef505da378b6f810b1567806d1bcc2856395f' into clippyup 2020-10-28 23:36:07 +01:00
float_literal.rs Use ty::{IntTy,UintTy,FloatTy} in rustdoc and clippy 2021-01-18 21:10:36 +01:00
floating_point_arithmetic.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
format.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
formatting.rs
from_over_into.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
functions.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
future_not_send.rs Review changes 2021-01-16 18:56:37 -05:00
get_last_with_len.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
identity_op.rs
if_let_mutex.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
if_let_some_result.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
if_not_else.rs
implicit_return.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
implicit_saturating_sub.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
indexing_slicing.rs
infinite_iter.rs
inherent_impl.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
inherent_to_string.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
inline_fn_without_body.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
int_plus_one.rs
integer_division.rs
items_after_statements.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
large_const_arrays.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
large_enum_variant.rs Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup 2021-01-02 16:29:43 +01:00
large_stack_arrays.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
len_zero.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
let_if_seq.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
let_underscore.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00
lib.rs Rollup merge of #81038 - flip1995:clippyup, r=Manishearth 2021-01-18 21:53:22 +10:00
lifetimes.rs Rename kw::Invalid -> kw::Empty 2020-12-30 09:50:02 -05:00
literal_representation.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
loops.rs Add loop head span to hir 2021-01-21 21:41:46 -08:00
macro_use.rs Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup 2021-01-02 16:29:43 +01:00
main_recursion.rs
manual_async_fn.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
manual_non_exhaustive.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
manual_ok_or.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
manual_strip.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
manual_unwrap_or.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
map_clone.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
map_err_ignore.rs Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup 2021-01-02 16:29:43 +01:00
map_identity.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
map_unit_fn.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
match_on_vec_items.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
matches.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
mem_discriminant.rs
mem_forget.rs
mem_replace.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
minmax.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
misc_early.rs Merge commit '645ef505da378b6f810b1567806d1bcc2856395f' into clippyup 2020-10-28 23:36:07 +01:00
misc.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
missing_const_for_fn.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
missing_doc.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
missing_inline.rs Remove ForeignMod struct. 2020-11-26 21:32:27 +01:00
modulo_arithmetic.rs
multiple_crate_versions.rs
mut_key.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00
mut_mut.rs
mut_mutex_lock.rs Merge commit '645ef505da378b6f810b1567806d1bcc2856395f' into clippyup 2020-10-28 23:36:07 +01:00
mut_reference.rs
mutable_debug_assertion.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
mutex_atomic.rs Use ty::{IntTy,UintTy,FloatTy} in rustdoc and clippy 2021-01-18 21:10:36 +01:00
needless_arbitrary_self_type.rs Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup 2020-10-09 12:45:29 +02:00
needless_bool.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
needless_borrow.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
needless_borrowed_ref.rs
needless_continue.rs Fix clippy and comment 2021-01-21 21:43:28 -08:00
needless_pass_by_value.rs Rollup merge of #81038 - flip1995:clippyup, r=Manishearth 2021-01-18 21:53:22 +10:00
needless_question_mark.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
needless_update.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
neg_cmp_op_on_partial_ord.rs
neg_multiply.rs
new_without_default.rs Separate out a hir::Impl struct 2021-01-12 20:32:33 -05:00
no_effect.rs
non_copy_const.rs Separate out a hir::Impl struct 2021-01-12 20:32:33 -05:00
non_expressive_names.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
open_options.rs
option_env_unwrap.rs
option_if_let_else.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
overflow_check_conditional.rs
panic_in_result_fn.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
panic_unimplemented.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
partialeq_ne_impl.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
pass_by_ref_or_value.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
path_buf_push_overwrite.rs
pattern_type_mismatch.rs
precedence.rs
ptr_eq.rs Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup 2020-10-23 22:16:59 +02:00
ptr_offset_with_cast.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
ptr.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
question_mark.rs Reintroduce hir::ExprKind::If 2021-01-07 18:54:12 -03:00
ranges.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
redundant_clone.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
redundant_closure_call.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
redundant_else.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
redundant_field_names.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
redundant_pub_crate.rs
redundant_static_lifetimes.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
ref_option_ref.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
reference.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00
regex.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00
repeat_once.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
returns.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
self_assignment.rs
serde_api.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
shadow.rs Add loop head span to hir 2021-01-21 21:41:46 -08:00
single_component_path_imports.rs Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup 2021-01-02 16:29:43 +01:00
size_of_in_element_count.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
slow_vector_initialization.rs
stable_sort_primitive.rs
strings.rs Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup 2020-12-20 17:19:49 +01:00
suspicious_operation_groupings.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
suspicious_trait_impl.rs
swap.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
tabs_in_doc_comments.rs
temporary_assignment.rs
to_digit_is_some.rs
to_string_in_display.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
trait_bounds.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
transmute.rs Use ty::{IntTy,UintTy,FloatTy} in rustdoc and clippy 2021-01-18 21:10:36 +01:00
transmuting_null.rs Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
try_err.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00
types.rs Use ty::{IntTy,UintTy,FloatTy} in rustdoc and clippy 2021-01-18 21:10:36 +01:00
undropped_manually_drops.rs Merge commit '645ef505da378b6f810b1567806d1bcc2856395f' into clippyup 2020-10-28 23:36:07 +01:00
unicode.rs Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup 2020-10-09 12:45:29 +02:00
unit_return_expecting_ord.rs Review changes 2021-01-16 18:56:37 -05:00
unnamed_address.rs
unnecessary_sort_by.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
unnecessary_wraps.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
unnested_or_patterns.rs
unsafe_removed_from_name.rs
unused_io_amount.rs
unused_self.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
unused_unit.rs Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup 2021-01-02 16:29:43 +01:00
unwrap_in_result.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
unwrap.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
use_self.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
useless_conversion.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
vec_init_then_push.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
vec_resize_to_zero.rs
vec.rs
verbose_file_reads.rs
wildcard_dependencies.rs
wildcard_imports.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
write.rs Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup 2021-01-15 10:56:44 +01:00
zero_div_zero.rs
zero_sized_map_values.rs Separate out a hir::Impl struct 2021-01-12 20:32:33 -05:00