We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c433d54 commit 59ee6a8Copy full SHA for 59ee6a8
clippy_lints/src/use_self.rs
@@ -214,9 +214,6 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
214
hir_ty_to_ty(cx.tcx, hir_ty)
215
};
216
if same_type_and_consts(ty, cx.tcx.type_of(impl_id));
217
- let hir = cx.tcx.hir();
218
- // prevents false positive on `#[derive(serde::Deserialize)]`
219
- if !hir.span(hir.get_parent_node(hir_ty.hir_id)).in_derive_expansion();
220
then {
221
span_lint(cx, hir_ty.span);
222
}
0 commit comments