mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 10:00:27 +00:00
suppress lint
This commit is contained in:
parent
ef4debc8b1
commit
b971b5b64f
1 changed files with 5 additions and 4 deletions
|
@ -48,10 +48,11 @@ 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) {
|
#[allow(clippy::overly_complex_bool_expr)]
|
||||||
// let node = SyntaxNode::new_root(green.clone());
|
if cfg!(debug_assertions) && false {
|
||||||
// crate::validation::validate_block_structure(&node);
|
let node = SyntaxNode::new_root(green.clone());
|
||||||
// }
|
crate::validation::validate_block_structure(&node);
|
||||||
|
}
|
||||||
Parse::new(green, errors)
|
Parse::new(green, errors)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue