rust/clippy_lints/src
bors df65291edd Auto merge of #7856 - Manishearth:impl-safety, r=xFrednet
missing_safety_doc: Handle 'implementation safety' headers as well

We hit some FPs on this in `yoke`, it's somewhat normal to mark trait impl safety with "implementation safety". We could also broaden the check for headers which contain the word "safety" somehow, or split out impl safety stuff to only apply to traits.

changelog: handle 'implementation safety' headers in `missing_safety_doc`
2021-10-21 21:51:24 +00:00
..
casts Do not lint when cast is coming from signum method call 2021-10-21 19:15:26 +02:00
functions Fixed naive doc formatting for #[must_use] lints 2021-10-16 15:26:47 +00:00
loops Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
methods Auto merge of #7682 - Qwaz:uninit_vec, r=xFrednet 2021-10-12 21:04:13 +00:00
misc_early
transmute Fix doc heading of TRANSMUTE_NUM_TO_BYTES 2021-10-20 13:46:12 +02:00
types Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
unit_types
utils Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
absurd_extreme_comparisons.rs
approx_const.rs
arithmetic.rs
as_conversions.rs
asm_syntax.rs
assertions_on_constants.rs
assign_ops.rs
async_yields_async.rs
attrs.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
await_holding_invalid.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
bit_mask.rs
blacklisted_name.rs
blocks_in_if_conditions.rs
bool_assert_comparison.rs
booleans.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
bytecount.rs
cargo_common_metadata.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
case_sensitive_file_extension_comparisons.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
checked_conversions.rs
cognitive_complexity.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
collapsible_if.rs
collapsible_match.rs
comparison_chain.rs
copies.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
copy_iterator.rs
create_dir.rs
dbg_macro.rs
default_numeric_fallback.rs
default.rs Fix false positive when Drop and Copy involved 2021-10-09 14:56:33 +02:00
deprecated_lints.rs
dereference.rs
derivable_impls.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
derive.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
disallowed_method.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
disallowed_script_idents.rs
disallowed_type.rs Rename disallowed to conf_disallowed 2021-10-11 08:29:56 +01:00
doc.rs use a variable 2021-10-21 14:40:33 -07:00
double_comparison.rs
double_parens.rs
drop_forget_ref.rs
duration_subsec.rs
else_if_without_else.rs
empty_enum.rs
entry.rs
enum_clike.rs
enum_variants.rs
eq_op.rs avoid eq_op in test code 2021-10-19 21:02:30 +02:00
equatable_if_let.rs Do not expand macros in equatable_if_let suggestion 2021-10-08 15:26:10 +02:00
erasing_op.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
escape.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
eta_reduction.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
eval_order_dependence.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
excessive_bools.rs
exhaustive_items.rs
exit.rs
explicit_write.rs
fallible_impl_from.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
feature_name.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
float_equality_without_abs.rs
float_literal.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
floating_point_arithmetic.rs
format_args.rs Add format_in_format_args and to_string_in_format_args lints 2021-10-15 12:44:38 -04:00
format.rs Make useless_format recognize format!("") 2021-10-21 19:01:28 +01:00
formatting.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
from_over_into.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
from_str_radix_10.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
future_not_send.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
get_last_with_len.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
identity_op.rs Remove unneeded allow 2021-10-18 08:46:11 +02:00
if_let_mutex.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
if_not_else.rs
if_then_panic.rs Remove redundant to_strings 2021-10-15 12:44:49 -04:00
if_then_some_else_none.rs
implicit_hasher.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
implicit_return.rs
implicit_saturating_sub.rs Fix false positive of implicit_saturating_sub with else clause 2021-10-17 15:56:59 +02:00
inconsistent_struct_constructor.rs
indexing_slicing.rs
infinite_iter.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
inherent_impl.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
inherent_to_string.rs Remove redundant to_strings 2021-10-15 12:44:49 -04:00
inline_fn_without_body.rs
int_plus_one.rs
integer_division.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
invalid_upcast_comparisons.rs
items_after_statements.rs
iter_not_returning_iterator.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
large_const_arrays.rs
large_enum_variant.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
large_stack_arrays.rs
len_zero.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
let_if_seq.rs
let_underscore.rs Fixed naive doc formatting for #[must_use] lints 2021-10-16 15:26:47 +00:00
lib.deprecated.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
lib.register_all.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
lib.register_cargo.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
lib.register_complexity.rs Add lint transmute_num_to_bytes 2021-10-13 20:05:05 +01:00
lib.register_correctness.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
lib.register_internal.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
lib.register_lints.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
lib.register_nursery.rs Rename lint 2021-10-19 14:33:43 -07:00
lib.register_pedantic.rs Lint on underscore variable assignment 2021-10-20 00:39:28 +02:00
lib.register_perf.rs Add format_in_format_args and to_string_in_format_args lints 2021-10-15 12:44:38 -04:00
lib.register_restriction.rs Add undocumented_unsafe_blocks lint 2021-10-07 17:06:21 -04:00
lib.register_style.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
lib.register_suspicious.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
lib.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-21 12:18:12 +02:00
lifetimes.rs
literal_representation.rs
macro_use.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-07 11:11:23 +02:00
main_recursion.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
manual_async_fn.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
manual_map.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
manual_non_exhaustive.rs
manual_ok_or.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
manual_strip.rs
manual_unwrap_or.rs Some "parenthesis" and "parentheses" fixes 2021-10-17 12:04:01 +02:00
map_clone.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
map_err_ignore.rs
map_unit_fn.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
match_on_vec_items.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
match_result_ok.rs Fix typo in example for match_result_ok 2021-10-13 12:12:46 -07:00
match_str_case_mismatch.rs Add a suggestion 2021-10-12 07:13:19 -04:00
matches.rs Refactor to check for multiple reference patterns 2021-10-09 22:30:12 +05:30
mem_forget.rs
mem_replace.rs
minmax.rs
misc.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
missing_const_for_fn.rs
missing_doc.rs Merge remote-tracking branch 'upstream/master' into rustup 2021-10-07 11:11:23 +02:00
missing_enforced_import_rename.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
missing_inline.rs Fix typo for INVALID_NULL_PTR_USAGE and MISSING_INLINE_IN_PUBLIC_ITEMS. 2021-10-21 14:33:43 +08:00
module_style.rs Rebase fallout. 2021-09-11 17:52:39 +02:00
modulo_arithmetic.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
multiple_crate_versions.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
mut_key.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
mut_mut.rs Fix FP in external macros for mut_mut lint 2021-10-09 15:54:16 +02:00
mut_mutex_lock.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
mut_reference.rs
mutable_debug_assertion.rs
mutex_atomic.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
needless_arbitrary_self_type.rs
needless_bitwise_bool.rs
needless_bool.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
needless_borrow.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
needless_borrowed_ref.rs
needless_continue.rs Fix clippy with changed macro statement spans 2021-10-15 02:36:58 -05:00
needless_for_each.rs
needless_option_as_deref.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
needless_pass_by_value.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
needless_question_mark.rs
needless_update.rs
neg_cmp_op_on_partial_ord.rs
neg_multiply.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
new_without_default.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
no_effect.rs Lint on underscore variable assignment 2021-10-20 00:39:28 +02:00
non_copy_const.rs
non_expressive_names.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
non_octal_unix_permissions.rs
non_send_fields_in_send_ty.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
nonstandard_macro_braces.rs
open_options.rs
option_env_unwrap.rs
option_if_let_else.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
overflow_check_conditional.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
panic_in_result_fn.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
panic_unimplemented.rs
partialeq_ne_impl.rs
pass_by_ref_or_value.rs
path_buf_push_overwrite.rs
pattern_type_mismatch.rs
precedence.rs
ptr_eq.rs
ptr_offset_with_cast.rs
ptr.rs Fix typo for INVALID_NULL_PTR_USAGE and MISSING_INLINE_IN_PUBLIC_ITEMS. 2021-10-21 14:33:43 +08:00
question_mark.rs Small refactor on question_mark condition checks 2021-10-20 13:41:44 +08:00
ranges.rs
redundant_clone.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
redundant_closure_call.rs
redundant_else.rs
redundant_field_names.rs
redundant_pub_crate.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
redundant_slicing.rs
redundant_static_lifetimes.rs
ref_option_ref.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
reference.rs
regex.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
repeat_once.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
returns.rs Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup 2021-09-28 18:03:12 +01:00
same_name_method.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
self_assignment.rs
self_named_constructors.rs
semicolon_if_nothing_returned.rs Don't trigger semicolon_if_nothing_returned in expanded code 2021-10-08 16:16:56 +02:00
serde_api.rs
shadow.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
single_component_path_imports.rs
size_of_in_element_count.rs
slow_vector_initialization.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
stable_sort_primitive.rs
strings.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
strlen_on_c_strings.rs
suspicious_operation_groupings.rs Remove redundant to_strings 2021-10-15 12:44:49 -04:00
suspicious_trait_impl.rs
swap.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
tabs_in_doc_comments.rs
temporary_assignment.rs
to_digit_is_some.rs
to_string_in_display.rs
trailing_empty_array.rs Rename lint 2021-10-19 14:33:43 -07:00
trait_bounds.rs
transmuting_null.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
try_err.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
undocumented_unsafe_blocks.rs Add undocumented_unsafe_blocks lint 2021-10-07 17:06:21 -04:00
undropped_manually_drops.rs
unicode.rs
uninit_vec.rs Update lint description for new() and default() 2021-10-12 16:02:13 -04:00
unit_return_expecting_ord.rs
unnamed_address.rs
unnecessary_self_imports.rs
unnecessary_sort_by.rs unnecessary_sort_by only warns if argument impl Ord trait 2021-10-15 18:10:55 +08:00
unnecessary_wraps.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
unnested_or_patterns.rs
unsafe_removed_from_name.rs
unused_async.rs
unused_io_amount.rs
unused_self.rs
unused_unit.rs
unwrap_in_result.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
unwrap.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
upper_case_acronyms.rs
use_self.rs
useless_conversion.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
vec_init_then_push.rs Address PR comments 2021-10-09 05:47:06 -04:00
vec_resize_to_zero.rs
vec.rs
verbose_file_reads.rs
wildcard_dependencies.rs Do not pass hir::Crate to lints. 2021-09-30 17:39:54 +02:00
wildcard_imports.rs
write.rs
zero_div_zero.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
zero_sized_map_values.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00