diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index deb9f690d46..405f6b33775 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -349,9 +349,9 @@ struct FnDef: VisibilityOwner, NameOwner, TypeParamsOwner, DocCommentsOwner, Att T![fn], ParamList, RetType, - body: BlockExpr, // TODO: maybe it makes sense to make it `Block` instead, - T![;] // Or what if there may be a posibility of tryblocks as function body? - } // But try blocks are not `BlockExpr` + body: BlockExpr, + T![;] + } /// Return type annotation. ///