We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
T
&T
1 parent 7be889f commit 80c12d5Copy full SHA for 80c12d5
1 file changed
pgrx-sql-entity-graph/src/lifetimes.rs
@@ -51,6 +51,8 @@ pub fn anonymize_lifetimes(value: &mut syn::Type) {
51
if let Some(lifetime) = type_ref.lifetime.as_mut() {
52
lifetime.ident = syn::Ident::new("_", lifetime.ident.span());
53
}
54
+ // &'a T could be &'a &'b U so recurse to get &&U
55
+ anonymize_lifetimes(&mut type_ref.elem);
56
57
syn::Type::Tuple(type_tuple) => type_tuple.elems.iter_mut().for_each(anonymize_lifetimes),
58
_ => {}
0 commit comments