mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
fix(script_plugins): the visibility fields of rustc_hir::intravisit::FnKind
are gone
<https://github.com/rust-lang/rust/pull/93970>
This commit is contained in:
parent
75fc8a664f
commit
b4c1c972d4
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
|
|||
id: HirId,
|
||||
) {
|
||||
let in_new_function = match kind {
|
||||
visit::FnKind::ItemFn(n, _, _, _) | visit::FnKind::Method(n, _, _) => {
|
||||
visit::FnKind::ItemFn(n, _, _) | visit::FnKind::Method(n, _) => {
|
||||
&*n.as_str() == "new" || n.as_str().starts_with("new_")
|
||||
},
|
||||
visit::FnKind::Closure => return,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue