]> git.lizzy.rs Git - rust.git/commitdiff
Remove TODO about Block since it was removed
authorveetaha <veetaha2@gmail.com>
Sun, 10 May 2020 18:46:26 +0000 (21:46 +0300)
committerveetaha <veetaha2@gmail.com>
Sun, 10 May 2020 18:46:26 +0000 (21:46 +0300)
xtask/src/ast_src.rs

index deb9f690d46eefe4ffe67850be0257f203fd6cb8..405f6b33775103ca996890cc88e8757273552190 100644 (file)
@@ -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.
         ///