Take a LocalDefId in hir::Visitor::visit_fn.
This commit is contained in:
parent
252741673b
commit
3175d03d3b
52 changed files with 235 additions and 211 deletions
|
@ -445,7 +445,7 @@ impl<'tcx> intravisit::Visitor<'tcx> for UnusedUnsafeVisitor<'_, 'tcx> {
|
|||
_fd: &'tcx hir::FnDecl<'tcx>,
|
||||
b: hir::BodyId,
|
||||
_s: rustc_span::Span,
|
||||
_id: HirId,
|
||||
_id: LocalDefId,
|
||||
) {
|
||||
if matches!(fk, intravisit::FnKind::Closure) {
|
||||
self.visit_body(self.tcx.hir().body(b))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue