Skip to content

Commit a37852e

Browse files
committed
Make EarlyBinder's inner value private; and fix all of the resulting errors
1 parent cfcb7fc commit a37852e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/multiple_unsafe_ops_per_block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn collect_unsafe_exprs<'tcx>(
138138
.type_dependent_def_id(expr.hir_id)
139139
.map(|def_id| cx.tcx.fn_sig(def_id))
140140
{
141-
if sig.0.unsafety() == Unsafety::Unsafe {
141+
if sig.skip_binder().unsafety() == Unsafety::Unsafe {
142142
unsafe_ops.push(("unsafe method call occurs here", expr.span));
143143
}
144144
}

0 commit comments

Comments
 (0)