We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef4debc commit b971b5bCopy full SHA for b971b5b
crates/syntax/src/syntax_node.rs
@@ -48,10 +48,11 @@ impl SyntaxTreeBuilder {
48
pub fn finish(self) -> Parse<SyntaxNode> {
49
let (green, errors) = self.finish_raw();
50
// Disable block validation, see https://github.com/rust-lang/rust-analyzer/pull/10357
51
- // if cfg!(debug_assertions) {
52
- // let node = SyntaxNode::new_root(green.clone());
53
- // crate::validation::validate_block_structure(&node);
54
- // }
+ #[allow(clippy::overly_complex_bool_expr)]
+ if cfg!(debug_assertions) && false {
+ let node = SyntaxNode::new_root(green.clone());
+ crate::validation::validate_block_structure(&node);
55
+ }
56
Parse::new(green, errors)
57
}
58
0 commit comments