Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b971b5b

Browse files
committed
suppress lint
1 parent ef4debc commit b971b5b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/syntax/src/syntax_node.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ impl SyntaxTreeBuilder {
4848
pub fn finish(self) -> Parse<SyntaxNode> {
4949
let (green, errors) = self.finish_raw();
5050
// 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-
// }
51+
#[allow(clippy::overly_complex_bool_expr)]
52+
if cfg!(debug_assertions) && false {
53+
let node = SyntaxNode::new_root(green.clone());
54+
crate::validation::validate_block_structure(&node);
55+
}
5556
Parse::new(green, errors)
5657
}
5758

0 commit comments

Comments
 (0)