diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index bb97b13fe5..15bd8a2e42 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -233,13 +233,13 @@ pub(crate) struct AstSrc<'a> { pub(crate) struct AstNodeSrc<'a> { pub(crate) name: &'a str, pub(crate) traits: &'a [&'a str], - pub(crate) fields: &'a [(&'a str, FieldSrc<&'a str>)], + pub(crate) fields: &'a [(&'a str, FieldSrc<'a>)], } -pub(crate) enum FieldSrc { +pub(crate) enum FieldSrc<'a> { Shorthand, - Optional(T), - Many(T), + Optional(&'a str), + Many(&'a str), } pub(crate) struct AstEnumSrc<'a> {