mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 20:35:09 +00:00
Add comment
This commit is contained in:
parent
545b068a77
commit
84bc6e159a
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ impl SyntaxTreeBuilder {
|
|||
|
||||
pub fn finish(self) -> Parse<SyntaxNode> {
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue