Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/validation/block.rs')
-rw-r--r--crates/syntax/src/validation/block.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/validation/block.rs b/crates/syntax/src/validation/block.rs
index 8eb4a10a3f..fe3d61bef1 100644
--- a/crates/syntax/src/validation/block.rs
+++ b/crates/syntax/src/validation/block.rs
@@ -9,7 +9,7 @@ use crate::{
pub(crate) fn validate_block_expr(block: ast::BlockExpr, errors: &mut Vec<SyntaxError>) {
if let Some(parent) = block.syntax().parent() {
match parent.kind() {
- FN | EXPR_STMT | STMT_LIST => return,
+ FN | EXPR_STMT | STMT_LIST | MACRO_STMTS => return,
_ => {}
}
}