Add a span to the apostrophe in `Lifetime`
diff --git a/src/gen/fold.rs b/src/gen/fold.rs
index 99ec4a2..ee7120b 100644
--- a/src/gen/fold.rs
+++ b/src/gen/fold.rs
@@ -431,9 +431,6 @@
}
}
-fold_span_only!(fold_ident: Ident);
-#[cfg(any(feature = "full", feature = "derive"))]
-fold_span_only!(fold_lifetime: Lifetime);
#[cfg(any(feature = "full", feature = "derive"))]
fold_span_only!(fold_lit_byte: LitByte);
#[cfg(any(feature = "full", feature = "derive"))]
@@ -1985,6 +1982,13 @@
}
}
# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
+pub fn fold_lifetime<V: Fold + ?Sized>(_visitor: &mut V, _i: Lifetime) -> Lifetime {
+ Lifetime {
+ apostrophe: _i . apostrophe,
+ ident: _visitor.fold_ident(_i . ident),
+ }
+}
+# [ cfg ( any ( feature = "full" , feature = "derive" ) ) ]
pub fn fold_lifetime_def<V: Fold + ?Sized>(_visitor: &mut V, _i: LifetimeDef) -> LifetimeDef {
LifetimeDef {
attrs: FoldHelper::lift(_i . attrs, |it| { _visitor.fold_attribute(it) }),