rust/clippy_lints/src
bors 5b0d727bad Auto merge of #9570 - nfejzic:lint-unchecked-duration-subtraction, r=llogiq
feat: lint unchecked subtraction of a 'Duration' from an 'Instant'

Hello all, I tried to tackle the open issue #9371 and this is what I came up with.

I have a difficulty currently - some tests are failing:

```
failures:
    [ui] ui/manual_instant_elapsed.rs
```

The `manual_instant_elapsed` is failing because of `Instant::now() - duration` test, this now gets also picked by `unchecked_duration_subtraction` lint.
What is the correct way to proceed in this case? Simply update the `.stderr` file for `manual_instant_elapsed` lint?

changelog: [`unchecked_duration_subtraction`]: Add lint for unchecked subtraction of a `Duration` from an `Instant`.

fixes #9371
2022-11-15 06:09:10 +00:00
..
cargo Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
casts Update lint versions for 1.65 2022-10-31 22:11:17 +01:00
functions result_large_err show largest variants in err msg 2022-11-07 18:00:35 -08:00
loops fix never_loop false positive 2022-11-12 20:36:30 +05:30
matches Adress review comments 2022-10-30 06:47:35 -04:00
methods Auto merge of #9829 - hrxi:pr_or_fun_call, r=llogiq 2022-11-13 14:29:42 +00:00
misc_early [zero_prefixed_literal] Do not advise to use octal form if not possible 2022-10-15 15:10:50 +02:00
operators Fix adjacent code 2022-10-28 13:18:07 -04:00
transmute Merge remote-tracking branch 'upstream/master' into rustup 2022-10-20 16:39:27 +02:00
types fix vec-box-size-threshold off-by-one error 2022-11-14 16:06:21 +01:00
unit_types Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
utils feat: add and implement unchecked_duration_subtraction lint 2022-11-10 15:46:41 +01:00
almost_complete_letter_range.rs Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy 2022-09-21 13:13:27 -04:00
approx_const.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
as_conversions.rs Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup 2022-07-28 19:08:22 +02:00
asm_syntax.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
assertions_on_constants.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
assertions_on_result_states.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
async_yields_async.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
attrs.rs Warn when clippy::restriction is enabled via the command line 2022-10-30 21:15:46 +00:00
await_holding_invalid.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
blocks_in_if_conditions.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
bool_assert_comparison.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
bool_to_int_with_if.rs Make bool_to_int_with_if a pedantic lint 2022-11-10 19:42:20 +01:00
booleans.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
borrow_deref_ref.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
box_default.rs Auto merge of #9622 - llogiq:box-dyn-default, r=Alexendoo 2022-10-23 11:15:19 +00:00
checked_conversions.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
cognitive_complexity.rs fix: cognitive_complexity for async fn 2022-11-11 00:14:18 +09:00
collapsible_if.rs
comparison_chain.rs Fix adjacent code 2022-10-15 07:03:29 -04:00
copies.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
copy_iterator.rs
crate_in_macro_def.rs Shrink ast::Attribute. 2022-08-16 11:10:13 +10:00
create_dir.rs Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
dbg_macro.rs
declared_lints.rs Auto merge of #9570 - nfejzic:lint-unchecked-duration-subtraction, r=llogiq 2022-11-15 06:09:10 +00:00
default_instead_of_iter_empty.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
default_numeric_fallback.rs explicit_ty_bound code golf 2022-10-15 14:57:08 +02:00
default_union_representation.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
default.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
deprecated_lints.rs Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup 2022-06-30 10:50:09 +02:00
dereference.rs Auto merge of #9813 - Jarcho:issue_9811, r=xFrednet 2022-11-09 14:06:42 +00:00
derivable_impls.rs Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy 2022-09-21 13:13:27 -04:00
derive.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
disallowed_macros.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
disallowed_methods.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
disallowed_names.rs Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
disallowed_script_idents.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
disallowed_types.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
doc.rs Add unnecessary_safety_doc lint 2022-11-10 10:09:33 +01:00
double_parens.rs Do not consider method call receiver as an argument in AST. 2022-08-10 18:34:54 +02:00
drop_forget_ref.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
duplicate_mod.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
else_if_without_else.rs
empty_drop.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
empty_enum.rs
empty_structs_with_brackets.rs
entry.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
enum_clike.rs
enum_variants.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
equatable_if_let.rs Auto merge of #9368 - nahuakang:improve-equatable-if-let, r=flip1995 2022-10-23 15:31:46 +00:00
escape.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
eta_reduction.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
excessive_bools.rs [excessive_bools] lint trait functions even without bodies 2022-11-07 21:00:37 +01:00
exhaustive_items.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
exit.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
explicit_write.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
fallible_impl_from.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
float_literal.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
floating_point_arithmetic.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
format_args.rs move UNINLINED_FORMAT_ARGS to pedantic 2022-10-27 17:49:43 +08:00
format_impl.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
format_push_string.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
format.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
formatting.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
from_over_into.rs Add a suggestion and a note about orphan rules for from_over_into 2022-10-14 22:50:23 +00:00
from_raw_with_void_ptr.rs Update from_raw_with_void_ptr to support types other than Box 2022-10-24 10:51:50 +02:00
from_str_radix_10.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
future_not_send.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05: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
if_then_some_else_none.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
implicit_hasher.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
implicit_return.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
implicit_saturating_add.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
implicit_saturating_sub.rs add tests in implicit_saturating_sub lint 2022-10-12 09:28:17 +05:30
inconsistent_struct_constructor.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
index_refutable_slice.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
indexing_slicing.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
infinite_iter.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
inherent_impl.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
inherent_to_string.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
init_numbered_fields.rs
inline_fn_without_body.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
instant_subtraction.rs docs: import Instant and Duration in doctests 2022-11-14 22:37:25 +01:00
int_plus_one.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
invalid_upcast_comparisons.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
invalid_utf8_in_unchecked.rs Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup 2022-07-18 09:39:37 +02:00
items_after_statements.rs
iter_not_returning_iterator.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
large_const_arrays.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
large_enum_variant.rs result_large_err show largest variants in err msg 2022-11-07 18:00:35 -08:00
large_include_file.rs
large_stack_arrays.rs Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy 2022-09-21 13:13:27 -04:00
len_zero.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
let_if_seq.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
let_underscore.rs More backticks 2022-11-04 20:59:31 -07:00
lib.deprecated.rs
lib.rs Auto merge of #9570 - nfejzic:lint-unchecked-duration-subtraction, r=llogiq 2022-11-15 06:09:10 +00:00
lifetimes.rs Change two <= to == for clarity 2022-10-31 20:12:37 -04:00
literal_representation.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
macro_use.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
main_recursion.rs
manual_assert.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
manual_async_fn.rs Format affected files 2022-10-15 07:03:29 -04:00
manual_bits.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
manual_clamp.rs Fix adjacent code 2022-10-15 07:03:29 -04:00
manual_is_ascii_check.rs fix: use HasPlaceholders 2022-11-12 20:29:24 +09:00
manual_let_else.rs Also consider match guards for divergence check 2022-10-24 22:05:39 +02:00
manual_non_exhaustive.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
manual_rem_euclid.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
manual_retain.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
manual_string_new.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
manual_strip.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
map_unit_fn.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
match_result_ok.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
mem_forget.rs
mem_replace.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
minmax.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
misc.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
mismatching_type_param_order.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
missing_const_for_fn.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
missing_doc.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
missing_enforced_import_rename.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
missing_inline.rs Rollup merge of #102829 - compiler-errors:rename-impl-item-kind, r=TaKO8Ki 2022-10-10 00:09:42 +09:00
missing_trait_methods.rs Add missing_trait_methods lint 2022-10-20 11:02:48 +00:00
mixed_read_write_in_expression.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
module_style.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
multi_assignments.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
mut_key.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
mut_mut.rs Avoid lint to unsized mutable reference 2022-11-12 20:31:25 +09:00
mut_reference.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
mutable_debug_assertion.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
mutex_atomic.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
needless_arbitrary_self_type.rs clippy: BindingAnnotation change 2022-09-02 13:03:11 -05:00
needless_bool.rs
needless_borrowed_ref.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
needless_continue.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
needless_for_each.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
needless_late_init.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
needless_parens_on_range_literals.rs
needless_pass_by_value.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
needless_question_mark.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
needless_update.rs
neg_cmp_op_on_partial_ord.rs Format affected files 2022-10-15 07:03:29 -04:00
neg_multiply.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
new_without_default.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
no_effect.rs move else block into the Local struct 2022-07-11 23:20:37 +02:00
non_copy_const.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
non_expressive_names.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
non_octal_unix_permissions.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
non_send_fields_in_send_ty.rs
nonstandard_macro_braces.rs Fix adjacent code 2022-10-07 05:07:44 -04:00
octal_escapes.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
only_used_in_recursion.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
option_env_unwrap.rs Do not consider method call receiver as an argument in AST. 2022-08-10 18:34:54 +02:00
option_if_let_else.rs [option_if_let_else] do not lint if any arm has guard 2022-10-29 16:44:12 +02:00
overflow_check_conditional.rs
panic_in_result_fn.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
panic_unimplemented.rs
partial_pub_fields.rs fix a doctest 2022-10-16 17:13:12 +08:00
partialeq_ne_impl.rs
partialeq_to_none.rs Update lint versions for 1.65 2022-10-31 22:11:17 +01:00
pass_by_ref_or_value.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
pattern_type_mismatch.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
precedence.rs Do not consider method call receiver as an argument in AST. 2022-08-10 18:34:54 +02:00
ptr_offset_with_cast.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
ptr.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-10-20 16:39:27 +02:00
pub_use.rs
question_mark.rs question_mark don't lint on if let Err with else 2022-10-25 21:16:28 -07:00
ranges.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
rc_clone_in_vec_init.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
read_zero_byte_vec.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
redundant_clone.rs needless_borrow uses used_exactly_once 2022-10-07 05:07:44 -04:00
redundant_closure_call.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
redundant_else.rs
redundant_field_names.rs
redundant_pub_crate.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
redundant_slicing.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
redundant_static_lifetimes.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
ref_option_ref.rs ref_option_ref do not lint when inner reference is mutable 2022-10-21 13:48:41 +02:00
reference.rs
regex.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
renamed_lints.rs Mark let_underscore_drop as uplifted 2022-10-23 14:06:51 +00:00
return_self_not_must_use.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
returns.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
same_name_method.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
self_named_constructors.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
semicolon_if_nothing_returned.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
serde_api.rs
shadow.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
single_char_lifetime_names.rs
single_component_path_imports.rs
size_of_in_element_count.rs separate the receiver from arguments in HIR under /clippy 2022-09-05 22:25:57 +09:00
slow_vector_initialization.rs Fix adjacent code 2022-10-28 13:18:07 -04:00
std_instead_of_core.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
strings.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
strlen_on_c_strings.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
suspicious_operation_groupings.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
suspicious_trait_impl.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
suspicious_xor_used_as_pow.rs Update clippy_lints/src/suspicious_xor_used_as_pow.rs 2022-10-27 21:32:36 +02:00
swap_ptr_to_ref.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
swap.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
tabs_in_doc_comments.rs
temporary_assignment.rs
to_digit_is_some.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
trailing_empty_array.rs refactor has_repr_attr 2022-11-07 19:49:43 +01:00
trait_bounds.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
undocumented_unsafe_blocks.rs fix undocumented-unsafe-blocks false positive 2022-10-28 22:09:36 +02:00
unicode.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
uninit_vec.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unit_return_expecting_ord.rs Format affected files 2022-10-15 07:03:29 -04:00
unnamed_address.rs
unnecessary_owned_empty_strings.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unnecessary_self_imports.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unnecessary_wraps.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unnested_or_patterns.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
unsafe_removed_from_name.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unused_async.rs Remove unused span argument from walk_fn. 2022-09-12 13:24:27 +10:00
unused_io_amount.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
unused_peekable.rs Update lint versions for 1.65 2022-10-31 22:11:17 +01:00
unused_rounding.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unused_self.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
unused_unit.rs Simplify rustc_ast::visit::Visitor::visit_poly_trait_ref. 2022-08-11 11:10:01 +10:00
unwrap_in_result.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
unwrap.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
upper_case_acronyms.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
use_self.rs [use_self] fix suggestion when full path to struct was given 2022-10-26 18:30:32 +02:00
useless_conversion.rs Replace manual let else patterns with let else 2022-10-11 00:12:16 +02:00
vec_init_then_push.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
vec.rs
wildcard_imports.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
write.rs Add allow-print-in-tests config 2022-11-04 20:33:04 +03:00
zero_div_zero.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
zero_sized_map_values.rs Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00