From f90fbaf6a6ce9d41f712001e0f430e2ba0c4fbe6 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 3 May 2020 18:00:27 +0800 Subject: Add documents owner for ImplDef and SourceFile --- xtask/src/ast_src.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 028f7cbe1..2f8065b73 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -305,7 +305,7 @@ macro_rules! ast_enums { pub(crate) const AST_SRC: AstSrc = AstSrc { tokens: &["Whitespace", "Comment", "String", "RawString"], nodes: &ast_nodes! { - struct SourceFile: ModuleItemOwner, AttrsOwner { + struct SourceFile: ModuleItemOwner, AttrsOwner, DocCommentsOwner { modules: [Module], } @@ -401,7 +401,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { T![;] } - struct ImplDef: TypeParamsOwner, AttrsOwner { + struct ImplDef: TypeParamsOwner, AttrsOwner, DocCommentsOwner { T![default], T![const], T![unsafe], -- cgit v1.2.3