comment out disabled code
This commit is contained in:
@@ -48,10 +48,10 @@ impl SyntaxTreeBuilder {
|
|||||||
pub fn finish(self) -> Parse<SyntaxNode> {
|
pub fn finish(self) -> Parse<SyntaxNode> {
|
||||||
let (green, errors) = self.finish_raw();
|
let (green, errors) = self.finish_raw();
|
||||||
// Disable block validation, see https://github.com/rust-lang/rust-analyzer/pull/10357
|
// Disable block validation, see https://github.com/rust-lang/rust-analyzer/pull/10357
|
||||||
if cfg!(debug_assertions) && false {
|
// if cfg!(debug_assertions) {
|
||||||
let node = SyntaxNode::new_root(green.clone());
|
// let node = SyntaxNode::new_root(green.clone());
|
||||||
crate::validation::validate_block_structure(&node);
|
// crate::validation::validate_block_structure(&node);
|
||||||
}
|
// }
|
||||||
Parse::new(green, errors)
|
Parse::new(green, errors)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user