From 84bc6e159a83688eab3f555053dcd735e2119c8a Mon Sep 17 00:00:00 2001 From: k-nasa Date: Sun, 10 Oct 2021 16:53:37 +0900 Subject: [PATCH] Add comment --- crates/syntax/src/syntax_node.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/syntax/src/syntax_node.rs b/crates/syntax/src/syntax_node.rs index bd7ea0240b9..c95c76c0a8e 100644 --- a/crates/syntax/src/syntax_node.rs +++ b/crates/syntax/src/syntax_node.rs @@ -47,6 +47,7 @@ impl SyntaxTreeBuilder { pub fn finish(self) -> Parse { let (green, errors) = self.finish_raw(); + // Disable block validation, see https://github.com/rust-analyzer/rust-analyzer/pull/10357 if cfg!(debug_assertions) && false { let node = SyntaxNode::new_root(green.clone()); crate::validation::validate_block_structure(&node);