Make EarlyBinder's inner value private; and fix all of the resulting errors
This commit is contained in:
parent
cfcb7fc859
commit
a37852e54b
@ -138,7 +138,7 @@ fn collect_unsafe_exprs<'tcx>(
|
||||
.type_dependent_def_id(expr.hir_id)
|
||||
.map(|def_id| cx.tcx.fn_sig(def_id))
|
||||
{
|
||||
if sig.0.unsafety() == Unsafety::Unsafe {
|
||||
if sig.skip_binder().unsafety() == Unsafety::Unsafe {
|
||||
unsafe_ops.push(("unsafe method call occurs here", expr.span));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user