aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-05-05 09:33:07 +0100
committerAleksey Kladov <[email protected]>2019-05-28 14:15:17 +0100
commit90926b9479a0403f7a5d8a94af876d88d42a8237 (patch)
tree5d29da367e59fc02315f79865dd079f5f946cd7d /crates/ra_syntax/src/lib.rs
parentf52eda675e271675c99bb27ed8622690cebb5678 (diff)
drop errors from SyntaxNode
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r--crates/ra_syntax/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs
index a950870bd..6a4f3ff13 100644
--- a/crates/ra_syntax/src/lib.rs
+++ b/crates/ra_syntax/src/lib.rs
@@ -74,8 +74,8 @@ impl Parse {
74pub use crate::ast::SourceFile; 74pub use crate::ast::SourceFile;
75 75
76impl SourceFile { 76impl SourceFile {
77 fn new(green: GreenNode, errors: Vec<SyntaxError>) -> TreeArc<SourceFile> { 77 fn new(green: GreenNode, _errors: Vec<SyntaxError>) -> TreeArc<SourceFile> {
78 let root = SyntaxNode::new(green, errors); 78 let root = SyntaxNode::new(green);
79 if cfg!(debug_assertions) { 79 if cfg!(debug_assertions) {
80 validation::validate_block_structure(&root); 80 validation::validate_block_structure(&root);
81 } 81 }