Skip to content

Commit 4439cd8

Browse files
bors[bot]k-nasa
andauthored
Merge #10506
10506: Add comment r=lnicola a=k-nasa ## Why This code looks logic-bug ... https://github.com/rust-analyzer/rust-analyzer/blob/ce86534e1cb22685e83c3f91ea89025edbfcbc98/crates/syntax/src/syntax_node.rs#L50 However, this code has been intentionally disabled. It's a good idea to write a comment ref: #10357 ## What - I added comment Co-authored-by: k-nasa <[email protected]>
2 parents 64ca0f6 + 84bc6e1 commit 4439cd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/syntax/src/syntax_node.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl SyntaxTreeBuilder {
4747

4848
pub fn finish(self) -> Parse<SyntaxNode> {
4949
let (green, errors) = self.finish_raw();
50+
// Disable block validation, see https://github.com/rust-analyzer/rust-analyzer/pull/10357
5051
if cfg!(debug_assertions) && false {
5152
let node = SyntaxNode::new_root(green.clone());
5253
crate::validation::validate_block_structure(&node);

0 commit comments

Comments
 (0)