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 cfcb7fc commit a37852eCopy full SHA for a37852e
clippy_lints/src/multiple_unsafe_ops_per_block.rs
@@ -138,7 +138,7 @@ fn collect_unsafe_exprs<'tcx>(
138
.type_dependent_def_id(expr.hir_id)
139
.map(|def_id| cx.tcx.fn_sig(def_id))
140
{
141
- if sig.0.unsafety() == Unsafety::Unsafe {
+ if sig.skip_binder().unsafety() == Unsafety::Unsafe {
142
unsafe_ops.push(("unsafe method call occurs here", expr.span));
143
}
144
0 commit comments