Skip to content

Commit b4c1c97

Browse files
committed
fix(script_plugins): the visibility fields of rustc_hir::intravisit::FnKind are gone
<rust-lang/rust#93970>
1 parent 75fc8a6 commit b4c1c97

File tree

1 file changed

+1
-1
lines changed
  • components/script_plugins

1 file changed

+1
-1
lines changed

components/script_plugins/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
268268
id: HirId,
269269
) {
270270
let in_new_function = match kind {
271-
visit::FnKind::ItemFn(n, _, _, _) | visit::FnKind::Method(n, _, _) => {
271+
visit::FnKind::ItemFn(n, _, _) | visit::FnKind::Method(n, _) => {
272272
&*n.as_str() == "new" || n.as_str().starts_with("new_")
273273
},
274274
visit::FnKind::Closure => return,

0 commit comments

Comments
 (0)