From 3c2dea7f55830ba2391e5eb8525cdbb43ac666c2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 2 Sep 2019 19:33:02 +0300 Subject: always wrap block into an expression --- crates/ra_syntax/src/validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src/validation.rs') diff --git a/crates/ra_syntax/src/validation.rs b/crates/ra_syntax/src/validation.rs index ee8797410..16824f3c4 100644 --- a/crates/ra_syntax/src/validation.rs +++ b/crates/ra_syntax/src/validation.rs @@ -97,7 +97,7 @@ pub(crate) fn validate(root: &SyntaxNode) -> Vec { for node in root.descendants() { let _ = visitor_ctx(&mut errors) .visit::(validate_literal) - .visit::(block::validate_block_node) + .visit::(block::validate_block_expr) .visit::(|it, errors| validate_numeric_name(it.name_ref(), errors)) .visit::(|it, errors| validate_numeric_name(it.name_ref(), errors)) .accept(&node); -- cgit v1.2.3