Make inline const block ExprWithBlock

This commit is contained in:
Gary Guo 2022-12-01 17:54:50 +00:00
parent 9c0bc3028a
commit 171b7d62ad
4 changed files with 26 additions and 0 deletions

View file

@ -21,6 +21,7 @@ pub fn expr_requires_semi_to_be_stmt(e: &ast::Expr) -> bool {
| ast::ExprKind::Loop(..)
| ast::ExprKind::ForLoop(..)
| ast::ExprKind::TryBlock(..)
| ast::ExprKind::ConstBlock(..)
)
}