mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
comment out disabled code
This commit is contained in:
parent
368e0bb32f
commit
ef4debc8b1
1 changed files with 4 additions and 4 deletions
|
@ -48,10 +48,10 @@ impl SyntaxTreeBuilder {
|
|||
pub fn finish(self) -> Parse<SyntaxNode> {
|
||||
let (green, errors) = self.finish_raw();
|
||||
// Disable block validation, see https://github.com/rust-lang/rust-analyzer/pull/10357
|
||||
if cfg!(debug_assertions) && false {
|
||||
let node = SyntaxNode::new_root(green.clone());
|
||||
crate::validation::validate_block_structure(&node);
|
||||
}
|
||||
// if cfg!(debug_assertions) {
|
||||
// let node = SyntaxNode::new_root(green.clone());
|
||||
// crate::validation::validate_block_structure(&node);
|
||||
// }
|
||||
Parse::new(green, errors)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue