diff --git a/clippy_lints/src/transmute/missing_transmute_annotations.rs b/clippy_lints/src/transmute/missing_transmute_annotations.rs index 9bdab82ced3f..ec7041b945b3 100644 --- a/clippy_lints/src/transmute/missing_transmute_annotations.rs +++ b/clippy_lints/src/transmute/missing_transmute_annotations.rs @@ -65,7 +65,7 @@ pub(super) fn check<'tcx>( if let Some(local) = get_parent_local_binding_ty(cx, expr_hir_id) { // ... which does have type annotations. if let Some(ty) = local.ty - // If this is a `let x: _ =`, we shouldn't lint. + // If this is a `let x: _ =`, we should lint. && !matches!(ty.kind, TyKind::Infer) { return false;