rust/clippy_lints/src
bors 95cd5284d4 Auto merge of #108340 - eggyal:remove_traversal_trait_aliases, r=oli-obk
Remove type-traversal trait aliases

#107924 moved the type traversal (folding and visiting) traits into the type library, but created trait aliases in `rustc_middle` to minimise both the API churn for trait consumers and the arising boilerplate.  As mentioned in that PR, an alternative approach of defining subtraits with blanket implementations of the respective supertraits was also considered at that time but was ruled out as not adding much value.

Unfortunately, it has since emerged that rust-analyzer has difficulty with these trait aliases at present, resulting in a degraded contributor experience (see the recent [r-a has become useless](https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/r-a.20has.20become.20useless) topic on the #t-compiler/help Zulip stream).

This PR removes the trait aliases, and accordingly the underlying type library traits are now used directly; they are parameterised by `TyCtxt<'tcx>` rather than just the `'tcx` lifetime, and imports have been updated to reflect the fact that the trait aliases' explicitly named traits are no longer automatically brought into scope.  These changes also roll-back the (no-longer required) workarounds to #107747 that were made in b409329c62.

Since this PR is just a find+replace together with the changes necessary for compilation & tidy to pass, it's currently just one mega-commit.  Let me know if you'd like it broken up.

r? `@oli-obk`
2023-02-22 18:26:51 +00:00
..
cargo Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
casts remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
functions remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
loops s/eval_usize/eval_target_usize/ for clarity 2023-02-14 08:51:19 +00:00
matches remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
methods Replace mk_foo calls with infer_foo where possible. 2023-02-17 22:24:31 +11:00
misc_early Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
operators Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
transmute Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
types Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
unit_types change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata 2023-01-26 20:28:25 -07:00
utils remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
almost_complete_range.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
approx_const.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
as_conversions.rs Merge commit '3c7e7dbc15' into clippyup 2022-07-28 19:08:22 +02:00
asm_syntax.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
assertions_on_constants.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
assertions_on_result_states.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
async_yields_async.rs Merge commit 'b52fb5234c' into clippyup 2022-09-09 13:36:26 +02:00
attrs.rs Feed the features_query instead of grabbing it from the session lazily 2023-01-12 17:14:17 +00:00
await_holding_invalid.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
blocks_in_if_conditions.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
bool_assert_comparison.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
bool_to_int_with_if.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
booleans.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
borrow_deref_ref.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
box_default.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
checked_conversions.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
cognitive_complexity.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
collapsible_if.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
comparison_chain.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
copies.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
copy_iterator.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
crate_in_macro_def.rs Split MacArgs in two. 2022-11-22 09:04:15 +11:00
create_dir.rs Merge commit '2b2190cb56' into clippyup 2022-08-11 19:42:16 +02:00
dbg_macro.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
declared_lints.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
default.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
default_instead_of_iter_empty.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
default_numeric_fallback.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
default_union_representation.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
deprecated_lints.rs Merge commit '0cb0f76368' into clippyup 2022-06-30 10:50:09 +02:00
dereference.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
derivable_impls.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
derive.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
disallowed_macros.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
disallowed_methods.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
disallowed_names.rs Merge commit '2b2190cb56' into clippyup 2022-08-11 19:42:16 +02:00
disallowed_script_idents.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
disallowed_types.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
doc.rs various: translation resources from cg backend 2023-02-22 09:15:54 +00:00
double_parens.rs Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
drop_forget_ref.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
duplicate_mod.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
else_if_without_else.rs Merge commit 'd9ddce8a22' into clippyup 2022-06-04 13:34:07 +02:00
empty_drop.rs Merge commit 'fdb84cbfd2' into clippyup 2022-07-18 09:39:37 +02:00
empty_enum.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
empty_structs_with_brackets.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
entry.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
enum_clike.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
enum_variants.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
equatable_if_let.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
escape.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
eta_reduction.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
excessive_bools.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
exhaustive_items.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
exit.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
explicit_write.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
extra_unused_type_parameters.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
fallible_impl_from.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
float_literal.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
floating_point_arithmetic.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
fn_null_check.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
format.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
format_args.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
format_impl.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
format_push_string.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
formatting.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
from_over_into.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
from_raw_with_void_ptr.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
from_str_radix_10.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
future_not_send.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
if_let_mutex.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
if_not_else.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
if_then_some_else_none.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
implicit_hasher.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
implicit_return.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
implicit_saturating_add.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
implicit_saturating_sub.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
inconsistent_struct_constructor.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
index_refutable_slice.rs rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
indexing_slicing.rs s/eval_usize/eval_target_usize/ for clarity 2023-02-14 08:51:19 +00:00
infinite_iter.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
inherent_impl.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
inherent_to_string.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
init_numbered_fields.rs Merge commit '7c21f91b15' into clippyup 2022-05-05 15:12:52 +01:00
inline_fn_without_body.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
instant_subtraction.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
int_plus_one.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
invalid_upcast_comparisons.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
invalid_utf8_in_unchecked.rs Add StrStyle to ast::LitKind::ByteStr. 2022-12-02 10:38:58 +11:00
items_after_statements.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
iter_not_returning_iterator.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
large_const_arrays.rs Use target instead of machine for mir interpreter integer handling. 2023-02-15 08:56:18 +00:00
large_enum_variant.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
large_include_file.rs Add StrStyle to ast::LitKind::ByteStr. 2022-12-02 10:38:58 +11:00
large_stack_arrays.rs Use target instead of machine for mir interpreter integer handling. 2023-02-15 08:56:18 +00:00
len_zero.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
let_if_seq.rs Update tooling 2022-10-27 18:41:26 +04:00
let_underscore.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
lib.deprecated.rs Merge commit 'b7f3f7f608' into clippyup 2021-10-07 11:21:30 +02:00
lib.rs Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
lifetimes.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
literal_representation.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
macro_use.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
main_recursion.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
manual_assert.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
manual_async_fn.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
manual_bits.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
manual_clamp.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
manual_is_ascii_check.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
manual_let_else.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
manual_non_exhaustive.rs Remove HirId -> LocalDefId map from HIR. 2023-01-28 09:55:26 +00:00
manual_rem_euclid.rs get_parent and find_parent 2023-01-04 00:43:13 +00:00
manual_retain.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
manual_string_new.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
manual_strip.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
map_unit_fn.rs change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata 2023-01-26 20:28:25 -07:00
match_result_ok.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
mem_forget.rs Merge commit 'e329249b6a' into clippyup 2022-02-26 14:26:21 +01:00
mem_replace.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
minmax.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
misc.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
mismatching_type_param_order.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
missing_const_for_fn.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
missing_doc.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
missing_enforced_import_rename.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
missing_inline.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
missing_trait_methods.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
mixed_read_write_in_expression.rs rename get_parent_node to parent_id 2023-01-04 00:43:13 +00:00
module_style.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
multi_assignments.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
multiple_unsafe_ops_per_block.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
mut_key.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
mut_mut.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
mut_reference.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
mutable_debug_assertion.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
mutex_atomic.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
needless_arbitrary_self_type.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
needless_bool.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
needless_borrowed_ref.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
needless_continue.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
needless_for_each.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
needless_late_init.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
needless_parens_on_range_literals.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
needless_pass_by_value.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
needless_question_mark.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
needless_update.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
neg_cmp_op_on_partial_ord.rs Fix clippy's missing substs 2022-11-21 20:39:29 +00:00
neg_multiply.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
new_without_default.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
no_effect.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
non_copy_const.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
non_expressive_names.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
non_octal_unix_permissions.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
non_send_fields_in_send_ty.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
nonstandard_macro_braces.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
octal_escapes.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
only_used_in_recursion.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
option_env_unwrap.rs Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
option_if_let_else.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
overflow_check_conditional.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
panic_in_result_fn.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
panic_unimplemented.rs Merge commit '984330a6ee' into clippyup 2022-04-08 10:06:10 +01:00
partial_pub_fields.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
partialeq_ne_impl.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
partialeq_to_none.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
pass_by_ref_or_value.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
pattern_type_mismatch.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
permissions_set_readonly_false.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
precedence.rs Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
ptr.rs Rename some region-specific stuff 2023-02-16 03:39:59 +00:00
ptr_offset_with_cast.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
pub_use.rs Merge commit '7c21f91b15' into clippyup 2022-05-05 15:12:52 +01:00
question_mark.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
ranges.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
rc_clone_in_vec_init.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
read_zero_byte_vec.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
redundant_clone.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
redundant_closure_call.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
redundant_else.rs Update clippy 2022-01-23 19:31:32 +08:00
redundant_field_names.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
redundant_pub_crate.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
redundant_slicing.rs Replace more mk_foo calls with infer_foo. 2023-02-17 22:24:34 +11:00
redundant_static_lifetimes.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
ref_option_ref.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
reference.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
regex.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
renamed_lints.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
return_self_not_must_use.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
returns.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
same_name_method.rs Add of_trait to DefKind::Impl. 2023-02-14 19:55:44 +00:00
self_named_constructors.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
semicolon_block.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
semicolon_if_nothing_returned.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
serde_api.rs Box HIR Generics and Impl. 2022-04-30 13:51:49 +02:00
shadow.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
single_char_lifetime_names.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
single_component_path_imports.rs rustc_ast_lowering: Stop lowering imports into multiple items 2022-12-01 18:51:20 +03:00
size_of_in_element_count.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
size_of_ref.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
slow_vector_initialization.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
std_instead_of_core.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
strings.rs Use is_str instead of string kind comparison 2023-02-13 19:06:22 +00:00
strlen_on_c_strings.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
suspicious_operation_groupings.rs Fix clippy code 2022-11-23 12:17:47 -08:00
suspicious_trait_impl.rs Use LanguageItems::require less 2022-10-29 16:04:10 -05:00
suspicious_xor_used_as_pow.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
swap.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
swap_ptr_to_ref.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
tabs_in_doc_comments.rs Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
temporary_assignment.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
to_digit_is_some.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
trailing_empty_array.rs s/eval_usize/eval_target_usize/ for clarity 2023-02-14 08:51:19 +00:00
trait_bounds.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
undocumented_unsafe_blocks.rs Merge commit '1480cea393' into clippyup 2023-01-27 21:09:08 +01:00
unicode.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
uninit_vec.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
unit_return_expecting_ord.rs change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata 2023-01-26 20:28:25 -07:00
unnamed_address.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
unnecessary_owned_empty_strings.rs Rm diagnostic item, use lang item 2022-11-18 06:16:20 +00:00
unnecessary_self_imports.rs rustc_ast_lowering: Stop lowering imports into multiple items 2022-12-01 18:51:20 +03:00
unnecessary_wraps.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
unnested_or_patterns.rs Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
unsafe_removed_from_name.rs rustc_ast_lowering: Stop lowering imports into multiple items 2022-12-01 18:51:20 +03:00
unused_async.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
unused_io_amount.rs Merge commit '0f7558148c' into clippyup 2023-02-10 14:01:19 +01:00
unused_peekable.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
unused_rounding.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
unused_self.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
unused_unit.rs Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
unwrap.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
unwrap_in_result.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
upper_case_acronyms.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
use_self.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
useless_conversion.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
vec.rs Merge commit 'd7b5cbf065' into clippyup 2022-06-16 17:39:06 +02:00
vec_init_then_push.rs Merge commit 'b52fb5234c' into clippyup 2022-09-09 13:36:26 +02:00
wildcard_imports.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
write.rs Merge commit '4f3ab69ea0' into clippyup 2022-12-29 14:28:34 +01:00
zero_div_zero.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
zero_sized_map_values.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00