{"ast_node_type":"function","tokens":[{"end":72,"kind":"keyword","start":0,"text":"let"}]}
        let filter_fn = move |a: &&hir::Attribute| a.path_matches(attr);
    ) -> impl Iterator<Item = &'tcx hir::Attribute> {
        if let Some(did) = did.as_local() {