rust/clippy_lints/src
bors 2ba1a6a331 Auto merge of #7801 - aDotInTheVoid:empty-format, r=camsteffen
Make useless_format recognize format!("")

Closes #7796

changelog: [`useless_format`] Fix for false negitive for `format!("")`
2021-10-21 18:15:23 +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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
arithmetic.rs
as_conversions.rs
asm_syntax.rs
assertions_on_constants.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
bool_assert_comparison.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
booleans.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
bytecount.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Do not lint if any parent has hidden attribute 2021-10-20 17:53:05 +02:00
double_comparison.rs
double_parens.rs
drop_forget_ref.rs
duration_subsec.rs
else_if_without_else.rs
empty_enum.rs
entry.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 rustc_target: move LayoutOf to ty::layout. 2021-09-02 01:17:14 +03:00
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 Keep a parent LocalDefId in SpanData. 2021-09-10 20:17:33 +02:00
large_enum_variant.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
large_stack_arrays.rs rustc_target: move LayoutOf to ty::layout. 2021-09-02 01:17:14 +03:00
len_zero.rs Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup 2021-10-07 11:21:30 +02:00
let_if_seq.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
mem_replace.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 rustc_target: move LayoutOf to ty::layout. 2021-09-02 01:17:14 +03:00
path_buf_push_overwrite.rs
pattern_type_mismatch.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
precedence.rs
ptr_eq.rs
ptr_offset_with_cast.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Fix dogfood 2021-09-02 12:39:54 +01:00
redundant_clone.rs Make diangostic item names consistent 2021-10-02 19:38:19 -05:00
redundant_closure_call.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Keep a parent LocalDefId in SpanData. 2021-09-10 20:17:33 +02:00
temporary_assignment.rs
to_digit_is_some.rs
to_string_in_display.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
unused_io_amount.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
unused_self.rs Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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 Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup 2021-09-08 16:31:47 +02:00
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