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 73d293f commit bd1d897Copy full SHA for bd1d897
clippy_lints/src/casts/cast_slice_different_sizes.rs
@@ -68,7 +68,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>, msrv: &Msrv
68
fn is_child_of_cast(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
69
let map = cx.tcx.hir();
70
if_chain! {
71
- if let Some(parent_id) = map.find_parent_node(expr.hir_id);
+ if let Some(parent_id) = map.opt_parent_id(expr.hir_id);
72
if let Some(parent) = map.find(parent_id);
73
then {
74
let expr = match parent {
0 commit comments